[oe-commits] Richard Purdie : runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images

git at git.openembedded.org git at git.openembedded.org
Fri Mar 20 11:10:06 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: fdd2e0c1baa80106d26236cb734e0d9a98e3fdac
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fdd2e0c1baa80106d26236cb734e0d9a98e3fdac

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Thu Mar 19 11:33:30 2015 +0000

runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images

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

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 scripts/runqemu-internal | 5 +++++
 1 file changed, 5 insertions(+)

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."



More information about the Openembedded-commits mailing list