aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2017-06-26 07:47:24 +0800
committerlinimon <linimon@FreeBSD.org>2017-06-26 07:47:24 +0800
commit5dfe79d0a65f1d2b7abdab910f049966026b8ed1 (patch)
treebaa14fcb64e68fe8df0320676a7b5654c36324a4
parent8c58de58d8667461ecdaab7e99206699098e7433 (diff)
downloadfreebsd-ports-gnome-5dfe79d0a65f1d2b7abdab910f049966026b8ed1.tar.gz
freebsd-ports-gnome-5dfe79d0a65f1d2b7abdab910f049966026b8ed1.tar.zst
freebsd-ports-gnome-5dfe79d0a65f1d2b7abdab910f049966026b8ed1.zip
Add slave port for u-bootorangepi-plus2e ARM SoC board u-boot support.
PR: 214729 Submitted by: vova@fbsd.ru
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/u-boot-orangepi-plus-2e/Makefile16
-rw-r--r--sysutils/u-boot-orangepi-plus-2e/pkg-descr20
3 files changed, 37 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 2202189adb00..a609d8bad6c5 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1179,6 +1179,7 @@
SUBDIR += u-boot-olimex-a20-som-evb
SUBDIR += u-boot-olinuxino-lime
SUBDIR += u-boot-orangepi-one
+ SUBDIR += u-boot-orangepi-plus-2e
SUBDIR += u-boot-pandaboard
SUBDIR += u-boot-pcduino3
SUBDIR += u-boot-pine64
diff --git a/sysutils/u-boot-orangepi-plus-2e/Makefile b/sysutils/u-boot-orangepi-plus-2e/Makefile
new file mode 100644
index 000000000000..9121aad50f6f
--- /dev/null
+++ b/sysutils/u-boot-orangepi-plus-2e/Makefile
@@ -0,0 +1,16 @@
+# Created by: Jov <amutu@amutu.com>
+# $FreeBSD$
+
+MAINTAINER= amutu@amutu.com
+COMMENT= Cross-build U-Boot loader for OrangePi Plus 2E
+
+LICENSE= GPLv2
+
+MASTERDIR= ${.CURDIR}/../u-boot-master
+DESCR= ${.CURDIR}/pkg-descr
+
+MODEL= orangepi-plus-2e
+BOARD_CONFIG= orangepi_plus2e_defconfig
+FAMILY= allwinner
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/u-boot-orangepi-plus-2e/pkg-descr b/sysutils/u-boot-orangepi-plus-2e/pkg-descr
new file mode 100644
index 000000000000..aa00d441c9d2
--- /dev/null
+++ b/sysutils/u-boot-orangepi-plus-2e/pkg-descr
@@ -0,0 +1,20 @@
+U-Boot loader for OrangePi Plus2E.
+
+To install this bootloader on an sdcard just do :
+dd if=/usr/local/share/u-boot/u-boot-orangepi-plus-2e/u-boot-sunxi-with-spl.bin \
+ of=/path/to/sdcarddevice bs=1k seek=8 conv=notrunc,sync
+
+This version is patched so that:
+ * ELF and API features are enabled.
+ * The default environment is trimmed to just what's needed to boot.
+ * The saveenv command writes to the file u-boot.env on the FAT partition.
+ * The DTB file name is chosen based on the board model and passed to ubldr.bin
+ using the fdtfile env variable. ubldr.bin loads the DTB from /boot/dtb/ on
+ the FreeBSD partition.
+ * By default, it loads PIE ubldr.bin from file ubldr.bin on the FAT partition
+ to address 0x42000000, and launches it.
+
+For information about running FreeBSD on Allwinner boards, see
+ https://wiki.freebsd.org/FreeBSD/arm/Allwinner
+
+For general information about U-Boot see WWW: http://www.denx.de/wiki/U-Boot