enable aarch64 support for qemu in yocto
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
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
@@ -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
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_TARGETSto enable qemu aarch64 support. VarQEMU_TARGETSin poky.conf overrides the var in qemu recipe, so add in poky.conf too.Signed-off-by Kai Kang <[email protected]>--- meta-yocto/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-yocto/conf/distro/poky.conf +0
-0
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
Re: [PATCH] qemu: enable aarch64 support in yocto
In reply to Kai KangQuoted 14 lines · Kai Kang
qemu 2.1.0 support aarch64 targets, so add aarch64 to
QEMU_TARGETSto enable qemu aarch64 support. VarQEMU_TARGETSin poky.conf overrides the var in qemu recipe, so add in poky.conf too.Signed-off-by Kai Kang <[email protected]>--- meta-yocto/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-yocto/conf/distro/poky.conf +0
-0
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