diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-01-15 10:17:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-16 11:57:33 +0000 |
commit | 0c1b6098d445b67735ad6cfd21d07f865837169f (patch) | |
tree | 79115ffdce8c3eb9ef0fcf0350832456f49c9bb3 /scripts/runqemu | |
parent | 14363c30ce103f3116d687fd279cb671c6337f9a (diff) | |
download | poky-0c1b6098d445b67735ad6cfd21d07f865837169f.tar.gz |
runqemu scripts: add support for booting an ISO image
Add support for booting an ISO image for runqemu scripts.
[YOCTO #3710]
(From OE-Core rev: edd629029979dc18905fce23b64216f15eea501f)
Signed-off-by: Chen Qi <Qi.Chen@windriver.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-x | scripts/runqemu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 188eccf003..c20c8dd3a6 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -27,6 +27,7 @@ usage() { | |||
27 | echo " ROOTFS - the rootfs image file or nfsroot directory to use" | 27 | echo " ROOTFS - the rootfs image file or nfsroot directory to use" |
28 | echo " MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)" | 28 | echo " MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)" |
29 | echo " RAMFS - boot a ramfs-based image" | 29 | echo " RAMFS - boot a ramfs-based image" |
30 | echo " ISO - boot an ISO image" | ||
30 | echo " VM - boot a vmdk image" | 31 | echo " VM - boot a vmdk image" |
31 | echo " Simplified QEMU command-line options can be passed with:" | 32 | echo " Simplified QEMU command-line options can be passed with:" |
32 | echo " nographic - disables video console" | 33 | echo " nographic - disables video console" |
@@ -40,6 +41,7 @@ usage() { | |||
40 | echo " $MYNAME qemux86-64 core-image-sato ext3" | 41 | echo " $MYNAME qemux86-64 core-image-sato ext3" |
41 | echo " $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial" | 42 | echo " $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial" |
42 | echo " $MYNAME qemux86 ramfs" | 43 | echo " $MYNAME qemux86 ramfs" |
44 | echo " $MYNAME qemux86 iso" | ||
43 | echo " $MYNAME qemux86 qemuparams=\"-m 256\"" | 45 | echo " $MYNAME qemux86 qemuparams=\"-m 256\"" |
44 | echo " $MYNAME qemux86 bootparams=\"psplash=false\"" | 46 | echo " $MYNAME qemux86 bootparams=\"psplash=false\"" |
45 | echo " $MYNAME path/to/<image>-<machine>.vmdk" | 47 | echo " $MYNAME path/to/<image>-<machine>.vmdk" |
@@ -132,6 +134,10 @@ while true; do | |||
132 | FSTYPE=cpio.gz | 134 | FSTYPE=cpio.gz |
133 | RAMFS=true | 135 | RAMFS=true |
134 | ;; | 136 | ;; |
137 | "iso") | ||
138 | FSTYPE=iso | ||
139 | ISOFS=true | ||
140 | ;; | ||
135 | "nographic") | 141 | "nographic") |
136 | SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -nographic" | 142 | SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -nographic" |
137 | SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" | 143 | SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" |