-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Why the kernel I compiled cannot boot? #6922
Comments
dirt2022
changed the title
Why I compiled kernel cannot boot?
Why the kernel I compiled cannot boot?
Feb 8, 2024
I am using GSI. Before compiling,I edit the gsi.c static union __packed gsi_channel_scratch __gsi_update_mhi_channel_scratch(
unsigned long chan_hdl, struct __packed gsi_mhi_channel_scratch mscr)
{ Into static union gsi_channel_scratch __gsi_update_mhi_channel_scratch(
unsigned long chan_hdl, struct __packed gsi_mhi_channel_scratch mscr)
{ |
The
The fix: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile device: an android arm64 device,running chroot debian bookworm
CC=/usr/bin/clang
LD=/usr/bin/LD.lld
At=llvm-ar
(Apt install clang llvm binutils)
cd src
Make O=out pipa_user_defconfig
Make O=out -j$(nproc)
I got out/arch/arm64/boot/Image
And : out/arch/arm64/boot/dts/xxxx.dtbo
Mkdtimg create dtbo.IMG out/arch/arm64/boot/dts/*.dtbo
(I merged the device-tree into the source code.)
mkbootimg boot.IMG --kernel out/arch/arm64/boot/Image --ramdisk /root/unpacked --*** (args from boot.IMG in official firmware)
Here are the results:
Official = O
Custom= C ( built from the source code )
boot successfully=Y
boot unsuccessfully=N (stuck in the MI logo)
| DTBO.IMG | BOOT.IMG | RESULT |
| O | O | Y |
| O | C | N |
| C | O | Y |
| C | C | N |
The text was updated successfully, but these errors were encountered: