
If using a 64bit development PC make sure you use the 64bit raspbian tools (cross-compiler). Follow the instructions on the Emlid LINUX-RT-RPI GitHub repository to download and build the source (and download the cross compiler also used for the driver). That means you have to run a “make modules” on the Emlid RT kernel source.
In order to build the relatively small driver (“module”) you need access to the a copy of the source with the “Module.symvers” file specifically plus the other prepared headers.
Forget building on the Raspberry Pi it takes too long. The redirection of the RT kernel on Navio+ seems to prevent proper version calculation hence the never ending “Bad EXE format/symbol version mismatch” errors if you try. Must build on a normal Linux PC/kernel. Here is how you compile a module for a custom Linux build and install it: So it’s not in anyway intuitive or easy or documented 100%. I’ve got a EW-7811USC which is a variant of the other Edimax AC600 USB Wifi adapter with a removable aerial, so I can replace with a circularly polarized antenna. We just need to populate the /lib/modules/3.18.9-rt5-v7+/build and …/source directories I guess? The workaround to create a symbolic link to version 3.10-3-rpi doesn’t work because it’s the wrong version so leads to the “Exec format message” message reported Can you please create a headers package/zip for us to download and/or provide instructions how to extract the same from your GitHub soruce? I’ve had a look at the source on GitHub but cannot see any obvious mapping between from what is usually installed by a downloaded “linux-headers-*” package. So as we’re using a special Linux distribution with Navio we also need access to a “linux-headers-*” build directory with which to recompile the drivers. I’ve learnt the key to rebuilding “new” Wifi (or any other) device driver module is availability of the correct headers. Make: Leaving directory '/root/linux-c256eb9968c8997dce47350d2075e42f1b3991d3'Īny suggestions for being able to build any module on the provided image? Or am I doing something wrong here?
LD /home/pi/wireless/rtl8188eu-master/8188eu.ko WARNING: "add_preempt_count" undefined!ĬC /home/pi/wireless/rtl8188eu-master/ The build process ended ok, with two warnings like so: WARNING: "sub_preempt_count" undefined! Use the source code now the module compiled on the pi running the navio immage, installed it but still the same issue: ~/wireless/rtl8188eu-master $ sudo modprobe 8188euĮRROR: could not insert '8188eu': Exec format error Now the 3.12.26 is not in the list as you can see so I tried to build the module myself.įirst the header issue i used rpi-source from here I have bought a couple of those earlier(bad choice) but managed to get them to work on a RPi in two other boards using these driver from here I have a problem with a wireless usb adapter.