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

bootloop with dtbo #138

Open
amackpro opened this issue Feb 6, 2024 · 6 comments
Open

bootloop with dtbo #138

amackpro opened this issue Feb 6, 2024 · 6 comments

Comments

@amackpro
Copy link

amackpro commented Feb 6, 2024

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
Copy link
Owner

cfig commented Feb 18, 2024

Can you attach the dtbo.img being used?

@amackpro
Copy link
Author

amackpro commented Feb 18, 2024

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Owner

cfig commented Apr 16, 2024

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?

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

3 participants