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
For general information about U-Boot see WWW: https://www.denx.de/wiki/U-Boot
Move more WWW entries from pkg-descr files into Makefiles
The WWW: lines in the pkg-descr files of these ports where not at the
end of those files and have been missed in prior conversion runs.
Approved by: portmgr (implicit)
sysutils/u-boot-*: Add patch to fix MMC ordering
For FreeBSD we use a dtb overlay that switches between the sdhost and
the sdhci controller for sd card.
Recent changes in u-boot device model changed device numbering and the
sd card controller became "mmc2" for our setup which isn't accounted for
in the possible boot devices.
Patch isn't accepted yet upstream but bring this patch in for our ports anyway.
sysutils/u-boot-*: Remove ubldr support
We have been using loader.efi on armv7 for a long time now.
Remove support for booting with ubldr and the needed patches that were
never upstreamed.
While here add CONFIG_EFI_GRUB_ARM32_WORKAROUND=y in the Fragment as it's
needed to have the cache flushed for us when loader.efi is started.
Minor cleanup of u-boot's patches
Move to using the 'raw' patches for those patches that are currently
in u-boot's upstream landing zone. Move to using a u-boot directory
since the numeric names aren't very u-boot specific and might
conflict. Bump PORTREVISION out of an abundance of caution.
Differential Review: https://reviews.freebsd.org/D16409
Remove MAINTAINER lines. They are set by the master port and all these
ports are maintained by the uboot@ mailing list.
Approved by: uboot@ (maintainer of these ports)
Differential Review: https://reviews.freebsd.org/D16397
Revert r475122, r475123 and r475124.
To manage upstream, we use the exact patches we've submitted upstream
via their patchwork server. This deviates a little from a standard
port, but it's what we do with all the other u-boot ports and isn't
grossly out of line (many other ports pull patches during the build).
We do it this way because the standard way was an unmanageable
nightmare and resulted in divergence of u-boot ports.
Approved by: uboot@ (maintainer of these ports)
Differential Revision: https://reviews.freebsd.org/D16397
u-boot: Update to v2018.07
This add:
- Explicit Depency on bison
- Remove the DTC= on MAKE_ARGS as we use the BINARY_ALIAS already
- metadata variables
- Add cache cmds and disable secure boot
- All RPI uses some special fragments to enable OF_BOARD.
This makes u-boot using the DTB loaded by the firmware instead of
using it's own.
- For patches accepted but not in mainline due to timing issue use patchwork
directly instead of putting files in the port
- All armv7 boards are EFI enabled and boot in secure mode
(Only the first 15 lines of the commit message are shown above )
Update the u-boot-rpi 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: RPI-B, RPI0v1.2, RPI0v1.3
Reviewed by: imp
Approved by: imp
Differential Revision: https://reviews.freebsd.org/D13048
Fix few style violations in u-boot ports:
- GMAKE -> MAKE_CMD, MAKE_CMD is always set to required make implementation
- CP -> INSTALL_DATA, INSTALL_DATA makes sure files are always installed
with proper permissions
- sysutils/u-boot-rpi: include missed files installed in STAGEDIR in PLIST_FILES
PR: 210982
Submitted by: myself
Approved by: maintainers timeout
Update u-boot-rpi to the latest versions of u-boot and firmware files.
The updated boot firmware reportedly supports the new Rpi Zero as well as
existing models. The latest u-boot now runs with caches enabled for faster
booting.
These changes add the standard freebsd API patch to flush caches on device
close. Also, CONFIG_CMD_ELF is removed from our config changes, because it's
now on by default for rpi in 2016.01.
Approved by: sbruno(mentor)
Differential Revision: https://reviews.freebsd.org/D5150
Update USE_GITHUB so it does not require GH_COMMIT.
Using this new scheme allows only setting the _tag_ or _commit hash_ in
GH_TAGNAME and not having to know the hash for a tag. This scheme will
download a tarball that has a different checksum than before due to a changed
directory name for extraction.
The following MASTER_SITES are provided to retain the old checksum and
directory structure (that require GH_COMMIT):
GH -> GHL
GITHUB -> GITHUB_LEGACY
Differential Revision: https://reviews.freebsd.org/D748
Submitted by: amdmi3
Reviewed by: mat, swills, antoine, bdrewery
With hat: portmgr
Add all the files required to boot a Raspberry Pi to the port. Also, change
the default environment variables to be similar to wandboard and beaglebone.
Approved by: imp