Skip to contentSkip to conversation

enable aarch64 support for qemu in yocto

PATCH New Kai Kang 1 participant 4 messages Aug 15, 2014 – Sep 17, 2014

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

PATCH 1/1 enable aarch64 support for qemu in yocto

Enable aarch64 support for qemu in yocto. Var QEMU_TARGETS in poky.conf overrides the var in qemu recipe, so add in poky.conf too.

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 (1):
qemu: enable aarch64 support in yocto

 meta-yocto/conf/distro/poky.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 qemu: enable aarch64 support in yocto

qemu 2.1.0 support aarch64 targets, so add aarch64 to QEMU_TARGETS to enable qemu aarch64 support. Var QEMU_TARGETS in poky.conf overrides the var in qemu recipe, so add in poky.conf too.

---
 meta-yocto/conf/distro/poky.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto/conf/distro/poky.conf +1 -1
index ec251f9..9a67b50 100644
@@ -44,7 +44,7 @@ DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
 
 TCLIBCAPPEND = ""
 
-QEMU_TARGETS ?= "arm i386 mips mipsel ppc x86_64"
+QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel ppc x86_64"
 # Other QEMU_TARGETS "mips64 mips64el sh4"
 
 PREMIRRORS ??= "\
Signature · 1 line
1.9.1
author
#2 lore raw

Re: [PATCH] qemu: enable aarch64 support in yocto

Quoted 14 lines · Kai Kang

qemu 2.1.0 support aarch64 targets, so add aarch64 to QEMU_TARGETS to enable qemu aarch64 support. Var QEMU_TARGETS in poky.conf overrides the var in qemu recipe, so add in poky.conf too.

---
  meta-yocto/conf/distro/poky.conf | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto/conf/distro/poky.conf +0 -0
index ec251f9..9a67b50 100644

meta-yocto/conf/distro/poky.conf DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}" · line 50

Quoted 8 lines
meta-yocto/conf/distro/poky.conf +1 -1
@@ -44,7 +44,7 @@ DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
 
  TCLIBCAPPEND = ""
 
-QEMU_TARGETS ?= "arm i386 mips mipsel ppc x86_64"
+QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel ppc x86_64"
  # Other QEMU_TARGETS "mips64 mips64el sh4"
 
  PREMIRRORS ??= "\

Hi,

Any comment for this patch? Thanks.

Signature · 2 lines
Regards,
Neil | Kai Kang
author
#3 lore raw

Re: [PATCH] qemu: enable aarch64 support in yocto

In reply to Kai Kang
Quoted 14 lines · Kai Kang

qemu 2.1.0 support aarch64 targets, so add aarch64 to QEMU_TARGETS to enable qemu aarch64 support. Var QEMU_TARGETS in poky.conf overrides the var in qemu recipe, so add in poky.conf too.

---
  meta-yocto/conf/distro/poky.conf | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto/conf/distro/poky.conf +0 -0
index ec251f9..9a67b50 100644

meta-yocto/conf/distro/poky.conf DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}" · line 50

Quoted 8 lines
meta-yocto/conf/distro/poky.conf +1 -1
@@ -44,7 +44,7 @@ DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
 
  TCLIBCAPPEND = ""
 
-QEMU_TARGETS ?= "arm i386 mips mipsel ppc x86_64"
+QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel ppc x86_64"
  # Other QEMU_TARGETS "mips64 mips64el sh4"
 
  PREMIRRORS ??= "\

ping?

Signature · 2 lines
Regards,
Neil | Kai Kang