SiFive Unmatched default boot script update?
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
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
@@ -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