Index: sysutils/u-boot-rpi-0-w/Makefile =================================================================== --- /dev/null +++ sysutils/u-boot-rpi-0-w/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +MAINTAINER= uboot@FreeBSD.org +MASTERDIR= ${.CURDIR}/../u-boot-master + +MODEL= rpi-0-w +BOARD_CONFIG= rpi_0_w_defconfig +FAMILY= rpi + +DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware + +PATCHFILES+= 937869/mbox/? \ + 939129/mbox/? + +CONFIG_FRAGMENT= ${.CURDIR}/files/rpi_0_w_fragment +FRAGMENT_NAME= rpi_0_w_fragment + +.include "${MASTERDIR}/Makefile" Index: sysutils/u-boot-rpi-0-w/files/rpi_0_w_fragment =================================================================== --- /dev/null +++ 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 Index: sysutils/u-boot-rpi-0-w/pkg-descr =================================================================== --- /dev/null +++ sysutils/u-boot-rpi-0-w/pkg-descr @@ -0,0 +1,17 @@ +U-Boot loader for Raspberry Pi + +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 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: https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi + +For general information about U-Boot see WWW: https://www.denx.de/wiki/U-Boot