Add extlinux/extlinux.conf as U-Boot distro boot fallback
The extlinux.conf provides a standard U-Boot distro boot configuration that allows boards with U-Boot already flashed to SPI NOR to boot without needing the boot.scr script. U-Boot scans for this file at /extlinux/extlinux.conf during its distro boot sequence. This is the fallback when U-Boot is already on SPI and the boot partition provides the kernel/DTB/ramdisk for Android TV. Copyright (C) 2026 Brendan Szymanski <hello@bscubed.dev>
This commit is contained in:
parent
f1ecf8e92c
commit
248582c9e2
1 changed files with 8 additions and 0 deletions
|
|
@ -128,6 +128,14 @@ BOOT_MOUNT=$(mktemp -d)
|
|||
sudo mount "/dev/mapper/${LOOPDEV}p1" "${BOOT_MOUNT}"
|
||||
sudo cp ${KERNEL_PATH}/Image "${BOOT_MOUNT}/"
|
||||
sudo cp ${KERNEL_PATH}/rk3588-orangepi-5-ultra.dtb "${BOOT_MOUNT}/"
|
||||
sudo mkdir -p "${BOOT_MOUNT}/extlinux"
|
||||
sudo tee "${BOOT_MOUNT}/extlinux/extlinux.conf" > /dev/null << 'EXTLINUX_EOF'
|
||||
label Android TV
|
||||
kernel /Image
|
||||
fdt /rk3588-orangepi-5-ultra.dtb
|
||||
initrd /ramdisk.img
|
||||
append console=ttyS2,1500000 no_console_suspend root=/dev/ram0 rootwait androidboot.hardware=opi5ultra androidboot.selinux=permissive
|
||||
EXTLINUX_EOF
|
||||
sudo cp ${KERNEL_PATH}/boot.scr "${BOOT_MOUNT}/"
|
||||
sudo cp ${KERNEL_PATH}/android-sdcard.dtbo "${BOOT_MOUNT}/"
|
||||
sudo cp "${ANDROID_PRODUCT_OUT}/ramdisk.img" "${BOOT_MOUNT}/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue