Author Topic: Compiling a new driver  (Read 9225 times)

dinart

  • Active Member
  • *
  • Posts: 4
Compiling a new driver
« on: August 30, 2012, 07:07:57 PM »
Hello everybody,

I am using the  Eddy-DK v2.5 as a web server through the ethernet connection. But know, I am considering the possibility of doing the same but through a wireless connection. In other words, I am planning to use a USB-WiFi module and use it instead of the ethernet connection. I know you have a WiFi module but I need to use it in AP mode and I think is not possible to configure your module in that way.

So the question is how to include it in the firmware image which I will upload to the CPU via FTP/web browser/etc. I have it working in a "complete" linux distribution (ubuntu) but the makefile is for a native compilation, instead of a cross-compilation. What I do not know is how to include the driver for the USB-WiFi module in the "main" makefile which I will use to generate the firmware image.

Any help will be appreciated

Antti Lukats

  • Hero Member
  • *****
  • Posts: 542
Re: Compiling a new driver
« Reply #1 on: August 31, 2012, 08:41:53 AM »
Hi

your question is pretty much "generic linux" howto question, not much related to eddy module.
It is definitively possible to use USB Wifi sticks with embedded linux as well, but you have to work a bit modifying the build configuration and tweaking it to work, this may be not a trivial task unfortunately there is magic "do this" and the xyz wifi dongle will work on xyz embedded linux distribution.

Start by comparing the configuration and build make of the eddy and the ubuntu system in places related to usb and wifi-network

best of all if you manage to create a linux installabel kernel module (.ko file) that supports your wifi stick, then just copy it to the eddy filesystem, and make sure it is loaded at startup with insmod command

Antti
« Last Edit: August 31, 2012, 08:48:10 AM by Antti Lukats »

dinart

  • Active Member
  • *
  • Posts: 4
Re: Compiling a new driver
« Reply #2 on: September 07, 2012, 10:57:20 AM »
Well,

I didn't manage to get it to work with this kernel version (2.6.21). I was in contact with the team that developed the driver and they said that I have to upgrade to a kernel version newer than 2.6.28. So, now, the question is how to upgrade Lemonix for that kernel version (2.6.28)? I suppose I need the source for the drivers and compile them for this new kernel and also the compilation directives, etc. Am I correct?

Thanks in advance

Felipe López

Antti Lukats

  • Hero Member
  • *****
  • Posts: 542
Re: Compiling a new driver
« Reply #3 on: September 07, 2012, 03:42:33 PM »
Hi

you would need to make full kernel rebuild :( !
The best would be to contact the EDDY developers and ask about the kernel revision.
It is may not as simple as replacing a few file and typing make...

br,
Antti