| Summary: | qemuarm64 cannot correctly boot up | ||
|---|---|---|---|
| Product: | [Runtime] General Runtime | Reporter: | Chen Qi <Qi.Chen> |
| Component: | General Runtime | Assignee: | Chen Qi <Qi.Chen> |
| Status: | VERIFIED FIXED | QA Contact: | Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu> |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | bogdanx.a.voiculescu, liezhi.yang, ross.burton |
| Version: | 2.1 | ||
| Target Milestone: | 2.1 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Chen Qi
2016-01-07 01:19:50 UTC
Is this just with systemd? Autobuilder is showing qemuarm64 is ok? For reference https://autobuilder.yoctoproject.org/main/builders/nightly-arm64/builds/237 is a sysvinit qemuarm64 passing sanity. Yes. The problem is only with systemd. I've verified locally that sysvinit is OK for qemuarm64. // Qi The strange thing is if I add a 'printf' statement in the detect_vm() function before the invocation of detect_vm_cpuid(), the target could start up.
=============================================================================
chenqi@pek-hostel-deb01:~/poky/build-systemd/tmp/work/aarch64-poky-linux/systemd/1_228+gitAUTOINC+dd050decb6-r0/git [2] $ git diff src/basic/virt.c
diff --git a/src/basic/virt.c b/src/basic/virt.c
index 1e5d6ee..7a7b38e 100644
--- a/src/basic/virt.c
+++ b/src/basic/virt.c
@@ -266,6 +266,8 @@ int detect_vm(void) {
static thread_local int cached_found = _VIRTUALIZATION_INVALID;
int r;
+ printf("HELLO WORLD\n");
+ log_info("[DEBUG]: 1\n");
if (cached_found >= 0)
return cached_found;
==============================================================================
I'm wondering why printf would make such a difference.
// Qi
It seems that the problem is related to binutils. Khem's patch below could fix it. https://github.com/kraj/openembedded-core/tree/kraj/binutils-2.26 // Qi commit c85c54f7f8cf253687464cfbe19cf7f305868578 Author: Khem Raj <raj.khem@gmail.com> Date: Sat Jan 30 06:28:38 2016 +0000 binutils: Upgrade to 2.26 (From OE-Core rev: 86ade2cc2553c942d9526c5323a11ae151653505) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Verified on: Build Configuration: BB_VERSION = "1.29.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "qemuarm64" DISTRO = "poky" DISTRO_VERSION = "2.0+snapshot-20160224" TUNE_FEATURES = "aarch64" TARGET_FPU = "" meta meta-yocto meta-yocto-bsp = "master:36b43b233c841b3c09fc17e04686b4b758780963" with systemd setup in local.conf DISTRO_FEATURES_append = " systemd" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" VIRTUAL-RUNTIME_initscripts = "" |