diff options
author | Ayan Kumar Halder | 2022-03-14 14:26:35 +0000 |
---|---|---|
committer | Stefano Stabellini | 2022-03-14 14:47:01 -0700 |
commit | 4fb66bd92facc07f0afa902b6def30ec0169c195 (patch) | |
tree | 7122ca39f300bf044c56549858a1de6c83daba25 /scripts | |
parent | 1393caa374db807b7ece3fef18c00a4bffb5fa57 (diff) |
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 <ayankuma@xilinx.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/uboot-script-gen | 4 |
1 files changed, 4 insertions, 0 deletions
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" ;; |