Skip to contentSkip to conversation

Add machine qemuarm64

PATCH In review Kai Kang 3 participants 8 messages Sep 12, 2014 – Sep 13, 2014

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

PATCH 1/1 Add machine qemuarm64

Add machine qemuarm64. The configure files are derived from linaro.

Update:
* rename genericarmv8 to qemuarm64 for coordination in oe-core
* include qemu.inc then remove common part of config
* disable using autoserial
* move arch-armv8.inc from machine/include/arm64 to machine/include/arm

There are some packages fail to build with qemuarm64, I will send pathches for them in another series.

Kai Kang (1):
Add machine qemuarm64

 meta/conf/bitbake.conf                       |  1 +
 meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++++++++
 meta/conf/machine/qemuarm64.conf             | 12 ++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/qemuarm64.conf
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 Add machine qemuarm64

Add machine qemuarm64. The configure files are derived from linaro.

Update:
* rename genericarmv8 to qemuarm64 for coordination in oe-core
* include qemu.inc then remove common part of config
* disable using autoserial
* move arch-armv8.inc from machine/include/arm64 to machine/include/arm

And set BASELIB to lib64 in bitbake.conf. libgcc uses 'aarch64-poky-linux-gcc -print-multi-os-directory' to get install directory that the value is 'lib64' then cause [installed-vs-shipped] error. The value is set in gcc source file gcc/config/aarch64/t-aarch64-linux.

[YOCTO #6487]

---
 meta/conf/bitbake.conf                       |  1 +
 meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++++++++
 meta/conf/machine/qemuarm64.conf             | 12 ++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/qemuarm64.conf
meta/conf/bitbake.conf +1 -0
index 468b175..0ae884c 100644
@@ -10,6 +10,7 @@
 baselib = "${BASELIB}"
 baselib[vardepvalue] = "${baselib}"
 BASELIB = "lib"
+BASELIB_aarch64 = "lib64"
 BASELIB_powerpc64 = "lib64"
 
 # Path prefixes
meta/conf/machine/include/arm/arch-armv8.inc new file +20 -0
new file mode 100644
index 0000000..c86142a
@@ -0,0 +1,20 @@
+DEFAULTTUNE ?= "aarch64"
+
+ARMPKGARCH ?= "aarch64"
+
+TUNEVALID[aarch64] = "Enable instructions for aarch64"
+TUNEVALID[bigendian] = "Enable big-endian mode."
+TUNECONFLICTS[aarch64] = ""
+MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", ":aarch64", "" ,d)}"
+
+# Little Endian base configs
+AVAILTUNES += "aarch64 aarch64_be"
+TUNE_FEATURES_tune-aarch64 ?= "aarch64"
+TUNE_FEATURES_tune-aarch64_be ?= "${TUNE_FEATURES_tune-aarch64} bigendian"
+
+ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "_be", "", d)}"
+
+TUNE_ARCH = "aarch64${ARMPKGSFX_ENDIAN}"
+TUNE_PKGARCH = "aarch64${ARMPKGSFX_ENDIAN}"
+
+PACKAGE_EXTRA_ARCHS = "aarch64${ARMPKGSFX_ENDIAN}"
meta/conf/machine/qemuarm64.conf new file +12 -0
new file mode 100644
index 0000000..20bcfba
@@ -0,0 +1,12 @@
+#@TYPE: Machine
+#@NAME: generic armv8 machine
+#@DESCRIPTION: Machine configuration for running a generic armv8
+
+require conf/machine/include/arm/arch-armv8.inc
+require conf/machine/include/qemu.inc
+
+MACHINE_FEATURES = ""
+
+KERNEL_IMAGETYPE = "Image"
+
+SERIAL_CONSOLE = "38400 ttyAMA0"
Signature · 1 line
1.9.1
#2 lore raw
In reply to Kai Kang
Quoted 2 lines · Kai Kang

There are some packages fail to build with qemuarm64, I will send pathches for them in another series.

I can't build a kernel with MACHINE=qemuarm64:

|   LINK    vmlinux
|   LD      vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| make[2]: *** [vmlinux] Error 1
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at

/data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
do_compile) failed with exit code '1'

I can email build logs if you'd wish.

Ross

author
#3 lore raw
Quoted 15 lines · Ross
Quoted 2 lines · Kai Kang

There are some packages fail to build with qemuarm64, I will send pathches for them in another series.

I can't build a kernel with MACHINE=qemuarm64:

|   LINK    vmlinux
|   LD      vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| make[2]: *** [vmlinux] Error 1
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
Quoted 5 lines

/data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
do_compile) failed with exit code '1'

I can email build logs if you'd wish.

Thanks for try. I just thought to send the patch of gcc to upstream first then fill the Upstream-Status. I'll send it now. Sorry for trouble.

--Kai

Quoted 4 lines

Ross

Signature · 2 lines
Regards,
Neil | Kai Kang
#4 lore raw
Quoted 2 lines · Kang Kai

Thanks for try. I just thought to send the patch of gcc to upstream first then fill the Upstream-Status. I'll send it now.

Ah, that would be the problem. :)

Ross

author
#5 lore raw
Quoted 4 lines · Ross
Quoted 2 lines · Kang Kai

Thanks for try. I just thought to send the patch of gcc to upstream first then fill the Upstream-Status. I'll send it now.

Ah, that would be the problem. :)

Oops. The patch of gcc is for another issue about directory of ld-linux-aarch64.so. I once met this linux-yocto issue but it builds pass after adding

BASELIB_aarch64 = "lib64"

I'll check it.

Thanks,
Kai

Quoted 4 lines

Ross

Signature · 2 lines
Regards,
Neil | Kai Kang
#6 lore raw
In reply to Burton, Ross
Quoted 5 lines · Ross
Quoted 2 lines · Kai Kang

There are some packages fail to build with qemuarm64, I will send pathches for them in another series.

I can't build a kernel with MACHINE=qemuarm64:

Even if this did build, I'm not sure what you'd end up with .. no one has sent me
the linux-yocto machine definition and configuration fragments for qemuarm64 yet.

Bruce

Quoted 23 lines
|   LINK    vmlinux
|   LD      vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| make[2]: *** [vmlinux] Error 1
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at

/data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
do_compile) failed with exit code '1'

I can email build logs if you'd wish.

Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
author
#7 lore raw
Quoted 9 lines · Bruce Ashfield
Quoted 4 lines · Ross
Quoted 2 lines · Kai Kang

There are some packages fail to build with qemuarm64, I will send pathches for them in another series.

I can't build a kernel with MACHINE=qemuarm64:

Even if this did build, I'm not sure what you'd end up with .. no one has sent me
the linux-yocto machine definition and configuration fragments for qemuarm64 yet.

Could we make all userspace packages build pass and available for qemuarm64 first, then deal the kernel? Zhe He is working on kernel and will give configuration later.

Regards,
Kai

Quoted 27 lines

Bruce

Quoted 22 lines
|   LINK    vmlinux
|   LD      vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| make[2]: *** [vmlinux] Error 1
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at

/data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
do_compile) failed with exit code '1'

I can email build logs if you'd wish.

Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
Regards,
Neil | Kai Kang