From owner-svn-ports-head@freebsd.org Fri Aug 4 01:00:02 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0BDB1DB7873; Fri, 4 Aug 2017 01:00:02 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD5B272E3D; Fri, 4 Aug 2017 01:00:01 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v74101SU037165; Fri, 4 Aug 2017 01:00:01 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v741002o037161; Fri, 4 Aug 2017 01:00:00 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201708040100.v741002o037161@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 4 Aug 2017 01:00:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447312 - in head/sysutils: u-boot-master u-boot-zedboard u-boot-zedboard/files X-SVN-Group: ports-head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/sysutils: u-boot-master u-boot-zedboard u-boot-zedboard/files X-SVN-Commit-Revision: 447312 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2017 01:00:02 -0000 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