Skip to contentSkip to conversation

Changing kernel to the Mainline kernel ,linux-stable instead of linux-raspberrypi

DISCUSSION Pankaj Vinadrao Joshi 2 participants 4 messages Jun 11, 2020

lore
Share & tools
lore
#0 lore raw

Hi,
i have built the image for rpi4 using openembedded-core and meta-openembedded but i found that by default its taking the kernel which is linux-raspberrypi which is 4.19.x or 5.4.y but i want to change the kernel to the vanilla,5.5.6 from the mainline. Can someone guide me on how i should proceed with ??

#1 lore raw
Quoted 4 lines · Pankaj Vinadrao Joshi

Hi,
i have built the image for rpi4 using openembedded-core and meta-openembedded but i found that by default its taking the kernel which is linux-raspberrypi which is 4.19.x or 5.4.y but i want to change the kernel to the vanilla,5.5.6 from the mainline. Can someone guide me on how i should proceed with ??

Hi Pankaj,

You can use the linux-stable recipes in meta-kernel
(https://gitlab.com/openembedded/community/meta-kernel) to achieve this. We don't have recipes for 5.5.y as it's already EOL but there are recipes for 5.6.y. I'll be adding the recipe for 5.7.y very soon. There will likely be a little integration work to do to get this working with a Raspberry Pi, I've already done that for raspberrypi3 (as you can see in the readme for the meta-kernel layer) but other models are currently left as an exercise for the reader. Patches are welcome :)

You could also look at the linux-yocto recipes in openembedded-core.

Thanks,

Signature · 2 lines
Paul Barker
Konsulko Group
#2 lore raw

Thanks for response..You have provided the link ,But i want to build specifically for 5.4.3 only ,where i should change in the existing file so that i will be able to build the image for same since i am very new to yocto can you help me out ??

#3 lore raw
Quoted 3 lines · Pankaj Vinadrao Joshi

Thanks for response..You have provided the link ,But i want to build specifically for 5.4.3 only ,where i should change in the existing file so that i will be able to build the image for same since i am very new to yocto can you help me out ??

Why do you want to use an old patch release in the 5.4 series? You should be using the latest patch release in a stable series so that you've got all the bug and security fixes.

Thanks,

Signature · 2 lines
Paul Barker
Konsulko Group