RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.62k stars 1.64k forks source link

Is it somehow already possible to switch from kernel 5.15.61 to 5.19? #637

Closed capiman closed 2 years ago

capiman commented 2 years ago

In the past we learnt about a security leak which seems it was fixed in 5.19 (don't know if backported to 5.15.x). And today we found an error with Bluetooth which seems to be fixed with 5.17. So anything newer than 5.17 would be helpful...

XECDesign commented 2 years ago

That's not a feature of pi-gen, no. But, if you know what you're doing you could provide a custom kernel.

capiman commented 2 years ago

Thanks for your answer! In general I know how to compile a kernel. Do you know where I can get all the switches which were used to compile a kernel, so I can use similar ones to the provided one?

XECDesign commented 2 years ago

This should give you something very close to the official kernel:

https://www.raspberrypi.com/documentation/computers/linux_kernel.html