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 |
Activity
[-]Why I compiled kernel cannot boot?[/-][+]Why the kernel I compiled cannot boot?[/+]dirt2022 commentedon Feb 8, 2024
I am using GSI.
Before compiling,I edit the gsi.c
( Or genksyms program cannot version the function:gsi_write_channel_scratch )
Into
liyafe1997 commentedon Oct 10, 2024
The
pipakernel has a uninitialized pointer problem, which can cause kernel panic during boot.The fix:
#27861