Replace stoney-kernel with newer kernel built locally

A lot of stuff happened since original workaround for getting sound working on Stoney Ridge chromebooks and stoney-kernel isn’t really maintained anymore.

Good news: we’re quite close to get the mainline kernel working as-is on Stoney

Bad news: You’ll need to compile the kernel manually, since we (chrultrabook team) don’t have enough time to provide prebuilt kernels.

Assuming you’re using latest and greatest Debian 13 (trixie), the instruction for compiling the patched kernel (in this case Liquorix) are as following:

# on any machine (building on stoney will take a lot of time):

sudo apt install docker git wget
git clone https://github.com/damentz/liquorix-package
cd liquorix-package
wget -O liquorix-stoney.patch https://forum.chrultrabook.com/uploads/short-url/levr5lUJL1DBamyUwErgcYEQpph.patch 
git apply liquorix-stoney.patch
./scripts/debian/docker_bootstrap.sh
./scripts/debian/docker_build-source.sh debian trixie
./scripts/debian/docker_build-binary.sh amd64 debian trixie

# make a coffee, it will take some time

# on Stoney Ridge chromebook:

cd artifacts/debian/trixie
sudo dpkg -i *.deb

liquorix-stoney.patch (16.0 KB)

For other kernel packages (e.g. stock Debian kernel) and other distros, you’ll need to manually apply all of the following patches, depending on base version - consult your distro’s documentation for instructions on patching kernel.