cfig / Android_boot_image_editor

Parsing and re-packing Android boot.img/vbmeta.img/payload.bin, supporting Android 15
Apache License 2.0
995 stars 227 forks source link

bootloop with dtbo #138

Open amackpro opened 5 months ago

amackpro commented 5 months ago

i tried unpack and repack dtbo.img in xiaomi marble

it successfully unpacks and repacks dtbo but somehow without any changes done into the files the device never boots always on animation for some reason

cmd used for unpack and pack

./gradlew unpack dtbo.img ./gradlew pack

did try dtbo.img.clear and signed both

cfig commented 5 months ago

Can you attach the dtbo.img being used?

amackpro commented 5 months ago

Can you attach the dtbo.img being used?

well issue is now fixed thing is linux default DTC compiler is RIP ( using Ubuntu23.04) when i compiled with google DTC ,it compiled fine and booted successfully

please add google dtc into tool dtc.zip

thegoyalanirudh commented 3 months ago

I am facing exact same problem, the recompiled dtbo is same as original one.

Can you please share how to replace default compiler with google dtc?? and compile successfully? please tell, I am pretty new to all this

amackpro commented 3 months ago

I am facing exact same problem, the recompiled dtbo is same as original one.

Can you please share how to replace default compiler with google dtc?? and compile successfully? please tell, I am pretty new to all this

remove dtc and push dtc from the zip i given to /usr/bin/ then chmod +x /usr/bin/dtc

you r good to go

thegoyalanirudh commented 3 months ago

I am facing exact same problem, the recompiled dtbo is same as original one. Can you please share how to replace default compiler with google dtc?? and compile successfully? please tell, I am pretty new to all this

remove dtc and push dtc from the zip i given to /usr/bin/ then chmod +x /usr/bin/dtc

you r good to go

thank you so much, it finally worked 👍

cfig commented 3 months ago

HI @amackpro , thanks for the great work. I am adding a config entry in bbootimg/src/main/resources/general.cfg to support user specific dtc binary: the default value is

dtcBin = dtc

you can change it to something like this:

dtcBin = /usr/local/bin/dtc

But I am curious how the "dtc" binary causes the difference, can you attach the "good" and "bad" dtbo image you've tried?