extract-dtb icon indicating copy to clipboard operation
extract-dtb copied to clipboard

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

Open chankruze opened this issue 6 years ago • 6 comments

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.

chankruze avatar Oct 01 '19 03:10 chankruze

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?

PabloCastellano avatar Oct 01 '19 20:10 PabloCastellano

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

chankruze avatar Oct 02 '19 01:10 chankruze

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

TwistedPrime avatar Feb 22 '20 21:02 TwistedPrime

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/)

PabloCastellano avatar Apr 25 '20 16:04 PabloCastellano

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

chankruze avatar May 05 '20 14:05 chankruze

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

https://send.firefox.com/download/8f85a1eaa2054966/#keorXRnjuY3EEyxdakgaZg

thanasxda avatar May 07 '20 01:05 thanasxda