aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2023-12-09 16:56:47 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2023-12-09 16:57:45 +0000
commit6929dd2f2de6cd531c9ecd00b1853cf008a567e4 (patch)
tree254aa1934af7b9ff9a4cf772b33f07e00a8be867
parentb4512f2c0dee63a9e60c01e84595621f4f5b80ff (diff)
downloadports-6929dd2f2de6cd531c9ecd00b1853cf008a567e4.tar.gz
ports-6929dd2f2de6cd531c9ecd00b1853cf008a567e4.zip
sysutils/u-boot-nanopi-r2s: Add new port
U-boot port for the Nanopi R2S, a small RK3328 board. Sponsored by: Beckhoff Automation GmbH & Co. KG
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/u-boot-nanopi-r2s/Makefile9
-rw-r--r--sysutils/u-boot-nanopi-r2s/pkg-descr5
3 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 66ad9955f864..80b4aed6f3df 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1501,6 +1501,7 @@
SUBDIR += u-boot-nanopi-neo
SUBDIR += u-boot-nanopi-neo-air
SUBDIR += u-boot-nanopi-neo2
+ SUBDIR += u-boot-nanopi-r2s
SUBDIR += u-boot-nanopi-r4s
SUBDIR += u-boot-olimex-a20-som-evb
SUBDIR += u-boot-olinuxino-lime
diff --git a/sysutils/u-boot-nanopi-r2s/Makefile b/sysutils/u-boot-nanopi-r2s/Makefile
new file mode 100644
index 000000000000..e5d009b914f6
--- /dev/null
+++ b/sysutils/u-boot-nanopi-r2s/Makefile
@@ -0,0 +1,9 @@
+MASTERDIR= ${.CURDIR}/../u-boot-master
+
+MODEL= nanopi-r2s
+BOARD_CONFIG= nanopi-r2s-rk3328_defconfig
+FAMILY= rk3328
+
+UBOOT_EXTRA_TARGETS= u-boot.itb
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/u-boot-nanopi-r2s/pkg-descr b/sysutils/u-boot-nanopi-r2s/pkg-descr
new file mode 100644
index 000000000000..a70d0aad6293
--- /dev/null
+++ b/sysutils/u-boot-nanopi-r2s/pkg-descr
@@ -0,0 +1,5 @@
+U-Boot loader and related files for the Nanopi R2S.
+
+To install this bootloader on an sdcard just do:
+dd if=/usr/local/share/u-boot/u-boot-nanopi-r2s/idbloader.img of=/path/to/sdcarddevice seek=64 bs=512 conv=sync
+dd if=/usr/local/share/u-boot/u-boot-nanopi-r2s/u-boot.itb of=/path/to/sdcarddevice seek=16384 bs=512 conv=sync