All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images
@ 2015-03-19 11:33 Richard Purdie
  2015-03-19 16:39 ` Bernhard Reutner-Fischer
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2015-03-19 11:33 UTC (permalink / raw)
  To: openembedded-core

poky-tiny generates cpio.gz images, add support for these so we can boot
them using runqemu.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 6594dc3..2db5566 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -408,6 +408,11 @@ if [ "$MACHINE" = "qemux86" ]; then
         KERNCMDLINE="vga=0 uvesafb.mode_option=640x480-32 root=$DROOT rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
         QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE $ROOTFS_OPTIONS $QEMU_UI_OPTIONS"
     fi
+    if [ "${FSTYPE:0:4}" = "cpio" ]; then
+        KERNCMDLINE="vga=0 uvesafb.mode_option=640x480-32 root=/dev/ram0 rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
+        QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -initrd $ROOTFS $QEMU_UI_OPTIONS"
+    fi
+
     if [ "$FSTYPE" = "nfs" ]; then
         if [ "$NFS_SERVER" = "192.168.7.1" -a ! -d "$NFS_DIR" ]; then
             echo "Error: NFS mount point $ROOTFS doesn't exist."




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

* Re: [PATCH] runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images
  2015-03-19 11:33 [PATCH] runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images Richard Purdie
@ 2015-03-19 16:39 ` Bernhard Reutner-Fischer
  2015-03-19 16:54   ` Bernhard Reutner-Fischer
  2015-03-20 10:58   ` Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-03-19 16:39 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On March 19, 2015 12:33:30 PM GMT+01:00, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
>poky-tiny generates cpio.gz images, add support for these so we can
>boot
>them using runqemu.
>
>Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
>diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
>index 6594dc3..2db5566 100755
>--- a/scripts/runqemu-internal
>+++ b/scripts/runqemu-internal
>@@ -408,6 +408,11 @@ if [ "$MACHINE" = "qemux86" ]; then
>KERNCMDLINE="vga=0 uvesafb.mode_option=640x480-32 root=$DROOT rw
>mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
>QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE $ROOTFS_OPTIONS
>$QEMU_UI_OPTIONS"
>     fi
>+    if [ "${FSTYPE:0:4}" = "cpio" ]; then

Is that positional handling mandated by the POSIX-1003.1 2008 shell?

Otherwise case $FSTYPE in ..
Would cleanup the rest if the mess below..

With that clarified it changed
Acked-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

Thanks,

>+        KERNCMDLINE="vga=0 uvesafb.mode_option=640x480-32
>root=/dev/ram0 rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
>+        QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -initrd
>$ROOTFS $QEMU_UI_OPTIONS"
>+    fi
>+
>     if [ "$FSTYPE" = "nfs" ]; then
>         if [ "$NFS_SERVER" = "192.168.7.1" -a ! -d "$NFS_DIR" ]; then
>             echo "Error: NFS mount point $ROOTFS doesn't exist."




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

* Re: [PATCH] runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images
  2015-03-19 16:39 ` Bernhard Reutner-Fischer
@ 2015-03-19 16:54   ` Bernhard Reutner-Fischer
  2015-03-20 10:58   ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-03-19 16:54 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On March 19, 2015 5:39:12 PM GMT+01:00, Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> wrote:
>On March 19, 2015 12:33:30 PM GMT+01:00, Richard Purdie
><richard.purdie@linuxfoundation.org> wrote:
>>poky-tiny generates cpio.gz images, add support for these so we can
>>boot
>>them using runqemu.
>>
>>Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>>
>>diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
>>index 6594dc3..2db5566 100755
>>--- a/scripts/runqemu-internal
>>+++ b/scripts/runqemu-internal
>>@@ -408,6 +408,11 @@ if [ "$MACHINE" = "qemux86" ]; then
>>KERNCMDLINE="vga=0 uvesafb.mode_option=640x480-32 root=$DROOT rw
>>mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
>>QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE $ROOTFS_OPTIONS
>>$QEMU_UI_OPTIONS"
>>     fi
>>+    if [ "${FSTYPE:0:4}" = "cpio" ]; then
>
>Is that positional handling mandated by the POSIX-1003.1 2008 shell?
>
>Otherwise case $FSTYPE in ..
>Would cleanup the rest if the mess below..

of the if, even ;)

I didn't see :n:m ranges in http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02

but maybe I didn't look at the right spot?

Thanks,
>
>With that clarified it changed
>Acked-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
>
>Thanks,




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

* Re: [PATCH] runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images
  2015-03-19 16:39 ` Bernhard Reutner-Fischer
  2015-03-19 16:54   ` Bernhard Reutner-Fischer
@ 2015-03-20 10:58   ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2015-03-20 10:58 UTC (permalink / raw)
  To: Bernhard Reutner-Fischer; +Cc: openembedded-core

On Thu, 2015-03-19 at 17:39 +0100, Bernhard Reutner-Fischer wrote:
> On March 19, 2015 12:33:30 PM GMT+01:00, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
> >poky-tiny generates cpio.gz images, add support for these so we can
> >boot
> >them using runqemu.
> >
> >Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> >
> >diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
> >index 6594dc3..2db5566 100755
> >--- a/scripts/runqemu-internal
> >+++ b/scripts/runqemu-internal
> >@@ -408,6 +408,11 @@ if [ "$MACHINE" = "qemux86" ]; then
> >KERNCMDLINE="vga=0 uvesafb.mode_option=640x480-32 root=$DROOT rw
> >mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
> >QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE $ROOTFS_OPTIONS
> >$QEMU_UI_OPTIONS"
> >     fi
> >+    if [ "${FSTYPE:0:4}" = "cpio" ]; then
> 
> Is that positional handling mandated by the POSIX-1003.1 2008 shell?
> 
> Otherwise case $FSTYPE in ..
> Would cleanup the rest if the mess below..

Its a bash script so it doesn't need to be mandated by POSIX and I was
trying to be minimally invasive given the point we're at in the release
cycle, the rest of the file uses that syntax.

I would like to change some other things but it isn't really the time...

Cheers,

Richard



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

end of thread, other threads:[~2015-03-20 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 11:33 [PATCH] runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images Richard Purdie
2015-03-19 16:39 ` Bernhard Reutner-Fischer
2015-03-19 16:54   ` Bernhard Reutner-Fischer
2015-03-20 10:58   ` Richard Purdie

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.