Hello
recently I tried compiling the rpi kernel with a specific config option
now the modules are now not matching the installed kernel
so now anything that uses the overlay filesystem does not work, or certain networking features which is needed for things like cf tunnels
I tried all of this to compile:
https://pastebin.com/gmkNu2rL
https://pastebin.com/9Ap4J7Yw
and:
sudo cp /boot/firmware/$KERNEL.img /boot/firmware/$KERNEL-backup.img
sudo cp arch/arm64/boot/Image.gz /boot/firmware/$KERNEL.img
sudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/firmware/
sudo cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/
sudo cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/
but I accidentally did it to /boot/* too
How do i fix this?
Kernel version:
6.12.30-v8+
Example for module:
spiderunderurbed@raspberrypi:~ $ sudo modprobe overlay
modprobe: ERROR: could not insert 'overlay': Exec format error
spiderunderurbed@raspberrypi:~ $
I tried running make modules_prepare and rebuilding the kernel, did not fix it