configs/friendlyarm_nanopi_neo_plus2: use an extlinux instead of boot.cmd
authorLouis Aussedat <aussedat.louis@gmail.com>
Mon, 9 Dec 2019 21:59:21 +0000 (22:59 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 10 Dec 2019 08:02:25 +0000 (09:02 +0100)
This remove the file boot.cmd to use an extlinux.conf instead.

Signed-off-by: Louis Aussedat <aussedat.louis@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/friendlyarm/nanopi-neo-plus2/boot.cmd [deleted file]
board/friendlyarm/nanopi-neo-plus2/extlinux.conf [new file with mode: 0644]
board/friendlyarm/nanopi-neo-plus2/genimage.cfg
board/friendlyarm/nanopi-neo-plus2/post-build.sh [new file with mode: 0755]
configs/friendlyarm_nanopi_neo_plus2_defconfig

diff --git a/board/friendlyarm/nanopi-neo-plus2/boot.cmd b/board/friendlyarm/nanopi-neo-plus2/boot.cmd
deleted file mode 100644 (file)
index 227604a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
-
-fatload mmc 0 $kernel_addr_r Image
-fatload mmc 0 $fdt_addr_r sun50i-h5-nanopi-neo-plus2.dtb
-
-booti $kernel_addr_r - $fdt_addr_r
diff --git a/board/friendlyarm/nanopi-neo-plus2/extlinux.conf b/board/friendlyarm/nanopi-neo-plus2/extlinux.conf
new file mode 100644 (file)
index 0000000..fcb6f63
--- /dev/null
@@ -0,0 +1,4 @@
+label linux
+  kernel /Image
+  devicetree /sun50i-h5-nanopi-neo-plus2.dtb
+  append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
index a4c2a7a894f04ff31d8bcc4e3926aaff2e80368f..fb871abd43b7bbaf91f005e0e91f445f87a39cf0 100644 (file)
@@ -3,7 +3,7 @@ image boot.vfat {
                files = {
                        "Image",
                        "sun50i-h5-nanopi-neo-plus2.dtb",
-                       "boot.scr"
+                       "extlinux"
                }
        }
        size = 64M
diff --git a/board/friendlyarm/nanopi-neo-plus2/post-build.sh b/board/friendlyarm/nanopi-neo-plus2/post-build.sh
new file mode 100755 (executable)
index 0000000..ec20fca
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
index c807b3100b961358a6cf344572f23b0227d4c8da..461e468cb6394e0a49346867e2802cd9d9e58992 100644 (file)
@@ -27,8 +27,6 @@ BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
 BR2_TARGET_UBOOT_SPL=y
 BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin"
-BR2_TARGET_UBOOT_BOOT_SCRIPT=y
-BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/friendlyarm/nanopi-neo-plus2/boot.cmd"
 
 # Kernel
 BR2_LINUX_KERNEL=y
@@ -49,6 +47,7 @@ BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=y
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/friendlyarm/nanopi-neo-plus2/genimage.cfg"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/friendlyarm/nanopi-neo-plus2/post-build.sh"
 
 # wireless firmware
 BR2_PACKAGE_LINUX_FIRMWARE=y