[PATCH 1/4] config: rock64: start USB to make storage usable

Jonas Karlman jonas at kwiboo.se
Wed Jun 14 17:03:46 CEST 2023


Hi Peter,

On 2023-06-14 14:43, Peter Robinson wrote:
> Start the USB stack so usb storage can be used. Adding the command
> as usb keyboard isn't enabled as there's not currently display output.

This is not needed for autoboot from usb to work and slows down boot
from sd/emmc by forcing usb to start.

bootstd will init usb once it reaches usb in boot_targets and nothing
can boot before it.

  boot_targets="mmc1 mmc0 nvme scsi usb pxe dhcp spi"

You can change boot_targets env if you want to start from usb before mmc.

Regards,
Jonas

> 
> Signed-off-by: Peter Robinson <pbrobinson at gmail.com>
> ---
>  configs/rock64-rk3328_defconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig
> index 5e36612bb80..1da9b0545a5 100644
> --- a/configs/rock64-rk3328_defconfig
> +++ b/configs/rock64-rk3328_defconfig
> @@ -23,6 +23,8 @@ CONFIG_DEBUG_UART_BASE=0xFF130000
>  CONFIG_DEBUG_UART_CLOCK=24000000
>  CONFIG_SYS_LOAD_ADDR=0x800800
>  CONFIG_DEBUG_UART=y
> +CONFIG_USE_PREBOOT=y
> +CONFIG_PREBOOT="usb start"
>  # CONFIG_ANDROID_BOOT_IMAGE is not set
>  CONFIG_FIT=y
>  CONFIG_FIT_VERBOSE=y



More information about the U-Boot mailing list