Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2017 18:57:48 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454265 - in head/sysutils/u-boot-rpi2: . files
Message-ID:  <201711151857.vAFIvmfl011334@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu (src committer)
Date: Wed Nov 15 18:57:48 2017
New Revision: 454265
URL: https://svnweb.freebsd.org/changeset/ports/454265

Log:
  Update the u-boot-rpi2 port to use the u-boot-master port.
  This also bring u-boot to version 2017.09 and the firmware files are no
  longer in this port but in sysutils/rpi-firmware.
  Also I'm stepping in as maintainer.
  
  Tested On: RPI2v1.1, RPI2v1.2
  
  Reviewed by:	imp
  Approved by:	imp
  Differential Revision:	https://reviews.freebsd.org/D13049

Deleted:
  head/sysutils/u-boot-rpi2/distinfo
  head/sysutils/u-boot-rpi2/files/
Modified:
  head/sysutils/u-boot-rpi2/Makefile
  head/sysutils/u-boot-rpi2/pkg-descr

Modified: head/sysutils/u-boot-rpi2/Makefile
==============================================================================
--- head/sysutils/u-boot-rpi2/Makefile	Wed Nov 15 18:51:56 2017	(r454264)
+++ head/sysutils/u-boot-rpi2/Makefile	Wed Nov 15 18:57:48 2017	(r454265)
@@ -1,61 +1,12 @@
 # $FreeBSD$
 
-PORTNAME=	u-boot
-PORTVERSION=	2015.04
-CATEGORIES=	sysutils
-MASTER_SITES=	ftp://ftp.denx.de/pub/u-boot/ \
-		LOCAL/loos/rpi2-boot-files:bootfiles
-PKGNAMESUFFIX=	-rpi2
-DISTFILES=	u-boot-${PORTVERSION}.tar.bz2 \
-		rpi2-boot-files-2015.04.tar.bz2:bootfiles
+MAINTAINER=	manu@FreeBSD.org
+MASTERDIR=	${.CURDIR}/../u-boot-master
 
-MAINTAINER=	loos@FreeBSD.org
-COMMENT=	Cross-build U-Boot loader for Raspberry Pi 2
+MODEL=		rpi2
+BOARD_CONFIG=	rpi_2_defconfig
+FAMILY=		rpi
 
-LICENSE=	GPLv2
+DEPENDS=	${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware
 
-BUILD_DEPENDS=	arm-none-eabi-gcc:devel/arm-none-eabi-gcc
-
-NO_ARCH=	yes
-
-WRKSRC=		${WRKDIR}/u-boot-${DISTVERSION}
-USES=		gmake tar:bzip2
-SSP_UNSAFE=	yes # cross-LD does not support -fstack-protector
-
-WRK_BOOTFILES=	${WRKDIR}/rpi2-boot-files
-
-U_BOOT_DIR=	share/u-boot/${PORTNAME}${PKGNAMESUFFIX}
-PLIST_FILES=	${U_BOOT_DIR}/u-boot.bin \
-		${U_BOOT_DIR}/README \
-		${U_BOOT_DIR}/bootcode.bin \
-		${U_BOOT_DIR}/fixup.dat \
-		${U_BOOT_DIR}/fixup_cd.dat \
-		${U_BOOT_DIR}/fixup_x.dat \
-		${U_BOOT_DIR}/start.elf \
-		${U_BOOT_DIR}/start_cd.elf \
-		${U_BOOT_DIR}/start_x.elf \
-		${U_BOOT_DIR}/config.txt \
-		${U_BOOT_DIR}/LICENCE.broadcom
-
-MAKE_ARGS+=	ARCH=arm \
-		CROSS_COMPILE=arm-none-eabi-
-
-post-patch:
-	@${LN} -sf compiler-gcc5.h ${WRKSRC}/include/linux/compiler-gcc6.h
-
-do-configure:
-	(cd ${WRKSRC}; ${MAKE_CMD} rpi_2_defconfig)
-
-# The output of the u-boot build process is u-boot.bin.  Older firmware
-# versions require a standard header, but the recent versions (our case)
-# are capable of booting u-boot.bin directly.  Also copy the entire
-# contents of the bootfiles distribution (these are proprietary binary
-# files required to boot).
-IMGFILE=${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.img
-do-install:
-	${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}
-	${INSTALL_DATA} ${WRKSRC}/u-boot.bin ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}
-	${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README
-	${INSTALL_DATA} ${WRK_BOOTFILES}/* ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}
-
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"

Modified: head/sysutils/u-boot-rpi2/pkg-descr
==============================================================================
--- head/sysutils/u-boot-rpi2/pkg-descr	Wed Nov 15 18:51:56 2017	(r454264)
+++ head/sysutils/u-boot-rpi2/pkg-descr	Wed Nov 15 18:57:48 2017	(r454265)
@@ -1,12 +1,15 @@
-U-Boot loader and related files for Raspberry Pi 2
+U-Boot loader for Raspberry Pi 2
 
-To install this bootloader, copy ALL the files in the share/u-boot/u-boot-rpi2
-directory to the first partition, formatted as FAT32, on an SD card.
+To install this bootloader, copy u-boot.bin in the share/u-boot/u-boot-rpi
+directory to the first partition, formatted as FAT16 or FAT32, on an SD card.
+You will also need the firmware files from the rpi-firmware package.
 
 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 uboot.env on the FAT partition.
+ * The distroboot command knows how to load FreeBSD loader(8)
+ * By default, it loads ubldr.bin (PIE) from file ubldr.bin on the FAT
+   partition to address ${kernel_addr_r}, and launches it. If ubldr.bin is
+   not found, it falls back on ubldr
 
 For information about running FreeBSD on RaspberryPi, see
 WWW: http://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711151857.vAFIvmfl011334>