* [PATCH 0/1] runqemu ramfs support
@ 2012-08-13 20:20 Scott Garman
2012-08-13 20:20 ` [PATCH 1/1] runqemu: support booting ramfs-based images Scott Garman
2012-08-17 21:00 ` [PATCH 0/1] runqemu ramfs support Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Scott Garman @ 2012-08-13 20:20 UTC (permalink / raw)
To: openembedded-core
Added support for booting ramfs-based images (e.g, poky-tiny) which
do not have block device support.
This fixes [YOCTO #2612].
Scott
The following changes since commit 5290e82ecef08b5e573d7442627276d7b42c6b93:
foomatic: fix perl path for target (2012-08-08 10:05:52 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib sgarman/runqemu-ramfs-oe
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgarman/runqemu-ramfs-oe
Scott Garman (1):
runqemu: support booting ramfs-based images
scripts/runqemu | 6 ++++++
scripts/runqemu-internal | 5 +++++
2 files changed, 11 insertions(+)
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] runqemu: support booting ramfs-based images
2012-08-13 20:20 [PATCH 0/1] runqemu ramfs support Scott Garman
@ 2012-08-13 20:20 ` Scott Garman
2012-08-17 21:00 ` [PATCH 0/1] runqemu ramfs support Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Scott Garman @ 2012-08-13 20:20 UTC (permalink / raw)
To: openembedded-core
Added support for booting ramfs-based images (e.g, poky-tiny) which
do not have block device support.
This fixes [YOCTO #2612].
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
---
scripts/runqemu | 6 ++++++
scripts/runqemu-internal | 5 +++++
2 files changed, 11 insertions(+)
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"
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index eeadb24..0d4f4a1 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -453,6 +453,11 @@ if [ "$MACHINE" = "akita" ]; then
fi
fi
+if [ "x$RAMFS" = "xtrue" ]; then
+ QEMUOPTIONS="-initrd $ROOTFS -nographic"
+ KERNCMDLINE="root=/dev/ram0"
+fi
+
if [ "x$QEMUOPTIONS" = "x" ]; then
echo "Error: Unable to support this combination of options"
cleanup
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1] runqemu ramfs support
2012-08-13 20:20 [PATCH 0/1] runqemu ramfs support Scott Garman
2012-08-13 20:20 ` [PATCH 1/1] runqemu: support booting ramfs-based images Scott Garman
@ 2012-08-17 21:00 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-08-17 21:00 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Scott Garman
On 08/13/2012 01:20 PM, Scott Garman wrote:
> Added support for booting ramfs-based images (e.g, poky-tiny) which
> do not have block device support.
>
> This fixes [YOCTO #2612].
>
> Scott
>
> The following changes since commit 5290e82ecef08b5e573d7442627276d7b42c6b93:
>
> foomatic: fix perl path for target (2012-08-08 10:05:52 +0100)
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib sgarman/runqemu-ramfs-oe
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgarman/runqemu-ramfs-oe
>
> Scott Garman (1):
> runqemu: support booting ramfs-based images
>
> scripts/runqemu | 6 ++++++
> scripts/runqemu-internal | 5 +++++
> 2 files changed, 11 insertions(+)
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-17 21:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 20:20 [PATCH 0/1] runqemu ramfs support Scott Garman
2012-08-13 20:20 ` [PATCH 1/1] runqemu: support booting ramfs-based images Scott Garman
2012-08-17 21:00 ` [PATCH 0/1] runqemu ramfs support Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox