[yocto] custom linux kernel recipe

Bruce Ashfield bruce.ashfield at windriver.com
Fri Sep 2 08:26:22 PDT 2016


On 2016-09-02 09:58 AM, Bruce Ashfield wrote:
> On 2016-09-02 03:51 AM, Mircea Gliga wrote:
>> Hi Bruce,
>>
>> Do you have any new input in regards with qemuarm booting with kernel
>> 4.7.2 LTS ?
>> Have you managed to test this ?
>> I wander if this can be reproduce elsewhere and what's the solution
>> for it.
>
> I was tied up with the introduction of the 4.8 kernel, but I *think*
> the coast is clear on that front (for the moment).
>
> I can try and spin up a korg based 4.7.x build and see how it goes.

The issue is in your defconfig.

qemuarm login: root
root at qemuarm:~# uname -a
Linux qemuarm 4.7.2-yocto-standard #1 PREEMPT Fri Sep 2 11:15:30 EDT 
2016 armv5tejl GNU/Linux
root at qemuarm:~#

I created a similar recipe:

--------
inherit kernel

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

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-stable:"

KBRANCH ?= "linux-4.7.y"

SRCREV ?= "84fae3f89282ce86a0c0da30e35fe66dbcadda6f"

KBRANCH ?= "linux-4.7.y"
SRCREV_machine_qemuarm ?= "84fae3f89282ce86a0c0da30e35fe66dbcadda6f"

KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb"

KBRANCH_qemuarm ?= "linux-4.7.y"

SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;bareclone=1;branch=${KBRANCH}"

SRC_URI += "file://defconfig"

LINUX_VERSION = "4.7.2"
PV = "${LINUX_VERSION}+git${SRCPV}"

COMPATIBLE_MACHINE = "qemuarm"

----------

And I took the "defconfig" from the -stable tree (the defconfig_versatile).

When I built and booted that, I had no output.

So I grabbed the .config from my 4.8 build, copied it into my layer
as the 'defconfig', rebuilt .. and was able to log in with the prompt
you see above.

So the 4.7 defconfig is missing something, I didn't iterate to find
it.

Cheers,

Bruce


>
> Bruce
>
>>
>> Thanks
>> Mircea
>>
>> On 08/30/2016 06:09 PM, Bruce Ashfield wrote:
>>>
>>> I'm finishing up 4.8 today, but without doing a boot test, I can't say
>>> for sure. I'll see if I can cycle in some korg 4.7.x testing tomorrow to
>>> see if I can get a clean boot.
>>
>




More information about the yocto mailing list