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

lk2nd: build: create a fake ramdisk #502

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

J0SH1X
Copy link
Contributor

@J0SH1X J0SH1X commented Feb 25, 2025

Create a 1 byte large fake ramdisk that is just 1 zero.

Some devices (in my case Nexus 6P) will not boot a Android bootimage if the bootimage has no ramdisk in it, it can be anything any garbage or whatever just has to be present

Create a 1 byte large fake ramdisk that is just 1 zero.
@J0SH1X
Copy link
Contributor Author

J0SH1X commented Feb 25, 2025

Tested on newly supported device Huawei Angler - now boots with the generated lk2nd.img instead of falling back to fastboot

Tested on old supported device Asus Zenfone 2 laster - still boots no difference to before.

@TravMurav TravMurav merged commit 2c81fe6 into msm8916-mainline:main Feb 28, 2025
42 checks passed
@TravMurav
Copy link
Member

It's interesting how we survived without this for so long, but considering usually boot.img contains a ramdisk, I hope this won't break anything... Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants