All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target
@ 2018-11-12  9:59 Sumit Garg
  2018-11-12 18:53 ` Tuomas Tynkkynen
  0 siblings, 1 reply; 3+ messages in thread
From: Sumit Garg @ 2018-11-12  9:59 UTC (permalink / raw)
  To: u-boot

With -device virtio-blk-device,drive=hd0, it could detect distro boot
target.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
---

Depends on https://patchwork.ozlabs.org/patch/995524/ which adds VirtIO
distro boot command.

 include/configs/qemu-arm.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
index fedc466..437c3ae 100644
--- a/include/configs/qemu-arm.h
+++ b/include/configs/qemu-arm.h
@@ -25,7 +25,8 @@
 
 #define BOOT_TARGET_DEVICES(func) \
 	func(SCSI, scsi, 0) \
-	func(DHCP, dhcp, na)
+	func(DHCP, dhcp, na) \
+	func(VIRTIO, virtio, 0)
 
 #include <config_distro_bootcmd.h>
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target
  2018-11-12  9:59 [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target Sumit Garg
@ 2018-11-12 18:53 ` Tuomas Tynkkynen
  2018-11-13  4:44   ` Sumit Garg
  0 siblings, 1 reply; 3+ messages in thread
From: Tuomas Tynkkynen @ 2018-11-12 18:53 UTC (permalink / raw)
  To: u-boot

Hi Sumit,

On Mon, 12 Nov 2018 15:29:08 +0530
Sumit Garg <sumit.garg@linaro.org> wrote:

> With -device virtio-blk-device,drive=hd0, it could detect distro boot
> target.
> 
> Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
> ---
...
> diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
> index fedc466..437c3ae 100644
> --- a/include/configs/qemu-arm.h
> +++ b/include/configs/qemu-arm.h
> @@ -25,7 +25,8 @@
>  
>  #define BOOT_TARGET_DEVICES(func) \
>  	func(SCSI, scsi, 0) \
> -	func(DHCP, dhcp, na)
> +	func(DHCP, dhcp, na) \
> +	func(VIRTIO, virtio, 0)
>  
>  #include <config_distro_bootcmd.h>
>  

I think typically DHCP is the very last boot option since it can take
quite long to notice if there's no DHCP server on the network and fall
back to the next option. So perhaps an order of

SCSI; VIRTIO; DHCP

would be better.

Other than that, looks fine to me.

- Tuomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target
  2018-11-12 18:53 ` Tuomas Tynkkynen
@ 2018-11-13  4:44   ` Sumit Garg
  0 siblings, 0 replies; 3+ messages in thread
From: Sumit Garg @ 2018-11-13  4:44 UTC (permalink / raw)
  To: u-boot

Hi Tuomas,

On Tue, 13 Nov 2018 at 00:23, Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> wrote:
>
> Hi Sumit,
>
> On Mon, 12 Nov 2018 15:29:08 +0530
> Sumit Garg <sumit.garg@linaro.org> wrote:
>
> > With -device virtio-blk-device,drive=hd0, it could detect distro boot
> > target.
> >
> > Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
> > ---
> ...
> > diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
> > index fedc466..437c3ae 100644
> > --- a/include/configs/qemu-arm.h
> > +++ b/include/configs/qemu-arm.h
> > @@ -25,7 +25,8 @@
> >
> >  #define BOOT_TARGET_DEVICES(func) \
> >       func(SCSI, scsi, 0) \
> > -     func(DHCP, dhcp, na)
> > +     func(DHCP, dhcp, na) \
> > +     func(VIRTIO, virtio, 0)
> >
> >  #include <config_distro_bootcmd.h>
> >
>
> I think typically DHCP is the very last boot option since it can take
> quite long to notice if there's no DHCP server on the network and fall
> back to the next option. So perhaps an order of
>
> SCSI; VIRTIO; DHCP
>

Yeah it does makes sense. Will change in v2.

-Sumit

> would be better.
>
> Other than that, looks fine to me.
>
> - Tuomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-13  4:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12  9:59 [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target Sumit Garg
2018-11-12 18:53 ` Tuomas Tynkkynen
2018-11-13  4:44   ` Sumit Garg

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.