aboutsummaryrefslogtreecommitdiff
path: root/sysutils/u-boot-rpi-0-w
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2018-08-15 15:06:15 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2018-08-15 15:06:15 +0000
commit067115a2f5c117d2110bd2a4608cd79ae8bc9704 (patch)
tree801f6b7c25be7290bb9f605749efaac36b2706b4 /sysutils/u-boot-rpi-0-w
parentd552ab488ed808f07e48326a882c6fcc645c107a (diff)
downloadports-067115a2f5c117d2110bd2a4608cd79ae8bc9704.tar.gz
ports-067115a2f5c117d2110bd2a4608cd79ae8bc9704.zip
sysutils/u-boot-rpi-0-w: Add u-boot ports
While the RPI0 can use u-boot-rpi, the 0W needs a special configuration. Reviewed by: imp (previous version) Approved by: bapt (implicit) Differential Revision: https://reviews.freebsd.org/D16242
Notes
Notes: svn path=/head/; revision=477233
Diffstat (limited to 'sysutils/u-boot-rpi-0-w')
-rw-r--r--sysutils/u-boot-rpi-0-w/Makefile17
-rw-r--r--sysutils/u-boot-rpi-0-w/files/rpi_0_w_fragment3
-rw-r--r--sysutils/u-boot-rpi-0-w/pkg-descr15
3 files changed, 35 insertions, 0 deletions
diff --git a/sysutils/u-boot-rpi-0-w/Makefile b/sysutils/u-boot-rpi-0-w/Makefile
new file mode 100644
index 000000000000..22e73cc4c574
--- /dev/null
+++ b/sysutils/u-boot-rpi-0-w/Makefile
@@ -0,0 +1,17 @@
+# $FreeBSD$
+
+MASTERDIR= ${.CURDIR}/../u-boot-master
+
+PATCHFILES+= 937869/raw \
+ 939129/raw
+
+MODEL= rpi-0-w
+BOARD_CONFIG= rpi_0_w_defconfig
+FAMILY= rpi
+
+DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware
+
+CONFIG_FRAGMENT= ${.CURDIR}/files/rpi_0_w_fragment
+FRAGMENT_NAME= rpi_0_w_fragment
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/u-boot-rpi-0-w/files/rpi_0_w_fragment b/sysutils/u-boot-rpi-0-w/files/rpi_0_w_fragment
new file mode 100644
index 000000000000..56ca46fe5f31
--- /dev/null
+++ b/sysutils/u-boot-rpi-0-w/files/rpi_0_w_fragment
@@ -0,0 +1,3 @@
+CONFIG_OF_EMBED=n
+CONFIG_OF_BOARD=y
+CONFIG_API=y
diff --git a/sysutils/u-boot-rpi-0-w/pkg-descr b/sysutils/u-boot-rpi-0-w/pkg-descr
new file mode 100644
index 000000000000..f6a4b1696d1c
--- /dev/null
+++ b/sysutils/u-boot-rpi-0-w/pkg-descr
@@ -0,0 +1,15 @@
+U-Boot loader for Raspberry Pi
+
+To install this bootloader, copy u-boot.bin in the share/u-boot/u-boot-rpi-0-w
+directory to the first partition, formatted as FAT16 or FAT32, on an SD card.
+You will also need the firmware files and configs from the rpi-firmware package.
+
+This version is patched so that:
+ * API features are enabled.
+ * U-Boot and FreeBSD kernel are using rpi-firmware DTBs
+ * A boot.scr (U-Boot script) that loads ubldr.bin and execute it is included
+
+For information about running FreeBSD on RaspberryPi, see
+https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi
+
+WWW: http://www.denx.de/wiki/U-Boot