I might be able to help myself if I know where to get the kernel headers. Not sure I’ll be able to compile anything under the pi0 since OSMC is really stripped down and I don’t have any toolchain.
I’ve found a kernel build script at:
And by looking at it I learned that for rpi1 it’s using the Kernel 4.9.29
test $1 == rbp1 && VERSION=“4.9.29”
In order to get the kernel headers, can I then just download the kernel source for 4.9.29 form kernel.org and just use it ?
Will I be able to get the necessary toolchain components (c/c++/perl… etc) directly from Debian with apt-get ?
Thanks again for any help!