[yocto] Unexpected behavior with custom Linux kernel build

Rudolf Streif rudolf.streif at gmail.com
Fri Jul 10 09:57:59 PDT 2015


I am using this recipe to build a very latest kernel from kernel.org:

>>>>>>
DESCRIPTION = "Linux Kernel from Tarball"
SECTION = "kernel"
LICENSE = "GPLv2"

inherit kernel

LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

LINUX_VERSION ?= "4.2"
LINUX_VERSION_EXTENSION ?= "-custom"
PR = "rc1"
PV = "${LINUX_VERSION}"

SRC_URI = "
https://www.kernel.org/pub/linux/kernel/v4.x/testing/linux-${LINUX_VERSION}-${PR}.tar.xz;name=kernel
"
SRC_URI += "file://defconfig"

SRC_URI[kernel.md5sum] = "3e8331759af56ddd621528b2c7015ae1"
SRC_URI[kernel.sha256sum] =
"3c524ee0446b4ea8288708fa30acd28647317b9724f2d336052130e164c83f29"

S = "${WORKDIR}/linux-${LINUX_VERSION}-${PR}"

COMPATIBLE_MACHINE = "qemux86|qemux86-64"
<<<<<

Yes, that is the somewhat traditional method of building the kernel. The
kernel builds and works fine.

Now I would like to enable Yocto tooling for the kernel so that I can use
configuration fragments by adding

require recipes-kernel/linux/linux-yocto.inc

to the recipe. That worked just fine in the past. The kernel builds and
boots but then in userspace some unexpected things happen: avahi does not
start and login does not work. Reason being:

setgid: Function not implemeted

Why would that change in tooling cause this error?

Build Configuration:
BB_VERSION        = "1.27.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-21"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.8+snapshot-20150710"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:20a3a36547831349d5d8b429cb35f1415a856bda"


The effect is the same when using this recipe to build from kernel.org git
repo:

>>>>>
DESCRIPTION = "Linux Kernel from kernel.org Git Repository"
SECTION = "kernel"
LICENSE = "GPLv2"

require recipes-kernel/linux/linux-yocto.inc

LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

LINUX_VERSION ?= "4.2"
LINUX_VERSION_EXTENSION ?= "-custom"
PR = "rc1"
PV = "${LINUX_VERSION}+git${SRCPV}"

SRC_URI = "git://
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1;name=machine
"
SRC_URI += "file://defconfig"

SRCREV_machine="d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754"

COMPATIBLE_MACHINE = "qemux86|qemux86-64"
<<<<<<<

Thanks,
Rudi
-- 
*Rudolf J. Streif*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150710/c9a4616a/attachment.html>


More information about the yocto mailing list