Skip to contentSkip to conversation

linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.4

PATCH New Alejandro Hernandez 1 participant 5 messages Sep 20, 2017 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/5 core-image-tiny-initramfs: Enable running poky-tiny on qemux86-64

In reply to a message not in the archive

Building poky-tiny for x86-64 seems fine, but when executing qemu it complains during boot time about not being able to execute init:

[    5.409730] Failed to execute /init (error -8)

And then it drops to a login prompt (which it should't do on tiny)

This is supposed to be complaining about init's format, it only happens on x86-64 architectures so perhaps is a 32/64 bit issue, but since core-image-tiny-initramfs does not actually provide a traditional init, the script is simply meant to drop to shell, we can workaround the issue by specifying the kernel to run the init script via busybox's sh, dropping to shell correctly on x86-64 leaving x86 unaffected.

---
 meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/images/core-image-tiny-initramfs.bb +2 -0
index a8893d1e53e..16995e6580a 100644
@@ -39,3 +39,5 @@ python tinyinitrd () {
 }
 
 IMAGE_PREPROCESS_COMMAND += "tinyinitrd;"
+
+QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init"
Signature · 1 line
2.12.3
#2 lore raw

PATCH 2/5 linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.4

---
 meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb +1 -1
index 50b9a56a005..141ff739955 100644
@@ -17,7 +17,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.4.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.4;destsuffix=${KMETA}"
 
-COMPATIBLE_MACHINE = "(qemux86$)"
+COMPATIBLE_MACHINE = "qemux86|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES = ""
Signature · 1 line
2.12.3
#3 lore raw

PATCH 3/5 linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.9

In reply to Alejandro Hernandez
---
 meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb +1 -1
index e0c52366188..7798161ef0b 100644
@@ -17,7 +17,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.9.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
 
-COMPATIBLE_MACHINE = "(qemux86$)"
+COMPATIBLE_MACHINE = "qemux86|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES = ""
Signature · 1 line
2.12.3
#4 lore raw

PATCH 4/5 linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.10

In reply to Alejandro Hernandez
---
 meta/recipes-kernel/linux/linux-yocto-tiny_4.10.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto-tiny_4.10.bb +1 -1
index 31396ab3032..edaf8530279 100644
@@ -17,7 +17,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.10.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.10;destsuffix=${KMETA}"
 
-COMPATIBLE_MACHINE = "(qemux86$)"
+COMPATIBLE_MACHINE = "qemux86|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES = ""
Signature · 1 line
2.12.3
#5 lore raw

PATCH 5/5 linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.12

In reply to Alejandro Hernandez
---
 meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb +1 -1
index efd876aee5e..ba67af357e9 100644
@@ -17,7 +17,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.12.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.12;destsuffix=${KMETA}"
 
-COMPATIBLE_MACHINE = "(qemux86$)"
+COMPATIBLE_MACHINE = "qemux86|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES = ""
Signature · 1 line
2.12.3