From owner-svn-ports-all@freebsd.org Wed Nov 15 18:57:49 2017 Return-Path: Delivered-To: svn-ports-all@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 A11CADE43EB; Wed, 15 Nov 2017 18:57:49 +0000 (UTC) (envelope-from manu@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 7A89076061; Wed, 15 Nov 2017 18:57:49 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAFIvmX9011336; Wed, 15 Nov 2017 18:57:48 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAFIvmfl011334; Wed, 15 Nov 2017 18:57:48 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201711151857.vAFIvmfl011334@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Wed, 15 Nov 2017 18:57:48 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: in head/sysutils/u-boot-rpi2: . files X-SVN-Commit-Revision: 454265 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2017 18:57:49 -0000 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 +.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