summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-08-13 13:20:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-17 18:04:20 +0100
commit5bffd94316d9e6d49afea001c6f0a1d09624379a (patch)
tree9b7958ba5bad675790267a07cd2a1f5fdfefd3f8 /scripts/runqemu
parenta102793b1583d9d385a8f01ae89f2235531e6c83 (diff)
downloadast2050-yocto-poky-5bffd94316d9e6d49afea001c6f0a1d09624379a.zip
ast2050-yocto-poky-5bffd94316d9e6d49afea001c6f0a1d09624379a.tar.gz
runqemu: support booting ramfs-based images
Added support for booting ramfs-based images (e.g, poky-tiny) which do not have block device support. This fixes [YOCTO #2612]. (From OE-Core rev: b09c45f017da71ff966004752f8e926ea00ac451) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 7454dd4..7e4bcc4 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -26,6 +26,7 @@ usage() {
echo " KERNEL - the kernel image file to use"
echo " ROOTFS - the rootfs image file or nfsroot directory to use"
echo " MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)"
+ echo " RAMFS - boot a ramfs-based image"
echo " Simplified QEMU command-line options can be passed with:"
echo " nographic - disables video console"
echo " serial - enables a serial console on /dev/ttyS0"
@@ -37,6 +38,7 @@ usage() {
echo " $MYNAME qemuarm"
echo " $MYNAME qemux86-64 core-image-sato ext3"
echo " $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial"
+ echo " $MYNAME qemux86 ramfs"
echo " $MYNAME qemux86 qemuparams=\"-m 256\""
echo " $MYNAME qemux86 bootparams=\"psplash=false\""
exit 1
@@ -118,6 +120,10 @@ while true; do
LAZY_ROOTFS="true"
fi
;;
+ "ramfs")
+ FSTYPE=cpio.gz
+ RAMFS=true
+ ;;
"nographic")
SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -nographic"
SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
OpenPOWER on IntegriCloud