LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2009, 08:57 PM   #1
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
[Solved] - Slackware 13.0 and compiling madwifi 0.9.4


I installed Slackware 13.0 and output of lspci is:

00:09.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)

I've read ath5k doesn't work with this card (and it doesn't). It needs to be blacklisted and to use ath_pci through madwifi. So, I downloaded madwifi-0.9.4 put it on a cd and copied it to the slackware 13.0 machine.

I un-tar'd it and did the following:

Code:
#cd scripts
#./madwifi-unload
#./find-madwifi-modules.sh $(uname -r)
#cd ..
#make
I get the following error:

Code:
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.29.6-smp/build SUBDIRS=/home/david/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-2.6.29.6'
  CC [M] /home/david/madwifi-0.9.4/ath/if_ath.0
/home/david/madwifi-0.9.4/ath/if_ath.c: In function 'ath_attach':
/home/david/madwifi-0.9.4/ath/if_ath.c:402: error: 'struct net_device' has no member named 'priv'
...
...
...
/home/david/madwifi-0.9.4/ath/if_ath.c: In fucntion 'ath_rcv_dev_event':
/home/david/madwifi-0.9.4/ath/if_ath.c:9926: error: 'struct net_device' has no member named 'priv'
make [3] *** [/home/david/madwifi-0.9.4/ath/if_ath.o] Error 1
make [2] *** [/home/david/madwifi-0.9.4/ath] Error 2
make [1] *** [_module_/home/david/madwifi-0.9.4] Error 2
make [1] Leaving directory `/usr/src/linux-2.6.29.6'
make: *** [modules] Error 2
#
Any ideas what I did wrong or what I need to do to compile this correctly?

Code:
#uname -r
2.6.29.6-smp
#

Last edited by bassplayer69; 09-15-2009 at 01:14 PM. Reason: Mark Solved.
 
Old 09-13-2009, 10:35 PM   #2
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
Yeah, you quickly found out that madwifi 0.9.4 doesn't compile against kernel 2.6.29. There is a patch that is found upstream on the madwifi site. I was able to build the madwifi driver with this patch.
http://bugs.gentoo.org/attachment.cgi?id=188087
Name the patch whatever you want and apply the patch by doing:
Code:
# patch -p0 < kernel-2.6.29.patch
I used the slackbuild script from slackbuilds.org that also has a couple of additional patches for earlier kernels as well.
http://slackbuilds.org/repository/12...adwifi-driver/
 
Old 09-14-2009, 09:15 PM   #3
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Original Poster
Rep: Reputation: 56
Using the SlackBuild from 12.2 and the patch you provided, everything worked and I was able to install the packages for madwifi and madwifi-tools.

I just have to figure out why when I'm requesting DHCP that my cheese router won't give it an IP address...

I keep getting No DHCPOFFERS received.

Thanks for your assistance!
 
Old 09-14-2009, 09:23 PM   #4
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Original Poster
Rep: Reputation: 56
Update -- posting this from my Slack 13.0 machine! Just had to reset the router and everything worked!
 
Old 09-16-2009, 06:41 AM   #5
oldnick
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Can someone explain how that patching works? I have this same problem and i don't know what file i have to patch, It just ask that "File to batch:"
 
Old 09-16-2009, 07:02 AM   #6
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Original Poster
Rep: Reputation: 56
Just follow larryhaja's instructions.

What I did was download the patch and slackbuilds for the madwifi-driver and tools into /home/user. And then did the following:

Code:
#tar -xvf madwifi-driver.tar.gz
#mv madwifi-0.9.4.tar.gz madwifi-driver
#mv kernel-2.6.29.patch madwifi-driver/patches
#cd madwifi-driver
#vi madwifi-driver.SlackBuild
Find the section that reads:

Code:
# Patches to build madwifi against Slacware 12.2 kernel
# Patch from: http://madwifi-project.org/changeset/3696
patch -p1 < $CWD/patches/madwifi-0.9.4_kernel_2.6.26.diff
# Patch from: http://slackware.com/~alien/slackbuilds/madwifi/build/
patch -p1 < $CWD/patches/madwifi-0.9.4_kernel_2.6.27.diff
and add the line to include the new patch you just downloaded:

Code:
# Patch from http://bugs.gentoo.org/attachment.cgi?id=188087
patch -p0 < $CWD/patches/kernel-2.6.29.patch
Save the file and then do:

Code:
#./madwifi-driver.SlackBuild
Then you get the package made and you can install the package using installpkg.

Don't forget to get the madwifi-tools slackbuild as well.
 
Old 09-17-2009, 12:00 AM   #7
oldnick
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Thanks bassplayer69, i got my madwifi worked now.
 
Old 09-19-2009, 11:09 AM   #8
neitor
LQ Newbie
 
Registered: Sep 2009
Location: Venezuela
Distribution: Slackware
Posts: 1

Rep: Reputation: 0
I have done the steps from bassplayer69 and it's works perfect, but after i reboot wireless stop working

How can i start it again?
 
Old 09-19-2009, 12:21 PM   #9
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Original Poster
Rep: Reputation: 56
Try this site:

http://madwifi-project.org/wiki/User...stro/Slackware


That should help you persist your wireless connection.
 
Old 09-24-2009, 09:14 PM   #10
kd5zex
LQ Newbie
 
Registered: Dec 2008
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
Thumbs up

I was having problems with a ath5k AR2413 in a Toshiba A105. Installed madwifi and its alot better!

Thanks!
 
Old 09-24-2009, 10:27 PM   #11
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
If someone would like to take over maintenance of the madwifi builds (by pulling the ones from 12.2, adding the necessary patch(es), and submitting it, that would be nice. :-)
 
Old 09-24-2009, 10:41 PM   #12
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
Quote:
Originally Posted by rworkman View Post
If someone would like to take over maintenance of the madwifi builds (by pulling the ones from 12.2, adding the necessary patch(es), and submitting it, that would be nice. :-)
I don't mind doing that. But I don't have a card to test it out on. I can only offer support on compiling the driver.
 
Old 09-24-2009, 10:47 PM   #13
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by larryhaja View Post
I don't mind doing that. But I don't have a card to test it out on. I can only offer support on compiling the driver.
Good enough for me - that's all I could do in recent times; I haven't had an atheros chipset in quite some time.
 
Old 09-25-2009, 07:08 AM   #14
kd5zex
LQ Newbie
 
Registered: Dec 2008
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
I would be happy to do some testing should it be necessary or desired.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem compiling madwifi solanath Linux - Newbie 8 08-17-2008 10:52 PM
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 7 04-05-2006 11:39 PM
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 0 03-05-2006 06:55 PM
compiling madwifi Subbeh Mandriva 6 03-07-2005 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration