[bug?] SiFive Unmatched default boot script update?

Alexander von Gluck IV kallisti5 at unixzen.com
Sun Aug 15 17:15:31 CEST 2021


August 15, 2021 9:59 AM, "Alexander von Gluck IV" <kallisti5 at unixzen.com> wrote:

> Good morning!
> 
> Mainline Haiku is now getting into the kernel on the SiFive Unmatched
> board!
> 
> Our current boot process involves running the following from u-boot
> to boot Haiku from a USB drive:
> 
> pci enum ; usb start ; run bootcmd_usb0
> 
> I feel like "pci enum; usb start;" should be default things to do on
> the unmatched board if they're not already? If you don't run the commands
> above, u-boot finds our EFI bootloader, but the the USB drives don't show
> up in our EFI bootloader.
> 
> Given the mmc card on the Unmatched is kind of slow, a model of having
> u-boot on the mmc card, and booting from usb drives / nvme feels like
> a good one.

Digging into this slightly; it looks like the following is needed?

diff --git a/configs/sifive_unmatched_defconfig b/configs/sifive_unmatched_defconfig
index 38b7acd536..0e02d46f72 100644
--- a/configs/sifive_unmatched_defconfig
+++ b/configs/sifive_unmatched_defconfig
@@ -11,6 +11,7 @@ CONFIG_TARGET_SIFIVE_UNMATCHED=y
 CONFIG_ARCH_RV64I=y
 CONFIG_RISCV_SMODE=y
 # CONFIG_SPL_USE_ARCH_MEMMOVE is not set
+CONFIG_PREBOOT="pci enum; usb start;"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x84000000


That's the same thing the Raspberry Pi 4 does.


 -- Alex


More information about the U-Boot mailing list