fix extlinux.conf for u-boot dtb and add arm32 (#2766)

This commit is contained in:
Oleg 2021-04-13 11:16:42 +03:00 committed by GitHub
parent 4cb79d4ef2
commit e275961be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,5 @@
NAME_KERNEL="Image"
NAME_INITRD="uInitrd"
MAIN_CMDLINE="rootflags=data=writeback rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 bootsplash.bootfile=bootsplash.armbian"
INITRD_ARCH=arm64
QEMU_BINARY="qemu-aarch64-static"

View file

@ -1,3 +1,6 @@
NAME_KERNEL="zImage"
NAME_INITRD="uInitrd"
MAIN_CMDLINE="rootflags=data=writeback rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 bootsplash.bootfile=bootsplash.armbian"
INITRD_ARCH=arm
QEMU_BINARY="qemu-arm-static"
ARCHITECTURE=arm

View file

@ -171,11 +171,14 @@ install_common()
mkdir -p $SDCARD/boot/extlinux
cat <<-EOF > "$SDCARD/boot/extlinux/extlinux.conf"
LABEL Armbian
LINUX /boot/Image
INITRD /boot/uInitrd
FDT /boot/dtb/$BOOT_FDT_FILE
LINUX /boot/$NAME_KERNEL
INITRD /boot/$NAME_INITRD
EOF
if [[ -n $BOOT_FDT_FILE ]]; then
echo " FDT /boot/dtb/$BOOT_FDT_FILE" >> "$SDCARD/boot/extlinux/extlinux.conf"
else
echo " FDTDIR /boot/dtb/" >> "$SDCARD/boot/extlinux/extlinux.conf"
fi
else
if [ -f "${USERPATCHES_PATH}/bootscripts/${bootscript_src}" ]; then