* [ImageBuilder][PATCH] uboot-script-gen: Add virtio loader
@ 2023-02-21 11:30 Pavel Zhukov
2023-02-27 22:05 ` Stefano Stabellini
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Zhukov @ 2023-02-21 11:30 UTC (permalink / raw)
To: xen-devel; +Cc: sstabellini, Pavel Zhukov
uboot supports virtio-blk drives and can load kernel image from it.
Adding option to use '-t virtio' for loading image from virtio device
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
---
README.md | 14 +++++++-------
scripts/uboot-script-gen | 3 +++
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index cb0cb13..64e62cd 100644
--- a/README.md
+++ b/README.md
@@ -267,9 +267,9 @@ 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", "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,
+-t specifies the u-boot command to load the binaries. "tftp", "sd", "usb", "virtio"
+ and "scsi" are shorthands for "tftpb", "load mmc 0:1", "fatload usb 0:1",
+ "virtio load 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
@@ -339,10 +339,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", "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.
+-t specifies the u-boot command to load the binaries. "tftp", "sd", "usb",
+ "virtio" and "scsi" are shorthands for "tftpb", "load mmc 0:1",
+ "fatload usb 0:1", "load virtio 0:1" and "load scsi 0:1", but actually
+ any arbitrary command can be used, for instance -t "fatload" is valid.
disk\_image supports these additional parameters on the config file:
diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
index 7e5cc08..f07e334 100755
--- a/scripts/uboot-script-gen
+++ b/scripts/uboot-script-gen
@@ -1025,6 +1025,9 @@ while getopts ":c:t:d:ho:k:u:fp:" opt; do
sd )
load_opt="load mmc 0:1"
;;
+ virtio )
+ load_opt="load virtio 0:1"
+ ;;
usb )
load_opt="fatload usb 0:1"
;;
--
2.39.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [ImageBuilder][PATCH] uboot-script-gen: Add virtio loader
2023-02-21 11:30 [ImageBuilder][PATCH] uboot-script-gen: Add virtio loader Pavel Zhukov
@ 2023-02-27 22:05 ` Stefano Stabellini
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Stabellini @ 2023-02-27 22:05 UTC (permalink / raw)
To: Pavel Zhukov; +Cc: xen-devel, sstabellini
On Tue, 21 Feb 2023, Pavel Zhukov wrote:
> uboot supports virtio-blk drives and can load kernel image from it.
> Adding option to use '-t virtio' for loading image from virtio device
>
> Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> README.md | 14 +++++++-------
> scripts/uboot-script-gen | 3 +++
> 2 files changed, 10 insertions(+), 7 deletions(-)
>
> diff --git a/README.md b/README.md
> index cb0cb13..64e62cd 100644
> --- a/README.md
> +++ b/README.md
> @@ -267,9 +267,9 @@ 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", "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,
> +-t specifies the u-boot command to load the binaries. "tftp", "sd", "usb", "virtio"
> + and "scsi" are shorthands for "tftpb", "load mmc 0:1", "fatload usb 0:1",
> + "virtio load 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
> @@ -339,10 +339,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", "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.
> +-t specifies the u-boot command to load the binaries. "tftp", "sd", "usb",
> + "virtio" and "scsi" are shorthands for "tftpb", "load mmc 0:1",
> + "fatload usb 0:1", "load virtio 0:1" and "load scsi 0:1", but actually
> + any arbitrary command can be used, for instance -t "fatload" is valid.
>
>
> disk\_image supports these additional parameters on the config file:
> diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
> index 7e5cc08..f07e334 100755
> --- a/scripts/uboot-script-gen
> +++ b/scripts/uboot-script-gen
> @@ -1025,6 +1025,9 @@ while getopts ":c:t:d:ho:k:u:fp:" opt; do
> sd )
> load_opt="load mmc 0:1"
> ;;
> + virtio )
> + load_opt="load virtio 0:1"
> + ;;
> usb )
> load_opt="fatload usb 0:1"
> ;;
> --
> 2.39.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-27 22:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 11:30 [ImageBuilder][PATCH] uboot-script-gen: Add virtio loader Pavel Zhukov
2023-02-27 22:05 ` Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.