OpenWrt Forum Archive

Topic: Kernel Modules ath5k and madwifi

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I am trying to get open wrt to work on a PC-Engines WRAP Board. I followed the Howto and could compile. Now Im trying to get an atheros card to work which I pluged into the miniPCI port of the WRAP Board.
The first problem is that if i compile the ath5k driver into the kernel than it works and i can find the wlan interface in iwconfig. If I try to use the driver as a module by selecting <M> in menuconfig I can not load the driver. It simply says "insmod: Loading module failed: No such file or directory". I think that in the .image file whiche I put to the CF-Card doesn't contain the module. Now I want to know where I can find these modules und where to put them to get these modules to run.

The second thing is that I actually want madwifi driver to work. I selected <M> at madwifi in menuconfig. No I can not load this driver because I can not be found. I dont know why.

Tanks for help!

When you set it to "<M>" in menuconfig that means the build system will make a .ipkg, which you need to install with "opkg install $pkgname" (or use LuCI to do it).

If you set it to <*>, then the module will be installed before the CF image is made, so you don't need to do anything at runtime (but the image will be bigger).

-jra

If you do <M> I don't think it is included in the flash.  You can also find it in your build system somewhre like: ./build_dir/linux-ar71xx/compat-wireless-2009-02-07/drivers/net/wireless/ath5k/ath5k.ko  The date of compat-wireless will change with passage of time.

You can copy that ath5k.ko file over to the router and insmod.  It shoudl work if you have the other required modules built-in or insmod those too.  I do this when hacking on the drivers.

As jra pointed out, making it <*> is easier.

RoundSparrow wrote:

If you do <M> I don't think it is included in the flash.  You can also find it in your build system somewhre like: ./build_dir/linux-ar71xx/compat-wireless-2009-02-07/drivers/net/wireless/ath5k/ath5k.ko  The date of compat-wireless will change with passage of time.

You can copy that ath5k.ko file over to the router and insmod.  It shoudl work if you have the other required modules built-in or insmod those too.  I do this when hacking on the drivers.

As jra pointed out, making it <*> is easier.

Hi, I have a question to ask, can  a module be made without the process of compiling kernal? I mean, something like SDK for making packages.Thank you!

The discussion might have continued from here.