xiaolu / mkbootimg_tools

Unpack and repack boot.img,support dtb(dt.img).
530 stars 365 forks source link

repacking file size mismatch #37

Closed s0i37 closed 4 years ago

s0i37 commented 4 years ago

Hello. After rebuilding kernel (without modification) and building back I have a huge loss of resulting boot.img:

boot.img - 128M
new_boot.img - 17M

Is it normal behavior? Because I can't load resulting image.

brianmason667 commented 4 years ago

i have the same issue, adding up the sizes though the new_boot.img is the size of kernel+ramdisk in the folder, maybe its not pulling everything out of boot.img?

s0i37 commented 4 years ago

After repacking boot.img with https://github.com/osm0sis/AnyKernel3 (used all modern kernel installers for TWRP) I have obtained the same result. However I have managed successfully load it with fastboot. It seems it is normally. Backup of stock boot partition has 90% 0-bytes: temp