1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00
freebsd/release/riscv
Mitchell Horne 3fb8f1272b riscv: add firmware partitions to GENERICSD.conf
Create two partitions in the existing space at the beginning of the
image (8MB). These are intended to hold u-boot SPL and u-boot proper.

The partition types selected are compatible with SiFive boards, e.g. the
HiFive Unmatched. They can easily be overridden for a platform that uses
the same scheme but different partition types, e.g. the StarFive
VisionFive v2. Firmware is not actually installed, this too is left for
the user.

It is not as simple to create the firmware partitions after the fact,
e.g. with partition indices 3 and 4. It is a shortcoming of current day
u-boot that the SPL loader looks for a specific partition index, rather
than the partition type, meaning that we will fail to boot if partition
2 doesn't contain u-boot.

Thus, our GENERICSD images become more generically usable with current
RISC-V hardware/firmware platforms.

Reviewed by:	manu, karels, imp
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D43849
2024-02-14 11:16:54 -04:00
..
GENERICSD.conf riscv: add firmware partitions to GENERICSD.conf 2024-02-14 11:16:54 -04:00
make-memstick.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mkisoimages.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
riscv64.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00