diff options
-rw-r--r-- | README.md | 16 | ||||
-rwxr-xr-x | scripts/uboot-script-gen | 4 |
2 files changed, 12 insertions, 8 deletions
@@ -203,10 +203,10 @@ Where:\ -d specifies the "root" directory (paths in the config file are relative to it), this is not a working directory (any output file locations are specified in the config and any temporary files are in /tmp)\ --t specifies the u-boot command to load the binaries. "tftp", "sd" and - "scsi" are shorthands for "tftpb", "load mmc 0:1" and - "load scsi 0:1", but actually any arbitrary command can be used, for - instance -t "fatload" is valid. The only special commands are: +-t specifies the u-boot command to load the binaries. "tftp", "sd", "usb" + and "scsi" are shorthands for "tftpb", "load mmc 0:1", "fatload usb 0:1" + and "load scsi 0:1", but actually any arbitrary command can be used, + for instance -t "fatload" is valid. The only special commands are: fit, which generates a FIT image using a script, and fit_std, which produces a standard style of fit image without a script, but has issues with dom0less configurations and isn't recommended. \ @@ -277,10 +277,10 @@ Where:\ -o specifies the output disk image file name\ -a specifies whether the disk image size is to be aligned to the nearest power of two\ --t specifies the u-boot command to load the binaries. "tftp", "sd" and - "scsi" are shorthands for "tftpb", "load mmc 0:1" and - "load scsi 0:1", but actually any arbitrary command can be used, for - instance -t "fatload" is valid. +-t specifies the u-boot command to load the binaries. "tftp", "sd", "usb" + and "scsi" are shorthands for "tftpb", "load mmc 0:1", "fatload usb 0:1" + and "load scsi 0:1", but actually any arbitrary command can be used, + for instance -t "fatload" is valid. disk_image also generates on the fly a xl config file for each domU and 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" ;; |