From 4fb66bd92facc07f0afa902b6def30ec0169c195 Mon Sep 17 00:00:00 2001 From: Ayan Kumar Halder Date: Mon, 14 Mar 2022 14:26:35 +0000 Subject: Add support to load images via usb With certain boards the only way possible to load the boot images, is from the usb partition which has been formatted with FAT filesystem. Thus, added support to load images from the usb device with a FAT partition. Signed-off-by: Ayan Kumar Halder Reviewed-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- scripts/uboot-script-gen | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/uboot-script-gen') diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen index 84faf6c..2d9c481 100755 --- a/scripts/uboot-script-gen +++ b/scripts/uboot-script-gen @@ -732,6 +732,7 @@ function print_help echo " LOAD_CMD can be:" echo " sd - alias for \"load mmc 0:1\" for uboot load commands" echo " scsi - alias for \"load scsi 0:1\" for uboot load commands" + echo " usb - alias for \"fatload usb 0:1\" for uboot load commands" echo " tftp - alias for \"tftpb\" for uboot load cammnds" echo " < > - used for uboot load commands" echo " FILE - output filename for the uboot script and its source, overrides option in CONFIG_FILE" @@ -757,6 +758,9 @@ while getopts ":c:t:d:ho:k:u:ef" opt; do sd ) load_opt="load mmc 0:1" ;; + usb ) + load_opt="fatload usb 0:1" + ;; tftp ) load_opt="tftpb" ;; -- cgit v1.2.3