I want to use preemptive kernel with 1000 mhz and my current kernel is “linux-image-5.10.0-11”(using librem mini)
I’ve installed “linux-image-5.10.0-11-rt-amd64” from the repo but I think it’s not giving me the 1000mhz, I’m seeing 100mhz under CPU when doing: sudo lshw. So I’m looking to compile the kernel myself but I can’t find a DL link for the source code.
Also, is it better to install “linux-headers-5.10.0-11” first and then “linux-image-5.10.0-11” or vice versa?
Here is something about building kernel for Librem 5: Librem 5 kernel hacking
But for desktop PureOS I don’t know, I am wondering just like you, where can we find the kernel source code?
For other packages it is possible to use “
apt-get source” but that does not seem to work for the kernel, it fetches something but it looks like mostly some kind of metadata, the actual kernel source code is not there.
@MrChromebox can you point out how to download the kernel source code to patch it (to change the timer mhz and enable full preempt)
that’s not my department, I’d have to ask the PureOS folks
Something like this should probably work: https://wiki.debian.org/BuildADebianKernelPackage (The kernel source is in the package linux-source).
Ignore that - Obsolete guide, but it does link to https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-official[/edit]