-   Linux - Wireless Networking (
-   -   madwifi drivers on debian (compile errors) (

Erik Thorsson 01-08-2005 12:37 PM

madwifi drivers on debian (compile errors)
I'm trying to build the madwifi drivers from source, since there doesn't seem to be any way to apt-get them. I installed and unpacked the kernel source, and kernel headers, then I copied /boot/config-2.6.8-1-386 to /usr/src/kernel-source-2.6.8/.config like it says to do in the madwifiwiki ath0 on debian page ( This is a Debian Sarge machine. Here is my sad output...


yew:/home/jlucas/madnoworkie/madwifi-20041023.orig/madwifi# make
for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
(cd $i; make) || exit 1; \
make[1]: Entering directory `/home/jlucas/madnoworkie/madwifi-20041023.orig/madwifi/ath_hal'
make -C /lib/modules/2.6.8-1-386/build SUBDIRS=/home/jlucas/madnoworkie/madwifi-20041023.orig/madwifi/ath_hal modules
make[2]: Entering directory `/lib/modules/2.6.8-1-386/build'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/lib/modules/2.6.8-1-386/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jlucas/madnoworkie/madwifi-20041023.orig/madwifi/ath_hal'
make: *** [all] Error 1


What am I missing here? I'm sure it's a simple fix.



Hangdog42 01-08-2005 02:09 PM

Did you actually follow all the steps on the page you link to? The reason I'm asking is this:


now before re-building the kernel, I modified /etc/kernel-pkg.conf to include the line:

do_clean := No

this can be necessary because the madwifi driver wants some built executables for compiling. Newer versions of the driver (from mid-March, 2004) will build without this step.
Some wireless drivers have actually requried the user to have compiled their own kernel first, and it looks to me like this is a way around having to do that.

Erik Thorsson 01-08-2005 09:21 PM

Yes, I added that line to /etc/kernel-pkg.conf. Still getting the same error. :(

Erik Thorsson 01-08-2005 10:50 PM

Okay. Got it working. Don't know what the problem was with compiling, but I started all over and followed the instructions here... the letter and everything worked smoothly. You'll have to apt-get kernel-source-whateverversionyourkernelis, and a few other packages, before you get to the point where you can start following the instructions, but if you have some experience with Linux it should be do-able.

Good luck.


All times are GMT -5. The time now is 07:08 AM.