LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 02-07-2007, 04:23 PM   #1
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
Building the madwifi driver with kernel 2.6.20


I've had my Netgear WG511U (AR5212) since the days of kernel 2.6.17. I've been using the madwifi-old driver, latest being r1417, because I've never been able to compile the other. I've tried 0.9.1, 0.9.2 and now 0.9.2.1. I've double and triple checked the required kernel options with my config and everything checks. Now, with kernel 2.6.20, I can't build either. When configuring my kernel I imported the config from my previous 2.6.19.2 and reviewed the menuconfig to make sure everything is ok.

This is the output from make when trying madwifi-0.9.2.1
Code:
In file included from include/asm/pci.h:6,
                 from include/linux/pci.h:736,
                 from /usr/local/src/madwifi-0.9.2.1/ath/if_ath_pci.h:43,
                 from /usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:84:
include/linux/mm.h:658:1: "offset_in_page" redefined
In file included from /usr/local/src/madwifi-0.9.2.1/ath/../net80211/if_media.h:44,
                 from /usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:64:
/usr/local/src/madwifi-0.9.2.1/ath/../net80211/ieee80211_linux.h:427:1: this is the location of the previous definition
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415:60: macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c: In function `ath_attach':
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: `INIT_WORK' undeclared (first use in this function)
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: (Each undeclared identifier is reported only once
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: for each function it appears in.)
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c: At top level:
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:1705: warning: 'ath_radar_task' defined but not used
make[3]: *** [/usr/local/src/madwifi-0.9.2.1/ath/if_ath.o] Error 1
make[2]: *** [/usr/local/src/madwifi-0.9.2.1/ath] Error 2
make[1]: *** [_module_/usr/local/src/madwifi-0.9.2.1] Error 2
make: *** [modules] Error 2
And this is make from madwifi-old-r1417-20060128 that has worked until now
Code:
Checking if all requirements are met... ok.
mkdir -p ./symbols
for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
                make -C $i || exit 1; \
        done
make[1]: Entering directory `/usr/local/src/madwifi-old-r1417-20060128/ath_hal'
make -C /usr/src/linux-2.6.20 SUBDIRS=/usr/local/src/madwifi-old-r1417-20060128/ath_hal MODVERDIR=/usr/local/src/madwifi-old-r1417-20060128/ath_hal/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.20'
  Building modules, stage 2.
  MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-2.6.20'
make[1]: Leaving directory `/usr/local/src/madwifi-old-r1417-20060128/ath_hal'
make[1]: Entering directory `/usr/local/src/madwifi-old-r1417-20060128/net80211'
make -C /usr/src/linux-2.6.20 SUBDIRS=/usr/local/src/madwifi-old-r1417-20060128/net80211 MODVERDIR=/usr/local/src/madwifi-old-r1417-20060128/net80211/../symbols  modules
make[2]: Entering directory `/usr/src/linux-2.6.20'
  CC [M]  /usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.o
In file included from include/asm/system.h:4,                 from include/asm/processor.h:18,
                 from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/module.h:9,
                 from /usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:41:
include/linux/kernel.h:41:1: warning: "roundup" redefined
In file included from <command line>:9:
/usr/local/src/madwifi-old-r1417-20060128/net80211/../include/compat.h:46:1: warning: this is the location of the previous definition
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c: In function `rijndael_encrypt':
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:290: error: invalid use of undefined type `struct page'
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:294: error: invalid use of undefined type `struct page'
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:297: warning: `crypto_cipher_encrypt' is deprecated (declared at include/linux/crypto
.h:820)
make[3]: *** [/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.o] Error 1
make[2]: *** [_module_/usr/local/src/madwifi-old-r1417-20060128/net80211] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.20'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/madwifi-old-r1417-20060128/net80211'
make: *** [all] Error 1
Any help is appreciated.
 
Old 02-07-2007, 05:36 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
"I've double and triple checked the required kernel options with my config and everything checks. Now, with kernel 2.6.20, I can't build either."

As I've posted in the past, they're changing the workqueue interface in 2.6.20, and at the very least, it breaks madwifi. I've read somewhere that there is or may be a porting effort going on, but I have no idea what the status is.
 
Old 02-19-2007, 05:22 PM   #3
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Hey all. They say 0.9.3 should work when it comes, which should be any time now. I've tried the current svn as of a few minutes ago, it compiles fine but the module doesn't load. According to somebody on the mailing list it works if you compile it builtin as opposed to a module, but I haven't tried that.
 
Old 03-04-2007, 05:17 AM   #4
ahaslam
LQ Newbie
 
Registered: Jan 2007
Distribution: Arch x86_64
Posts: 26

Rep: Reputation: 15
SVN does work, just make && make install as usual
 
Old 03-13-2007, 07:08 PM   #5
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Original Poster
Rep: Reputation: 47
Sorry for not replying sooner. I've been on spring break away from wireless access. Now I'm back and using my card with the SVN driver. Thanks for the tips.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
madwifi driver link BROKEN...need driver usfhunk Linux - Networking 2 01-12-2006 11:22 AM
building driver disk for 2.6 kernel jputhuka Fedora 0 11-07-2005 12:32 PM
building madwifi, modprobe wlan rmakers Linux - Wireless Networking 7 05-07-2005 06:08 AM
Problem building madwifi on mdk 10.1 Elomis Linux - Software 2 01-15-2005 01:10 AM
madwifi driver darthczyz Linux - Wireless Networking 2 05-10-2004 02:59 PM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration