BSD Ports

sysutils/u-boot-bananapi-r3 2026.10 FreeBSD

Cross-build das u-boot for model bananapi-r3

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Port added
Last update
Commit
2543e016b7
Categories
sysutils

Description

U-Boot loader and related files for the Banana Pi BPI-R3, for booting from the SD card (SW1 set to SD boot).

The boot ROM loads bl2.img from the GPT partition marked as legacy BIOS bootable. BL2 then loads u-boot.fip, which holds BL31 and U-Boot, from the GPT partition named "fip". U-Boot keeps its environment in the GPT partition named "ubootenv".

To install this bootloader on an SD card where these partitions are named "bl2" and "fip" just do:

cd /usr/local/share/u-boot/u-boot-bananapi-r3 dd if=bl2.img of=/dev/gpt/bl2 bs=512 conv=sync dd if=u-boot.fip of=/dev/gpt/fip bs=512 conv=sync

Version history 1

  1. 2026.10 2543e016b7

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install u-boot-bananapi-r3

From the ports tree:

cd /usr/ports/sysutils/u-boot-bananapi-r3/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	u-boot-bananapi-r3>0:sysutils/u-boot-bananapi-r3

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest----2026.10
FreeBSD:14:quarterly--n/a--
FreeBSD:15:latest--n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest-2026.10n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 41
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Files

No file lists for this port.

Commit history 1

DateCommitCreditsLog message
2543e016b7 Hayzam Sherif sysutils/u-boot-bananapi-r3: Add new port
U-Boot for the Banana Pi BPI-R3 (MediaTek MT7986), booting from the SD card. A new mt7986 family in sysutils/u-boot-master installs BL2 from sysutils/atf-mt7986 and a FIP with BL31 and U-Boot, made with sysutils/fiptool. The fragment enables the EFI loader and autoboot, which the board's defconfig disables, and keeps the environment in the GPT partition named "ubootenv" instead of at a fixed offset. U-Boot 2026.10 also needs upstream commit 3ffad26f17cb for the MediaTek clocks before relocation; without it the board resets in a loop. Sponsored by: Alchemilla Ventures Private Limited Reviewed by: jrm, manu Differential Revision: https://reviews.freebsd.org/D61539