From 3dd77b33a720b77386c67a8489aa410dc8be427a Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sat, 30 Nov 2024 21:50:33 +0300 Subject: u-boot: Enable USB with a preboot command We need to initialize the USB subsystem before we can use USB devices like keyboards and external disks, by running `usb start`. Use the PREBOOT config option to run the necessary command before U-Boot tries to automatically boot anything. It's already enabled for boards other than gru_kevin and gru_bob, so just update those two configs. Signed-off-by: Alper Nebi Yasak --- config/u-boot/gru_bob/config/default | 4 +++- config/u-boot/gru_kevin/config/default | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/u-boot/gru_bob/config/default b/config/u-boot/gru_bob/config/default index 54ad1e4f..863a0fee 100644 --- a/config/u-boot/gru_bob/config/default +++ b/config/u-boot/gru_bob/config/default @@ -476,7 +476,9 @@ CONFIG_ARCH_FIXUP_FDT_MEMORY=y # CONFIG_BOOTARGS_SUBST is not set CONFIG_USE_BOOTCOMMAND=y CONFIG_BOOTCOMMAND="bootflow scan -lb" -# CONFIG_USE_PREBOOT is not set +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="usb start" +CONFIG_PREBOOT_DEFINED=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-gru-bob.dtb" # CONFIG_SAVE_PREV_BL_FDT_ADDR is not set # CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR is not set diff --git a/config/u-boot/gru_kevin/config/default b/config/u-boot/gru_kevin/config/default index 397e387a..1e14cdba 100644 --- a/config/u-boot/gru_kevin/config/default +++ b/config/u-boot/gru_kevin/config/default @@ -476,7 +476,9 @@ CONFIG_ARCH_FIXUP_FDT_MEMORY=y # CONFIG_BOOTARGS_SUBST is not set CONFIG_USE_BOOTCOMMAND=y CONFIG_BOOTCOMMAND="bootflow scan -lb" -# CONFIG_USE_PREBOOT is not set +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="usb start" +CONFIG_PREBOOT_DEFINED=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-gru-kevin.dtb" # CONFIG_SAVE_PREV_BL_FDT_ADDR is not set # CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR is not set -- cgit v1.2.1