Skip to contentSkip to conversation

SiFive Unmatched default boot script update?

bug? Alexander von Gluck IV 1 participant 2 messages Aug 15, 2021 SiFive drivers

lore
Share & tools
lore
#0 lore raw

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.

Thanks!

-- Alex

#1 lore raw
Quoted 10 lines · Alexander von Gluck IV

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

Quoted 8 lines

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?

configs/sifive_unmatched_defconfig +1 -0
index 38b7acd536..0e02d46f72 100644
@@ -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