Open
Description
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
Labels
No labels