Skip to contentSkip to conversation

Enable aarch64 support for qemu

PATCH New Kai Kang 1 participant 3 messages Aug 14, 2014

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

cover Enable aarch64 support for qemu

Enable aarch64 support for qemu.

Use linaro prebuilt aarch64 for test. Test steps:
1 run native qemu with aarch64 image:

$ wget http://people.linaro.org/~alex.bennee/images/aarch64-linux-3.15rc2-buildroot.img
$ tmp/sysroots/x86_64-linux/usr/bin/qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1 -m 2048  -kernel aarch64-linux-3.15rc2-buildroot.img

2 run qemu-system-aarch64 on core-image-sato of qemux86-64

$ runqemu qemux86 qemuparams="-m 2048"

When booted, run

$ qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1 -m 2048  -kernel aarch64-linux-3.15rc2-buildroot.img

Boot could boot aarch64 image successfully.

Kai Kang (2):
qemu: add PACKAGECONF lzo
qemu: enable aarch64 support

 meta/recipes-devtools/qemu/qemu-targets.inc | 2 +-
 meta/recipes-devtools/qemu/qemu.inc         | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/2 qemu: add PACKAGECONF lzo

Add PACKAGECONF 'lzo' for qemu to fix QA warning:

WARNING: QA Issue: qemu rdepends on lzo, but it isn't a build dependency? [build-deps]

---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/qemu/qemu.inc +1 -0
index 57907ae..99de5d8 100644
@@ -103,6 +103,7 @@ PACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng,"
 PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl,"
 PACKAGECONFIG[ssh2] = "--enable-libssh2,--disable-libssh2,libssh2,"
 PACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1"
+PACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo"
 
 # Qemu target will not build in world build for ARM or Mips
 BROKEN_qemuarm = "1"
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 2/2 qemu: enable aarch64 support

In reply to Kai Kang

qemu 2.1.0 support aarch64 targets, so add aarch64 to QEMU_TARGETS to enable qemu aarch64 support.

[YOCTO #6487]

---
 meta/recipes-devtools/qemu/qemu-targets.inc | 2 +-
 meta/recipes-devtools/qemu/qemu.inc         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/qemu/qemu-targets.inc +1 -1
index 5a60bfd..9f009bf 100644
@@ -1,4 +1,4 @@
-# possible arch values are arm mips mipsel mips64 mips64el ppc ppc64 ppc64abi32
+# possible arch values are arm aarch64 mips mipsel mips64 mips64el ppc ppc64 ppc64abi32
 # ppcemb armeb alpha sparc32plus i386 x86_64 cris m68k microblaze sparc sparc32
 # sparc32plus
 
meta/recipes-devtools/qemu/qemu.inc +1 -1
index 99de5d8..6ee7882 100644
@@ -13,7 +13,7 @@ inherit autotools-brokensep
 BBCLASSEXTEND = "native nativesdk"
 
 # QEMU_TARGETS is overridable variable
-QEMU_TARGETS ?= "arm i386 mips mipsel mips64 mips64el ppc sh4 x86_64"
+QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc sh4 x86_64"
 
 SRC_URI = "\
     file://powerpc_rom.bin \
Signature · 1 line
1.9.1