sysutils/u-boot-sifive-fu540 2026.10 FreeBSD
Cross-build das u-boot for model sifive-fu540
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
9f022e1fca- License
- GPLv2
- Categories
- sysutils
- Package size
- 426.8 KiB, 976.7 KiB installed
Description
U-Boot loader and related files for the HiFive Unleashed (FU540).
The SD card must be formatted with a GPT partition scheme, and expects two specific GUID partition types for the SPL and FIT image.
Note: due to limitations in gpart(8), sgdisk(8) should be used instead. Install it with the sysutils/gdisk port or package.
Assuming an SD card device in /dev/da2, execute: sgdisk --clear --set-alignment=2 \ --new=1:34:2081 --change-name=1:loader1 --typecode=1:5B193300-FC78-40CD-8002-E86C45580B47 \ --new=2:2082:10273 --change-name=2:loader2 --typecode=2:2E54B353-1271-4842-806F-E436D6AF6985 \ /dev/da2
Now, copy the u-boot files to the SD card with dd(1). dd if=/usr/local/share/u-boot/u-boot-sifive-fu540/u-boot-spl.bin of=/dev/da2p1 conv=sync dd if=/usr/local/share/u-boot/u-boot-sifive-fu540/u-boot.itb of=/dev/da2p2 conv=sync
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | sysutils/u-boot-sifive-fu540 | 2026.10 |
| DragonFly | sysutils/u-boot-sifive-fu540 | 2024.07 |
| MidnightBSD | sysutils/u-boot-sifive-fu540 | |
| HardenedBSD | sysutils/u-boot-sifive-fu540 | 2026.07 |
| GhostBSD | sysutils/u-boot-sifive-fu540 | 2026.07 |
Install
Binary package:
pkg install u-boot-sifive-fu540
From the ports tree:
cd /usr/ports/sysutils/u-boot-sifive-fu540/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= u-boot-sifive-fu540>0:sysutils/u-boot-sifive-fu540
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2026.07 | 2026.07 | - | 2025.04_1 | 2026.07 |
| FreeBSD:14:quarterly | 2026.07 | 2026.07 | n/a | 2025.04 | 2026.07 |
| FreeBSD:15:latest | 2026.07 | 2026.10 | n/a | 2025.04_1 | 2025.04_1 |
| FreeBSD:15:quarterly | 2026.07 | 2026.07 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2026.07 | 2026.10 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${LOCALBASE}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin: sysutils/opensbi
The full lists below include those, and their dependencies in turn.
Build dependencies 40
- archivers/brotli
- archivers/liblz4
- archivers/zstd
- devel/binutils
- devel/bison
- devel/gettext-runtime
- devel/gmake
- devel/libffi
- devel/libtextstyle
- devel/libunistring
- devel/m4
- devel/pcre2
- devel/pkgconf
- devel/py-setuptools
- devel/py-setuptools-pkg
- devel/readline
- devel/riscv64-none-elf-gcc
- devel/swig
- dns/libidn2
- lang/perl5.42
- lang/python312
- lang/python315
- math/gmp
- math/mpc
- math/mpdecimal
- math/mpfr
- misc/libuuid
- print/indexinfo
- security/gnutls
- security/libtasn1
- security/nettle
- security/p11-kit
- shells/bash
- sysutils/coreutils
- sysutils/dtc
- sysutils/opensbi
- sysutils/u-boot-tools
- textproc/expat2
- textproc/gsed
- textproc/libyaml
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
Files
No file lists for this port.