* [PATCH] config/sifive_unmatched: add preboot commands
@ 2021-08-15 15:27 Alexander von Gluck IV
2021-09-03 7:47 ` David Abdurachmanov
0 siblings, 1 reply; 2+ messages in thread
From: Alexander von Gluck IV @ 2021-08-15 15:27 UTC (permalink / raw)
To: u-boot; +Cc: Alexander von Gluck IV
* Opens up u-boot to properly search through USB media
for a valid boot media
* The MMC on the unmatched is slow, so a model of running
the OS from USB or NVMe is a compelling one. (putting just
u-boot on the sd card)
---
configs/sifive_unmatched_defconfig | 1 +
1 file changed, 1 insertion(+)
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
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] config/sifive_unmatched: add preboot commands
2021-08-15 15:27 [PATCH] config/sifive_unmatched: add preboot commands Alexander von Gluck IV
@ 2021-09-03 7:47 ` David Abdurachmanov
0 siblings, 0 replies; 2+ messages in thread
From: David Abdurachmanov @ 2021-09-03 7:47 UTC (permalink / raw)
To: Alexander von Gluck IV; +Cc: U-Boot Mailing List
On Sun, Aug 15, 2021 at 6:27 PM Alexander von Gluck IV
<kallisti5@unixzen.com> wrote:
>
> * Opens up u-boot to properly search through USB media
> for a valid boot media
> * The MMC on the unmatched is slow, so a model of running
> the OS from USB or NVMe is a compelling one. (putting just
> u-boot on the sd card)
> ---
> configs/sifive_unmatched_defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> 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;"
I don't think you need it.
Looking at the include/config_distro_bootcmd.h and in particular at
CONFIG_CMD_USB I don't see BOOTENV_RUN_PCI_ENUM listed.
It is listed for NVMe, VirtIO, DHCP stuff. In other words the current
code in bootcmd does not expect USB to be connected via PCIe. Thus I
suggest adding BOOTENV_RUN_PCI_ENUM (one line) to CONFIG_CMD_USB
config as in other boot options. That seems to be the correct
approach.
david
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_FIT=y
> CONFIG_SPL_LOAD_FIT_ADDRESS=0x84000000
> --
> 2.32.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-03 7:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-15 15:27 [PATCH] config/sifive_unmatched: add preboot commands Alexander von Gluck IV
2021-09-03 7:47 ` David Abdurachmanov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.