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

Unable to differenciate between dtb & blank space when run on boot.img #6

Open
chankruze opened this issue Oct 1, 2019 · 6 comments

Comments

@chankruze
Copy link

When i run the script on a boot.img directly. It's appending all blank space to last dtb.

For example i was extracting dtbs from realme X boot.img. Siz eof boot.img was 67.1 MB. The extracted dtbs are shown below.

size of dtbs when extracted from boot.img:
Screenshot from 2019-10-01 08-55-02

size of dtbs when extracted from zImage (After unpacking with AIK):
Screenshot from 2019-10-01 08-55-18

Last dtb has a size of 53.5 MB on boot.img case & 173 Bytes on zImage case.

So what's the issue ?
If the kernel size increased a little, while using dtbs extracted from boot.img having remaining blank space appended, will result in a larger image which will eventually fail to flash with a error that partition is full.

@PabloCastellano
Copy link
Owner

Hey @chankruze.

Can you upload the mentioned boot.img so I can have a look? Or even better, do you want to provide a patch to fix it?

@chankruze
Copy link
Author

chankruze commented Oct 2, 2019

@PabloCastellano As per your request i uploaded the boot image here. Let me know the update.

@TwistedPrime
Copy link

I got the same issue. Is it necessary to append the dtbdump_!'$'\v''_~\s.dtb back to my kernel image?

@PabloCastellano
Copy link
Owner

Hey @chankruze, I can't download the image. It always says that I am blocked. Can you use another provider? (e.g. https://send.firefox.com/)

@chankruze
Copy link
Author

@thanasxda please mirror this (https://www.androidfilehost.com/?fid=1899786940962599088) here (https://send.firefox.com/). And send url here.

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

4 participants