Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,088 Members 39,076 Now Online
XDA Developers Android and Mobile Development Forum

[DEV][Tools] simg2img and make_ext4fs binaries for mac OS X

Tip us?
 
Restl3ss
Old
(Last edited by Restl3ss; 3rd September 2014 at 06:34 AM.)
#1  
Restl3ss's Avatar
Senior Member - OP
Thanks Meter 712
Posts: 445
Join Date: Aug 2013
Location: Fort Mcmurray

 
DONATE TO ME
Prompt [DEV][Tools] simg2img and make_ext4fs binaries for mac OS X

Not really a whole lot to describe here. simg2img and make_ext4fs are both linux binaries that are used to unpack / mount / repack system.img from a stock tar.md5 rom. Quite useful.

I get curious as to how much development stuff I can do with OS X from time to time, as, though they are not twins by any means, linux and darwin are definitely cousins. Obviously the simg2img and make_ext4fs binaries in their normal state won't work on any darwin system (os x), however, they ARE unix binaries, and darwin is well... unix

So I downloaded the source code and compiled natively on OS X using xcode / gcc. When compile is done (didn't take long) dropped in /bin and.. viola! Works perfectly.

For those who want a tutorial on how to use these binaries, check here.

To mount sys.raw:

install either macports or homebrew. Then:

Macports: $ sudo port install ext4fuse
Homebrew: $ brew install ext4fuse

After which, cd to the directory you created sys.raw using simg2img.

$ mkdir sys

then, mount with:

$ ext4fuse sys.raw sys

and viola! it's now mounted and you can do what you will with /system


Download links:
simg2img: download
make_ext4fs: download

Homebrew: OS X package manager
Death to all but metal.
If you like my work, why not hit that thanks button?

If you REALLY like my work and want to contribute, why not buy me a beer?

My rom:
The Following 4 Users Say Thank You to Restl3ss For This Useful Post: [ Click to Expand ]
 
Restl3ss
Old
#2  
Restl3ss's Avatar
Senior Member - OP
Thanks Meter 712
Posts: 445
Join Date: Aug 2013
Location: Fort Mcmurray

 
DONATE TO ME
just added instructions for mounting sys.raw
Death to all but metal.
If you like my work, why not hit that thanks button?

If you REALLY like my work and want to contribute, why not buy me a beer?

My rom:
Tags
binary, darwin, development, ext4, tools
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes