Decompress-package the system. imgfile

Source: Internet
Author: User

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

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.