diff options
| -rwxr-xr-x | scripts/runqemu | 6 | ||||
| -rwxr-xr-x | scripts/runqemu-internal | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 7454dd4a16..7e4bcc4e5f 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -26,6 +26,7 @@ usage() { | |||
| 26 | echo " KERNEL - the kernel image file to use" | 26 | echo " KERNEL - the kernel image file to use" |
| 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 " Simplified QEMU command-line options can be passed with:" | 30 | echo " Simplified QEMU command-line options can be passed with:" |
| 30 | echo " nographic - disables video console" | 31 | echo " nographic - disables video console" |
| 31 | echo " serial - enables a serial console on /dev/ttyS0" | 32 | echo " serial - enables a serial console on /dev/ttyS0" |
| @@ -37,6 +38,7 @@ usage() { | |||
| 37 | echo " $MYNAME qemuarm" | 38 | echo " $MYNAME qemuarm" |
| 38 | echo " $MYNAME qemux86-64 core-image-sato ext3" | 39 | echo " $MYNAME qemux86-64 core-image-sato ext3" |
| 39 | echo " $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial" | 40 | echo " $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial" |
| 41 | echo " $MYNAME qemux86 ramfs" | ||
| 40 | echo " $MYNAME qemux86 qemuparams=\"-m 256\"" | 42 | echo " $MYNAME qemux86 qemuparams=\"-m 256\"" |
| 41 | echo " $MYNAME qemux86 bootparams=\"psplash=false\"" | 43 | echo " $MYNAME qemux86 bootparams=\"psplash=false\"" |
| 42 | exit 1 | 44 | exit 1 |
| @@ -118,6 +120,10 @@ while true; do | |||
| 118 | LAZY_ROOTFS="true" | 120 | LAZY_ROOTFS="true" |
| 119 | fi | 121 | fi |
| 120 | ;; | 122 | ;; |
| 123 | "ramfs") | ||
| 124 | FSTYPE=cpio.gz | ||
| 125 | RAMFS=true | ||
| 126 | ;; | ||
| 121 | "nographic") | 127 | "nographic") |
| 122 | SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -nographic" | 128 | SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -nographic" |
| 123 | SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" | 129 | SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" |
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index eeadb24ebe..0d4f4a1d08 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
| @@ -453,6 +453,11 @@ if [ "$MACHINE" = "akita" ]; then | |||
| 453 | fi | 453 | fi |
| 454 | fi | 454 | fi |
| 455 | 455 | ||
| 456 | if [ "x$RAMFS" = "xtrue" ]; then | ||
| 457 | QEMUOPTIONS="-initrd $ROOTFS -nographic" | ||
| 458 | KERNCMDLINE="root=/dev/ram0" | ||
| 459 | fi | ||
| 460 | |||
| 456 | if [ "x$QEMUOPTIONS" = "x" ]; then | 461 | if [ "x$QEMUOPTIONS" = "x" ]; then |
| 457 | echo "Error: Unable to support this combination of options" | 462 | echo "Error: Unable to support this combination of options" |
| 458 | cleanup | 463 | cleanup |
