Because of work, we need to decompress system. check the IMG file to see if there are any tools I have added. There is no way to check the information on the Internet. Later, I found the tool and tested it. However, there are many points worth attention between them. Write down and take a note;
1) You need a tool "simg2img", this tool if you download the 4.0 source code, after compilation is completed in the out/host/linux-x86/bin directory; with which simg2img can find it; (prerequisite: Source build/envsetup. SH );
2)./simg2img system. IMG system. IMG. ext4
3) Mount-o loop system. IMG. Ext/Media/USB (root permission required );
Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------
Package the system. imgfile
1) Because I used system. IMG. when ext4 is mounted to the "/Media/USB/" directory, an error is always reported during packaging. I checked it online and the following parameter, but my parameter settings are enough!
Then I followed the method below, OK;
2) directly create a "Temp" folder in out/.../panda/and mount system. IMG. ext4 to the temp directory;
3)./make_ext4fs-L 256 m-s-a system system_new.img./temp/
= "OK; success; an error in step 1 may be related to the"-L 256 m "parameter in step 3; busy-not verified, because I previously wrote 161 m;
Certificate -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Today, we found a simple packaging and decoding method of system. IMG, which won't go wrong (if you have the source code compiled successfully )! Because I have compiled the source code, and the output information already contains how to package the system. imgfile! Example: (make_ext4fs-S-l 268435456-a system. IMG System )! Let's take a look at make_ext4fs usage! That's it!
Note: The "-s" parameter of a pandaboard statement cannot be omitted! If the "-s" parameter is omitted, although the system. imgfile can be produced! But an error is reported when you use "simg2img system. IMG system. IMG. ext4!
Make_ext4fs-S-l 268435456-a system. IMG System