aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorGravatar Louis Aussedat <aussedat.louis@gmail.com>2019-12-09 22:59:21 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-12-10 09:02:25 +0100
commitd867e80773c691e637edd61725c02512ef8dc9d2 (patch)
tree6d4ba45597f79fdab0a1deff3f51138e127e2a1c /board
parentaf42fc988e9d2b0eea3158909441c80a98a77c96 (diff)
downloadbuildroot-d867e80773c691e637edd61725c02512ef8dc9d2.tar.gz
buildroot-d867e80773c691e637edd61725c02512ef8dc9d2.tar.bz2
configs/friendlyarm_nanopi_neo_plus2: use an extlinux instead of boot.cmd
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>
Diffstat (limited to 'board')
-rw-r--r--board/friendlyarm/nanopi-neo-plus2/boot.cmd6
-rw-r--r--board/friendlyarm/nanopi-neo-plus2/extlinux.conf4
-rw-r--r--board/friendlyarm/nanopi-neo-plus2/genimage.cfg2
-rwxr-xr-xboard/friendlyarm/nanopi-neo-plus2/post-build.sh4
4 files changed, 9 insertions, 7 deletions
diff --git a/board/friendlyarm/nanopi-neo-plus2/boot.cmd b/board/friendlyarm/nanopi-neo-plus2/boot.cmd
deleted file mode 100644
index 227604a23d..0000000000
--- a/board/friendlyarm/nanopi-neo-plus2/boot.cmd
+++ /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
index 0000000000..fcb6f632c1
--- /dev/null
+++ b/board/friendlyarm/nanopi-neo-plus2/extlinux.conf
@@ -0,0 +1,4 @@
+label linux
+ kernel /Image
+ devicetree /sun50i-h5-nanopi-neo-plus2.dtb
+ append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
diff --git a/board/friendlyarm/nanopi-neo-plus2/genimage.cfg b/board/friendlyarm/nanopi-neo-plus2/genimage.cfg
index a4c2a7a894..fb871abd43 100644
--- a/board/friendlyarm/nanopi-neo-plus2/genimage.cfg
+++ b/board/friendlyarm/nanopi-neo-plus2/genimage.cfg
@@ -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
index 0000000000..ec20fca7d9
--- /dev/null
+++ b/board/friendlyarm/nanopi-neo-plus2/post-build.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf