Skip to content

Why the kernel I compiled cannot boot? #6922

Description

@dirt2022

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 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions