Skip to contentSkip to conversation

qemu: Add cpio to the list of image filesystem types.

PATCH In review Elvis Dowson 1 participant 6 messages Aug 29, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 qemu: Add cpio to the list of image filesystem types.

---
 meta/conf/machine/include/qemu.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/qemu.inc +1 -1
index 545f8d1..d5c95ff 100644
@@ -15,7 +15,7 @@ MACHINE_FEATURES = "apm alsa pcmcia bluetooth irda usbgadget screen"
 
 MACHINEOVERRIDES =. "qemuall:"
 
-IMAGE_FSTYPES += "tar.bz2 ext3"
+IMAGE_FSTYPES += "cpio tar.bz2 ext3"
 
 # Don't include kernels in standard images
 RDEPENDS_kernel-base = ""
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/5 qemu: Add support for qemuarma9.

This commit
- adds support for qemuarma9 machine support based on the vexpress-a9 platform.

---
 meta/conf/machine/qemuarma9.conf |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta/conf/machine/qemuarma9.conf
meta/conf/machine/qemuarma9.conf new file +24 -0
new file mode 100644
index 0000000..a46e28c
@@ -0,0 +1,24 @@
+#@TYPE: Machine
+#@NAME: qemuarma9
+#@DESCRIPTION: Machine configuration for QEMU ARM Cortex-A9.
+
+# Specify the default tune.
+DEFAULTTUNE = "armv7a-neon"
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/tune-cortexa9.inc
+
+# Specify the preferred kernel version.
+PREFERRED_VERSION_linux-yocto ?= "3.8%"
+
+# Specify the kernel devicetree.
+KERNEL_DEVICETREE = "vexpress-v2p-ca9.dtb"
+
+# Specify the machine name used by the kernel.
+KMACHINE_qemuarma9 = "vexpress"
+
+# Specify the kernel image type.
+KERNEL_IMAGETYPE = "uImage"
+
+# Specify the serial console parameters.
+SERIAL_CONSOLE = "115200 ttyAMA0"
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 3/5 qemu: Add support for qemuarmv7.

In reply to Elvis Dowson

This commit
- adds support for qemuarmv7 machine support based on the beagleboard platform.

---
 meta/conf/machine/qemuarmv7.conf |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta/conf/machine/qemuarmv7.conf
meta/conf/machine/qemuarmv7.conf new file +18 -0
new file mode 100644
index 0000000..7f70ddb
@@ -0,0 +1,18 @@
+#@TYPE: Machine
+#@NAME: qemuarmv7
+#@DESCRIPTION: Machine configuration for QEMU ARM Cortex-A8.
+
+# Specify the default tune.
+DEFAULTTUNE = "armv7a-neon"
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/tune-cortexa8.inc
+
+# Specify the preferred kernel version.
+PREFERRED_VERSION_linux-yocto ?= "3.8%"
+
+# Specify the machine name used by the kernel.
+KMACHINE_qemuarmv7 = "beagleboard"
+
+# Specify the serial console parameters.
+SERIAL_CONSOLE = "115200 ttyO2"
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 4/5 linux-yocto: Add support for qemuarmv7 and qemuarma9.

In reply to Elvis Dowson

This commit
- adds qemuarmv7 and qemuarma9 to the list of compatible machines.

---
 meta/recipes-kernel/linux/linux-yocto_3.8.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto_3.8.bb +1 -1
index 790e3e3..0bd9913 100644
@@ -21,7 +21,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 
 KMETA = "meta"
 
-COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64"
+COMPATIBLE_MACHINE = "qemuarm|qemuarmv7|qemuarma9|qemux86|qemuppc|qemumips|qemumips64|qemux86-64"
 
 # Functionality flags
 KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
Signature · 1 line
1.7.10.4

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

Re: [oe-core 4/5] linux-yocto: Add support for qemuarmv7 and qemuarma9.

Hi Bruce,

Quoted 24 lines · Bruce Ashfield
Quoted 13 lines · Elvis Dowson

This commit
- adds qemuarmv7 and qemuarma9 to the list of compatible machines.

---
 meta/recipes-kernel/linux/linux-yocto_3.8.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto_3.8.bb +0 -0
index 790e3e3..0bd9913 100644

meta/recipes-kernel/linux/linux-yocto_3.8.bb PV = "${LINUX_VERSION}+git${SRCPV}" · line 24

Quoted 5 lines
meta/recipes-kernel/linux/linux-yocto_3.8.bb +1 -1
@@ -21,7 +21,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 
 KMETA = "meta"
 
-COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64"
+COMPATIBLE_MACHINE = "qemuarm|qemuarmv7|qemuarma9|qemux86|qemuppc|qemumips|qemumips64|qemux86-64"

We can add compatibility, but the same question needs to be asked to Richard when we added qemumips64: does the project have the capacity to build and QA the machines by default.

Quoted 3 lines

We can always get everything working in layers for the time being and then move them into the core, once everything is working well, and everyone agrees to add the extra support load.

I recommend that we create a new meta-qemu layer, to support development of qemu machine configurations for
qemuarmv7 (useful for emulating TI OMAP 3 based platforms) qemuarma9 (useful for emulating TI OMAP 4 and Freescale i.MX6 platforms) qemuarmv8 (for AArch64 platforms)
qemumips64
etc

That should just about cover current ARM A8, A9, A15 and MIPS64.

Best regards,

Elvis Dowson

#6 lore raw

PATCH 5/5 qemu: runqemu: Add support for launching qemuarmv7 and qemuarma9 machine configurations.

In reply to Elvis Dowson

This commit
- adds support for launching qemuarmv7 and qemuarmv9 machine configurations.

---
 scripts/runqemu          |   14 ++++++++---
 scripts/runqemu-internal |   58 ++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 65 insertions(+), 7 deletions(-)
scripts/runqemu +11 -3
index 04dc3b0..3282893 100755
@@ -39,6 +39,8 @@ usage() {
     echo ""
     echo "Examples:"
     echo "  $MYNAME qemuarm"
+    echo "  $MYNAME qemuarmv7"
+    echo "  $MYNAME qemuarma9"
     echo "  $MYNAME qemux86-64 core-image-sato ext3"
     echo "  $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial"
     echo "  $MYNAME qemux86 ramfs"
@@ -107,7 +109,7 @@ KVM_ENABLED="no"
 while true; do
     arg=${1}
     case "$arg" in
-        "qemux86" | "qemux86-64" | "qemuarm" | "qemumips" | "qemumipsel" | \
+        "qemux86" | "qemux86-64" | "qemuarm" |  "qemuarmv7" | "qemuarma9" |"qemumips" | "qemumipsel" | \
         "qemumips64" | "qemush4"  | "qemuppc" | "qemumicroblaze" | "qemuzynq")
             [ -z "$MACHINE" ] && MACHINE=$arg || \
                 error "conflicting MACHINE types [$MACHINE] and [$arg]"
@@ -224,13 +226,13 @@ fi
 
 if [ -z "$MACHINE" ]; then
     if [ "x$FSTYPE" = "xvmdk" ]; then
-        MACHINE=`basename $VM | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
+        MACHINE=`basename $VM | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemuarmv7\|qemuarma9\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
         if [ -z "$MACHINE" ]; then
             error "Unable to set MACHINE from vmdk filename [$VM]"
         fi
         echo "Set MACHINE to [$MACHINE] based on vmdk [$VM]"
     else
-        MACHINE=`basename $KERNEL | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
+        MACHINE=`basename $KERNEL | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemuarmv7\|qemuarma9\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
         if [ -z "$MACHINE" ]; then
             error "Unable to set MACHINE from kernel filename [$KERNEL]"
         fi
@@ -294,6 +296,12 @@ QEMUX86_64_DEFAULT_FSTYPE=ext3
 QEMUARM_DEFAULT_KERNEL=zImage-qemuarm.bin
 QEMUARM_DEFAULT_FSTYPE=ext3
 
+QEMUARMV7_DEFAULT_KERNEL=zImage-qemuarmv7.bin
+QEMUARMV7_DEFAULT_FSTYPE=ext3
+
+QEMUARMA9_DEFAULT_KERNEL=uImage
+QEMUARMA9_DEFAULT_FSTYPE=cpio
+
 QEMUMIPS_DEFAULT_KERNEL=vmlinux-qemumips.bin
 QEMUMIPS_DEFAULT_FSTYPE=ext3
 
scripts/runqemu-internal +54 -4

88 lines not on this page · raw message

Signature · 1 line
1.7.10.4