Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkbootimg can not rebuild mi-4c boot.img #24

Open
cong2014 opened this issue Dec 2, 2015 · 2 comments
Open

mkbootimg can not rebuild mi-4c boot.img #24

cong2014 opened this issue Dec 2, 2015 · 2 comments

Comments

@cong2014
Copy link

cong2014 commented Dec 2, 2015

on xiaomi 4c, android version is 5.1.1, miui is v7.1

  1. use tool to unpack boot.img
  2. do nothing, but use mkbootimg to pack kernel and ramdisk again
  3. the new boot.img is much smaller than before
  4. push to device, can not boot.
@yunlai
Copy link

yunlai commented Dec 23, 2015

I have a similar issue

  1. use unpackbootimg to unpack boot.img
  2. do nothing, but use mkbootfs and mkbootimg to pack kernel and ramdisk again
  3. push to the new boot img to device, boot failure

I compared the new boot.img with the original one ,fount out that even through the secondary partition size is 0, there is still 2048 bytes data seams like secondary partition data at the end of the
original boot.img, but the new one don't have this part.
I append this 2048 bytes to the new one ,still can not boot

@yunlai
Copy link

yunlai commented Dec 1, 2016

I hava the same issue with mi4s,miui 8.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants