How do I compile the StoneyRidge kernel? (And other StoneyRidge related questions)

Hi, I originally made an issue on WeirdTreeThings chromebook-linux-audio repo before I realized I needed to use a custom kernel. I want to know how do I compile and use the kernel. I am not “new” to Linux but I haven’t dabbled in custom kernels or anything like that as I haven’t had the need to. I’ve been daily driving Fedora for about 3 years. Is there a good resource I can use on how to compile the kernel for Fedora? I found this repo that is supposed to compile the kernel but I kept getting this issue: make[1]: *** [/home/wave/stoney-kernel/source/linux-6.6.16/Makefile:1913: .] Error 2 make: *** [Makefile:234: __sub-make] Error 2 and I am unsure if this is a bug or if there is something I am doing wrong. Also, how would I compile with the binder module for Waydroid? I would also like to know if I should/can skip over compiling as I see people linking to this download but I can’t find anything about if this is a reputable source within the community or if it’s something I should be wary of. I was able to install the precompiled kernel following these steps I stole from WeirdTreeThing. Ideally I’d like to confirm that the precompiled kernel is clean before I put any sensitive information on this device, as well as if there is a way to enable Waydroid.

Download the precompiled kernel
Copy vmlinuz-X.X.X-stoney, System.map and System.map-X.X.X-stoney to /boot
Copy /modules/lib/modules/X.X.X-stoney to /lib/modules
Run sudo kernel-install add X.X.X-stoney vmlinuz-X.X.X-stoney (First X.X.X-stoney is the same as /lib/modules/X.X.X-stoney)
reboot

Another question I have is there a way to auto-update the kernel if I do use the per-compiled image? I figured I could write a systemd timer to auto compile the kernel but I’m also figuring that would take about 10 years whenever it should update. I disabled automatic Kernel updates using this guide, the Tl;Dr being
rpm -q kernel-core
sudo dnf remove kernel-core-X.X.X.fcXX.x86_64, then adding
excludepkgs=kernel-core* to /etc/dnf/dnf.conf

This device is a family members that I am trying to De-google. They bought it a while back because they thought it was a good deal for $99 but didn’t realize they were giving up their privacy in exchange for the low price. The least intrusive solutions are preferred but I also don’t want to put their privacy/security in jeopardy.

I appreciate everyone who has made this possible and any advice/support/help/automation scripts/etc anyone may have for me.

1 Like