How to unpack the Evo 4g/edit the boot. imgfile

Source: Internet
Author: User
Tags unpack

Implementation result:

Except for WiFi, other operations are normal.

Implementation Method:

1. Download The Kernel File. 2. Configure the development environment. 3. Edit the kernel. 4. Back up boot. IMG and decompress boot. IMG. 5. Create a new boot. IMG.

Reference URL:

1, 2, 3 references:

Http://htcdev.com/devcenter

Http://wiki.cyanogenmod.com/wiki/HTC_Desire_ (GSM): _ compile_cyanogenmod _ (Linux)

Http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source

Http://source.android.com/source/initializing.html

Http://hi.baidu.com/li357919/blog/item/d03c4513bfab991f5aaf5394.html

Http://hi.baidu.com/li357919/blog/item/23a819b1e6b522490823025f.html? Time stamp = 1322570266500

Http://hi.baidu.com/li357919/blog/item/a95dbc34836195265ab5f5f4.html

4. refer:

Http://hi.baidu.com/li357919/blog/item/26c25deaa1a5abced439c965.html

5, as shown below, is similar to the 4 method, but the details must be well grasped

The implementation of creating a new boot. IMG is as follows:

A: Step 4: Create a New boot.img(zimagecompiled by Alibaba and ramdisk-new.gz decompressed) and download it to Evo 4G. The Boot kernel is incorrect and remains on the first screen. Realize that there is a problem.

B: Create ramdisk-new.gz and boot. IMG-kernel from step 4 to boot. IMG. The mkbootimg format may be different from the mkbootimg format on HTC.

C: Compare the boot. IMG created by the backup boot. IMG and step B. It is found that boot. IMG only starts with a different boot header, and the rest are the same. Change it and download it. Everything is normal and the problem is fixed. Analysis



The address in red, the file size in green, the zimage size at the beginning, and the ramdisk size at the end

 

D: After the problem is analyzed, modify the boot. IMG generated in step a. the kernel is compiled by yourself and the size is different. Remember to modify it... download, test, and pass.

In terms of WiFi, he did not pass the test because he had to compile and download it independently.

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.