svn commit: r447312 - in head/sysutils: u-boot-master u-boot-zedboard u-boot-zedboard/files
Warner Losh
imp at FreeBSD.org
Fri Aug 4 01:00:02 UTC 2017
Author: imp
Date: Fri Aug 4 01:00:00 2017
New Revision: 447312
URL: https://svnweb.freebsd.org/changeset/ports/447312
Log:
Add support for Xilinx Zynq-based Zedboard and more generally all
Zynq-based boards.
Submitted by: Thomas Skibo
Added:
head/sysutils/u-boot-zedboard/
head/sysutils/u-boot-zedboard/files/
head/sysutils/u-boot-zedboard/files/uEnv.txt (contents, props changed)
head/sysutils/u-boot-zedboard/pkg-descr (contents, props changed)
Modified:
head/sysutils/u-boot-master/Makefile (contents, props changed)
Modified: head/sysutils/u-boot-master/Makefile
==============================================================================
--- head/sysutils/u-boot-master/Makefile Fri Aug 4 00:37:55 2017 (r447311)
+++ head/sysutils/u-boot-master/Makefile Fri Aug 4 01:00:00 2017 (r447312)
@@ -56,6 +56,10 @@ UBOOT_PLIST_ALLWINNER=u-boot.img u-boot-sunxi-with-spl
UBOOT_PLIST_ALLWINNER64=u-boot-sunxi-with-spl.bin
UBOOT_ARCH_ALLWINNER64=aarch64
+# Overrides for Zynq 7000 family
+UBOOT_PLIST_ZYNQ_7000=u-boot.img boot.bin uEnv.txt
+UBOOT_MOVE_ZYNQ_7000=${WRKSRC}/spl/boot.bin ${.CURDIR}/files/uEnv.txt
+
# Uboot variables
.if !defined(UBOOT_VERSION) && defined(UBOOT_VERSION_${FAMILY:tu})
UBOOT_VERSION=${UBOOT_VERSION_${FAMILY:tu}}
@@ -85,6 +89,10 @@ ARCHFLAGS=ARCH=${UBOOT_ARCH}
.endif
COMPILER?=${CROSS_COMPILE}gcc
+.if !defined(UBOOT_MOVE) && defined(UBOOT_MOVE_${FAMILY:tu})
+UBOOT_MOVE=${UBOOT_MOVE_${FAMILY:tu}}
+.endif
+
# Each u-boot family has different files to include, bring them in.
.for i in ${UBOOT_PLIST}
PLIST_FILES+= ${UBOOT_DIR}/${i}
@@ -93,6 +101,13 @@ PLIST_FILES+= ${UBOOT_DIR}/README
do-configure:
(cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE_CMD} ${BOARD_CONFIG})
+
+# If we need to put anything into WRKSRC, do so now so we can build the PLIST
+# in do-install
+.if defined(UBOOT_MOVE)
+pre-install:
+ ${CP} ${UBOOT_MOVE} ${WRKSRC}
+.endif
do-install:
${MKDIR} ${STAGEDIR}/${INST}
Added: head/sysutils/u-boot-zedboard/files/uEnv.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/u-boot-zedboard/files/uEnv.txt Fri Aug 4 01:00:00 2017 (r447312)
@@ -0,0 +1,4 @@
+bootfile=ubldr
+loadaddr=0x02000000
+fdt_file=board.dtb
+uenvcmd=echo Booting FreeBSD from SD Card: ; fatload mmc 0 ${loadaddr} ${bootfile} && bootelf ${loadaddr}
Added: head/sysutils/u-boot-zedboard/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/u-boot-zedboard/pkg-descr Fri Aug 4 01:00:00 2017 (r447312)
@@ -0,0 +1,12 @@
+U-Boot loader for the Xilinx Zynq-based Zedboard.
+
+To install this bootloader, copy the files in the share/u-boot/u-boot-zedboard
+directory to the first partition, formatted as FAT16 or FAT32, on an SD card.
+
+This version is patched as follows:
+ * ELF and API features are enabled.
+
+For information about running FreeBSD on Xilinx Zynq SoCs, see
+WWW: http://wiki.freebsd.org/FreeBSD/arm/Zedboard
+
+For general information about U-Boot see WWW: http://www.denx.de/wiki/U-Boot
More information about the svn-ports-all
mailing list