Stoneyridge Kernel Headers? (Waydroid)

Hi, I’m having a little trouble. I recently opened an Issue on the StoneyRidge kernel github repo about adding the waydroid kernels. It was done relatively quickly and I compiled the kernel. However I can’t get Waydroid to work and I think it has something to do with the Linux kernel headers but I’m not positive. I’m going to attach a comment I made on the now closed issue that has the rest of the context.

I’ve successfully compiled the kernel on my main PC in an EndeavourOS live environment using “none” as I’m not compiling for alpine. I used a flash drive to transfer the compiled kernel to the Stoneyridge device I have. It’s currently running Fedora 40 and I haven’t tried any other distro as of yet. I wrote myself a small script to install the kernel for me as I figured doing it by hand would cause errors. Here’s the script:

#/bin/bash
echo "removing old entries"
sudo rm -rf /boot/vmlinuz-6.6.43-chrultrabook-stoney
sudo rm -rf /boot/initramfs-6.6.43-chrultrabook-stoney.img
sudo rm -rf /lib/modules/6.6.43-chrultrabook-stoney
sudo rm -rf /usr/src/linux-headers-6.6.43-chrultrabook-stoney
echo "copying headers"
sudo cp -r ./source/linux-6.6.43 /usr/src/linux-headers-6.6.43-chrultrabook-stoney
sudo rm -rf ./build/modules/lib/modules/6.6.43-chrultrabook-stoney/build
sudo ln -s /usr/src/linux-headers-6.6.43-chrultrabook-stoney ./build/modules/lib/modules/6.6.43-chrultrabook-stoney/build
echo "moving & copying files"
sudo mv ./build/vmlinuz ./build/vmlinuz-6.6.43-chrultrabook-stoney
sudo mv ./build/System.map ./build/System.map-6.6.43-chrultrabook-stoney
sudo cp ./build/vmlinuz-6.6.43-chrultrabook-stoney /boot/
sudo cp ./build/System.map-6.6.43-chrultrabook-stoney /boot/
sudo cp -r ./build/modules/lib/modules/6.6.43-chrultrabook-stoney /lib/modules/
echo "starting install"
sudo kernel-install add 6.6.43-chrultrabook-stoney ./build/vmlinuz-6.6.43-chrultrabook-stoney

After rebooting and starting Waydroid I still get the error

Failed to load binder driver
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.6.43-chultrabook-stoney
Binder node "binder" for waydroid not found

As a hail mary I tried installing the Anbox modules by choff and this caused my system to become unbootable with the error

BUG: unable to handle page fault for address: ffffffffc07088e0
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
    Starting systemd-tmpfiles-setup-de◼ Device Nodes in /dev gracefully...
[FAILED] Failed to mount sys-fs-fuse-connec◼s.mount - FUSE Control File System.
See `systemctl status sys-fs-fuse-connections.mount` for details.
fbcon: Taking over console
[  157.719741] Console: switching to colour frame buffer device 170x40
Console: switching to colour frame buffer device 170x48

Binder is compiled in instead of as a module. I can switch it to a module to see if that works any better.

1 Like

It actually does not support being compiled as a module

1 Like

Thanks for the reply, I appreciate the help. Do you happen to know what might be the issue? Is there a specific distro I should try the kernel on or is this an issue of having to implement it in a specific way Waydroid expects it to be implemented?

I believe I configured the kernel in a way that works with waydroid. I can try it on my own stoney device to see if I did something wrong.

That would be awesome if you could, and letting me know what OS you’re testing on. It could just be there’s something funky with Fedora? I’m unsure myself as I don’t really know how kernels work as of yet.

Sure I can try on fedora.

1 Like

Looks like it might want binderfs, so I can try enabling that.

1 Like

You are FANTASTIC!!! I compiled and installed your most recent commit and Waydroid is working now, and the sound is still working (not that I thought it would suddenly stop working.) I am very grateful for your work and appreciate your help <3

1 Like