rfm12b-linux
rfm12b-linux copied to clipboard
Compile against last raspi kernel
Hello, I try to recompile on raspi Linux raspberrypi 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux
I followed the process: git clone --depth=1 git://github.com/raspberrypi/linux.git rpi-linux make bcmrpi_defconfig make prepare headers_install make modules_prepare
then rebuild the module pointing to the above repository I got just one warning rfm12b.c: In function ‘rfm12_setup’: rfm12b.c:1235:1: warning: the frame size of 2088 bytes is larger than 1024 bytes
but the module didn't load: sudo insmod rfm12b.ko insmod: ERROR: could not insert module rfm12b.ko: Invalid module format the file seem OK: rfm12b.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=025d39542e5b6f9666f4066e8697ff7463545ac0, not stripped
Any idea ?
Self anwser, this was due to Module.symvers not found Cross COMPILE on other Linux box OK insmod OK [327433.713799] spi spi0.1: setting up native-CS1 as GPIO 7 [327433.718095] rfm12b: added RFM69W transceiver rfm12b.0.1 [327433.718328] rfm12b : driver loaded. [327678.144040] rfm12b: transceiver <0x7f25755c> (RFM69W) settings now: group 211, band 2, bit rate 0x06 (49261 bps), jee id: 0, jee autoack: 1. [327729.704215] rfm12b: transceiver <0x7f25755c> (RFM69W) settings now: group 211, band 2, bit rate 0x06 (49261 bps), jee id: 0, jee autoack: 1. launching read OK, write OK but after write status indicate 0 bytes send and subsequant open fail with: failed to open /dev/rfm12b.0.1: Device or resource busy. data queue was not drain .
self answer again since I have two module I have to trick the platform and set the right pin for each module read and write ok never device busy since the data seems to drain . more test with a jeenode later.