I am trying to compile a kernel module on my BBB for the RFM12B transceiver chip from the code I “git cloned” from here
https://github.com/gkaindl/rfm12b-linux
When trying to compile this from the instructions on that page on the BBB itself, I get:
root@arm:~/rfm12b-linux# make
make -C /lib/modules/3.8.13-bone28/build M=/root/rfm12b-linux modules
make[1]: Entering directory /usr/src/linux-headers-3.8.13-bone28' CC [M] /root/rfm12b-linux/rfm12b.o In file included from include/linux/timex.h:65:0, from include/linux/jiffies.h:8, from include/linux/ktime.h:25, from include/linux/timer.h:5, from include/linux/workqueue.h:8, from include/linux/srcu.h:34, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:761, from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from /root/rfm12b-linux/rfm12b.c:20: /usr/src/linux-headers-3.8.13-bone28/arch/arm/include/asm/timex.h:18:24: fatal error: mach/timex.h: No such file or directory compilation terminated. make[2]: *** [/root/rfm12b-linux/rfm12b.o] Error 1 make[1]: *** [_module_/root/rfm12b-linux] Error 2 make[1]: Leaving directory
/usr/src/linux-headers-3.8.13-bone28’
make: *** [all] Error 2
I am running Debian bone28 wheezy from rcn-ee.net and I have the corresponding kernel headers installed.
I found this link (http://gencarelle.com/blog/2013/07/19/problems-with-rtl8188cus/) for someone running Ubuntu on the BBB but his fix for the missing arch type doesn’t work as there is no armv7l directory to softlink to.
There is also this link (https://groups.google.com/forum/#!topic/beagleboard/5xMAyFxQbdE) on the 3.2 kernel from a year ago with a solution that required a compile of the kernel from sources. But then I looked at the 3.8.13 sources on kernel.org and mach/timex.h doesn’t exist in there either.
Any help greatly appreciated. Thanks!