Android_boot_image_editor icon indicating copy to clipboard operation
Android_boot_image_editor copied to clipboard

bootloop with dtbo

Open amackpro opened this issue 1 year ago • 6 comments

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

amackpro avatar Feb 06 '24 13:02 amackpro

Can you attach the dtbo.img being used?

cfig avatar Feb 18 '24 06:02 cfig

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

amackpro avatar Feb 18 '24 11:02 amackpro

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

aiuhoa avatar Apr 11 '24 16:04 aiuhoa

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

amackpro avatar Apr 15 '24 07:04 amackpro

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 👍

aiuhoa avatar Apr 15 '24 10:04 aiuhoa

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?

cfig avatar Apr 16 '24 03:04 cfig