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

Error when pack recovery.img #126

Open
mrx7014 opened this issue Jul 24, 2023 · 12 comments
Open

Error when pack recovery.img #126

mrx7014 opened this issue Jul 24, 2023 · 12 comments

Comments

@mrx7014
Copy link

mrx7014 commented Jul 24, 2023

I get this error when try to pack recovery.img again

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':pack'. > Process 'command '/usr/lib/jvm/java-17-openjdk-amd64/bin/java'' finished with non-zero exit value 1 * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org.
BUILD FAILED in 11s 11 actionable tasks: 5 executed, 6 up-to-date

Hope to solve it.

THX For this tool :)

@cfig
Copy link
Owner

cfig commented Jul 25, 2023

can you share your recovery.img ?

@mrx7014
Copy link
Author

mrx7014 commented Jul 25, 2023

@mrx7014
Copy link
Author

mrx7014 commented Jul 25, 2023

can you share your recovery.img ?

I tried with another img and error still not fixed

@Rofikkernel
Copy link

@mrx7014
i think is it caused that incorrect magic number
Unpack log
18:13:40.379 [main] INFO cfig.utils.DTC - parsing DTB: build/unzip_boot/dtb
FATAL ERROR: Blob has incorrect magic number
18:13:40.380 [main] ERROR cfig.utils.DTC - can not parse DTB: build/unzip_boot/dtb

Pack log
Caused by: java.lang.IllegalArgumentException: do not support header version 358400
at cfig.packable.BootImgParser.pack(BootImgParser.kt:97)

@cfig
Copy link
Owner

cfig commented Aug 10, 2023

That image uses 3.18 kernel + Android 6, it's a very old version.
Its format doesn't follow AOSP spec, so i've no idea what the value really means.

@mrx7014
Copy link
Author

mrx7014 commented Aug 10, 2023

But i use this tool with it before

@Rofikkernel
Copy link

@mrx7014 is it worked before? or you can use old release version

@mrx7014
Copy link
Author

mrx7014 commented Aug 16, 2023

@mrx7014 is it worked before? or you can use old release version

I used an old release version and it works with this img,but after tool updates it dosen't work

@Rofikkernel
Copy link

why not use old version tool too

select old commit in the tool github and download as tarball

@mrx7014
Copy link
Author

mrx7014 commented Aug 18, 2023

why not use old version tool too

select old commit in the tool github and download as tarball

Okay THX

@mrx7014 mrx7014 closed this as completed Aug 18, 2023
@cfig
Copy link
Owner

cfig commented Aug 18, 2023

why not use old version tool too

select old commit in the tool github and download as tarball

Can you share the "old commit" that works? Then I can merge the old working code into latest. Then add a test case to guard this feature, to make sure it's not broken in the future.

@mrx7014
Copy link
Author

mrx7014 commented Aug 18, 2023

why not use old version tool too
select old commit in the tool github and download as tarball

Can you share the "old commit" that works? Then I can merge the old working code into latest. Then add a test case to guard this feature, to make sure it's not broken in the future.

Okay i will do it

@mrx7014 mrx7014 reopened this Aug 18, 2023
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