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
sysutils/opensbi: update to v1.8.1
In this update, drop the PMP workaround patch for FU540. This will be
fixed in the src tree.
As usual, bump dependent u-boot ports.
Tested by: Klaus Küchemann <maciphone2@googlemail.com>
Reviewed by: lwhsu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54421
sysutils/opensbi: update to v1.6
Remove the port platform OPTIONS in favor of the 'generic' platform
only. This has been the only one we've shipped with for a few versions
now.
This cleans up the Makefile, but more to the point, there is some kind
of build regression with the new version that doing the make and install
in a single step seems to fix.
Bump dependent u-boot ports.
Sponsored by: The FreeBSD Foundation
sysutils/opensbi: update to v1.3.1
Add a patch to work around an assembler error with clang 16.0. This will
be submitted upstream.
As usual, bump revision of dependent u-boot ports.
Reviewed by: jrtc27, lwhsu (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40915
sysutils/opensbi: update to version 1.2
With this version, stop providing the library and header files
altogether. I do not think they are useful at this time.
Bump associate u-boot port revisions.
Reviewed by: lwhsu
Approved by: lwhsu (ports)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37934
Fix WWW in parent/child ports
Many of the WWW are overwritten later which means the wrong value
is used. This did not happen before where the children were either
a) just using the pkg-descr from the parents
b) or had their own separate pkg-descr with custom WWW
Use WWW?= in parents when the child's WWW is different.
Children that use the same WWW as the parent can just inherit it,
i.e., the child WWW can be removed.
Approved by: portmgr (implicit)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
sysutils/opensbi: update to version 1.1
Bump the PORTREVISION of dependent u-boot ports.
Reviewed by: lwhsu
Approved by: lwhsu (ports)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35616
sysutils/opensbi: update to version v1.0
As the fu540 platform has been removed with this version, fall back to
building the generic platform only. Keep the platform logic around in
the Makefile in case we need it in the future.
Switch to building with base system clang+binutils.
Bump the PORTREVISION for sysutils/u-boot-sifive-fu540.
Reviewed by: jrtc27, lwhsu (previous version both)
Approved by: lwhsu (ports)
Tested by: Klaus Küchemann <maciphone2@googlemail.com>
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33845
sysutils/opensbi: update to v0.9
This change adds a patch to disable the PMP for the sifive/fu540 target,
which is a workaround to a PMP errata in the chip. The OpenSBI update
itself is quite minor.
Bump the dependent port, sysutils/u-boot-sifive-fu540.
Reviewed by: lwhsu, kp
Approved by: lwhsu (ports)
Tested by: Klaus Kuchemann (maciphone2@googlemail.com)
Differential Revision: https://reviews.freebsd.org/D28471
Add sysutils/u-boot-sifive-fu540: u-boot for the HiFive Unleashed
Tested by: Klaus Kuchemann <maciphone2@googlemail.com>
Reviewed by: manu, Klaus Kuchemann
Approved by: manu (uboot, ports)
Differential Revision: https://reviews.freebsd.org/D25737