LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-03-2005, 04:43 AM   #1
zoxygen
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
Madwifi on LE2005 (i586) and Athlon 64


Hello everyone!

I'm new to Linux and to Linuxquestions (first post ).

I have recently installed Mandriva LE2005 on my EQ3801M (Athlon 64 (Opteron) 3000+). I first tried x86_64 version and succeeded to install Madwifi for my WG311T Wifi Card.

However, due to so many compatibility problems installing packages, I prefered to reinstall Mandriva with i586 compatibility. Since, I can't get Madwifi to work...

Indeed, if madwifi installation is ok, iwlist ath0 scan keeps returning me No scan results...

This is my installation sequence :


After having modified /usr/src/linux/Makefile : `EXTRAVERSION = -6mdk`

tar xvjf madwifi-cvs-current.tar.bz2 -C /usr/src
cd /usr/src/madwifi
make && make install
modprobe ath_pci

lsmod > ath_pci loaded, dmesg > WG311T seems to be detected
I have modified /etc/modprobe.conf, adding `alias ath0 ath_pci`

I made a ifcfg-ath0 script in /etc/sysconfig/network-scripts/, I reboot and :


modprobe ath_pci
ifconfig ath0 up
iwconfig ath0 essid MYESSID
iwconfig ath0 key open MYKEY
iwconfig ath0 channel 11
iwconfig ath0 mode Managed
iwpriv ath0 mode 3
iwlist ath0 scan

>> No scan results.


Any ideas ?

Thanx

zoxygen
 
Old 06-04-2005, 12:19 AM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
The madwifi drivers have some pretty odd prereq's can you re-direct the output from a make and post up anything odd, specifically if there's something mentioning uuencode?

Cheers,

Finegan
 
Old 06-05-2005, 05:00 AM   #3
zoxygen
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanx for your response

This is the output you asked me :


[root@localhost madwifi]# make
Checking if all requirements are met... ok.
mkdir -p ./symbols
for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
(cd $i; make) || exit 1; \
done
make[1]: Entering directory `/usr/src/madwifi/ath_hal'
cp ./../hal/linux/ah_osdep.c ah_osdep.c
uudecode ./../hal/public/i386-elf.hal.o.uu
cp ./../hal/public/i386-elf.opt_ah.h opt_ah.h
make -C /lib/modules/2.6.11-6mdk/build SUBDIRS=/usr/src/madwifi/ath_hal MODVERDIR=/usr/src/madwifi/ath_hal/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.11-6mdk'
CC [M] /usr/src/madwifi/ath_hal/ah_osdep.o
LD [M] /usr/src/madwifi/ath_hal/ath_hal.o
Building modules, stage 2.
MODPOST
CC /usr/src/madwifi/ath_hal/ath_hal.mod.o
LD [M] /usr/src/madwifi/ath_hal/ath_hal.ko
make[2]: Leaving directory `/usr/src/linux-2.6.11-6mdk'
make[1]: Leaving directory `/usr/src/madwifi/ath_hal'
make[1]: Entering directory `/usr/src/madwifi/ath_rate/onoe'
make -C /lib/modules/2.6.11-6mdk/build SUBDIRS=/usr/src/madwifi/ath_rate/onoe MODVERDIR=/usr/src/madwifi/ath_rate/onoe/../../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.11-6mdk'
CC [M] /usr/src/madwifi/ath_rate/onoe/onoe.o
LD [M] /usr/src/madwifi/ath_rate/onoe/ath_rate_onoe.o
Building modules, stage 2.
MODPOST
CC /usr/src/madwifi/ath_rate/onoe/ath_rate_onoe.mod.o
LD [M] /usr/src/madwifi/ath_rate/onoe/ath_rate_onoe.ko
make[2]: Leaving directory `/usr/src/linux-2.6.11-6mdk'
make[1]: Leaving directory `/usr/src/madwifi/ath_rate/onoe'
make[1]: Entering directory `/usr/src/madwifi/net80211'
make -C /lib/modules/2.6.11-6mdk/build SUBDIRS=/usr/src/madwifi/net80211 MODVERDIR=/usr/src/madwifi/net80211/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.11-6mdk'
CC [M] /usr/src/madwifi/net80211/if_media.o
CC [M] /usr/src/madwifi/net80211/rc4.o
CC [M] /usr/src/madwifi/net80211/ieee80211.o
CC [M] /usr/src/madwifi/net80211/ieee80211_crypto.o
CC [M] /usr/src/madwifi/net80211/ieee80211_input.o
CC [M] /usr/src/madwifi/net80211/ieee80211_node.o
CC [M] /usr/src/madwifi/net80211/ieee80211_output.o
CC [M] /usr/src/madwifi/net80211/ieee80211_proto.o
CC [M] /usr/src/madwifi/net80211/ieee80211_wireless.o
CC [M] /usr/src/madwifi/net80211/ieee80211_linux.o
CC [M] /usr/src/madwifi/net80211/ieee80211_crypto_none.o
CC [M] /usr/src/madwifi/net80211/ieee80211_acl.o
CC [M] /usr/src/madwifi/net80211/ieee80211_crypto_ccmp.o
CC [M] /usr/src/madwifi/net80211/ieee80211_crypto_tkip.o
CC [M] /usr/src/madwifi/net80211/ieee80211_crypto_wep.o
CC [M] /usr/src/madwifi/net80211/ieee80211_xauth.o
LD [M] /usr/src/madwifi/net80211/wlan.o
LD [M] /usr/src/madwifi/net80211/wlan_wep.o
LD [M] /usr/src/madwifi/net80211/wlan_tkip.o
LD [M] /usr/src/madwifi/net80211/wlan_ccmp.o
LD [M] /usr/src/madwifi/net80211/wlan_acl.o
LD [M] /usr/src/madwifi/net80211/wlan_xauth.o
Building modules, stage 2.
MODPOST
CC /usr/src/madwifi/ath_rate/onoe/ath_rate_onoe.mod.o
LD [M] /usr/src/madwifi/ath_rate/onoe/ath_rate_onoe.ko
CC /usr/src/madwifi/net80211/wlan.mod.o
LD [M] /usr/src/madwifi/net80211/wlan.ko
CC /usr/src/madwifi/net80211/wlan_acl.mod.o
LD [M] /usr/src/madwifi/net80211/wlan_acl.ko
CC /usr/src/madwifi/net80211/wlan_ccmp.mod.o
LD [M] /usr/src/madwifi/net80211/wlan_ccmp.ko
CC /usr/src/madwifi/net80211/wlan_tkip.mod.o
LD [M] /usr/src/madwifi/net80211/wlan_tkip.ko
CC /usr/src/madwifi/net80211/wlan_wep.mod.o
LD [M] /usr/src/madwifi/net80211/wlan_wep.ko
CC /usr/src/madwifi/net80211/wlan_xauth.mod.o
LD [M] /usr/src/madwifi/net80211/wlan_xauth.ko
make[2]: Leaving directory `/usr/src/linux-2.6.11-6mdk'
make[1]: Leaving directory `/usr/src/madwifi/net80211'
make[1]: Entering directory `/usr/src/madwifi/ath'
make -C /lib/modules/2.6.11-6mdk/build SUBDIRS=/usr/src/madwifi/ath MODVERDIR=/usr/src/madwifi/ath/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.11-6mdk'
CC [M] /usr/src/madwifi/ath/if_ath.o

/usr/src/madwifi/ath/if_ath.c: In function `ath_beacon_setup':
/usr/src/madwifi/ath/if_ath.c:1717: warning: cast to pointer from integer of different size
/usr/src/madwifi/ath/if_ath.c: In function `ath_beacon_tasklet':
/usr/src/madwifi/ath/if_ath.c:1904: warning: cast to pointer from integer of different size
/usr/src/madwifi/ath/if_ath.c: In function `ath_desc_alloc':
/usr/src/madwifi/ath/if_ath.c:2054: warning: cast to pointer from integer of different size
/usr/src/madwifi/ath/if_ath.c: In function `ath_tx_start':
/usr/src/madwifi/ath/if_ath.c:2896: warning: unsigned int format, different type arg (arg 6)
/usr/src/madwifi/ath/if_ath.c:3142: warning: cast to pointer from integer of different size
/usr/src/madwifi/ath/if_ath.c:3147: warning: cast to pointer from integer of different size
/usr/src/madwifi/ath/if_ath.c: In function `ath_printrxbuf':
/usr/src/madwifi/ath/if_ath.c:3947: warning: cast to pointer from integer of different size
/usr/src/madwifi/ath/if_ath.c: In function `ath_printtxbuf':
/usr/src/madwifi/ath/if_ath.c:3960: warning: cast to pointer from integer of different size

CC [M] /usr/src/madwifi/ath/if_ath_pci.o
LD [M] /usr/src/madwifi/ath/ath_pci.o
Building modules, stage 2.
MODPOST
CC /usr/src/madwifi/ath/ath_pci.mod.o
LD [M] /usr/src/madwifi/ath/ath_pci.ko
make[2]: Leaving directory `/usr/src/linux-2.6.11-6mdk'
make[1]: Leaving directory `/usr/src/madwifi/ath'

[root@localhost madwifi]# make install
for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
(cd $i; make install) || exit 1; \
done
make[1]: Entering directory `/usr/src/madwifi/ath_hal'
test -d //lib/modules/2.6.11-6mdk/net || mkdir -p //lib/modules/2.6.11-6mdk/net
strip -S ath_hal.ko
cp ath_hal.ko //lib/modules/2.6.11-6mdk/net
make[1]: Leaving directory `/usr/src/madwifi/ath_hal'
make[1]: Entering directory `/usr/src/madwifi/ath_rate/onoe'
test -d //lib/modules/2.6.11-6mdk/net || mkdir -p //lib/modules/2.6.11-6mdk/net
strip -S ath_rate_onoe.ko
cp ath_rate_onoe.ko //lib/modules/2.6.11-6mdk/net
make[1]: Leaving directory `/usr/src/madwifi/ath_rate/onoe'
make[1]: Entering directory `/usr/src/madwifi/net80211'
test -d //lib/modules/2.6.11-6mdk/net || mkdir -p //lib/modules/2.6.11-6mdk/net
for i in wlan.o wlan_wep.o wlan_tkip.o wlan_ccmp.o wlan_acl.o wlan_xauth.o; do \
f=`basename $i .o`; \
strip -S $f.ko; \
cp $f.ko //lib/modules/2.6.11-6mdk/net; \
done
make[1]: Leaving directory `/usr/src/madwifi/net80211'
make[1]: Entering directory `/usr/src/madwifi/ath'
test -d //lib/modules/2.6.11-6mdk/net || mkdir -p //lib/modules/2.6.11-6mdk/net
strip -S ath_pci.ko
cp ath_pci.ko //lib/modules/2.6.11-6mdk/net
make[1]: Leaving directory `/usr/src/madwifi/ath'


However, I think the driver is well installed :


[root@localhost madwifi]# depmod -a
[root@localhost madwifi]# modprobe ath_pci
[root@localhost madwifi]# dmesg | tail
ath_pci: 0.9.4.12 (EXPERIMENTAL)
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 5.6 phy 4.1 radio 1.7
ath0: 802.11 address: 00:09:5b:e8:06:3b
ath0: Use hw queue 0 for WME_AC_BE traffic
ath0: Use hw queue 1 for WME_AC_BK traffic
ath0: Use hw queue 2 for WME_AC_VI traffic
ath0: Use hw queue 3 for WME_AC_VO traffic
ath0: Atheros 5212: mem=0xed000000, irq=14


Where's the problem ? snif..

Do I have to compile it in x86_64-elf under LE2005 i586 ? If yes, how would I do that ?

zoxygen
 
Old 06-05-2005, 07:55 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Quote:
Originally posted by zoxygen


Where's the problem ? snif..

Do I have to compile it in x86_64-elf under LE2005 i586 ? If yes, how would I do that ?

zoxygen
That was one clean make... I asked because madwifi source used to come with calls to things like uuencode, part of sharutils (which makes no sense why it needs it), and several other packages that if it didn't find it would forge ahead instead of failing gracefully.

I'm kinda stumped... have you tried to see if the card will scan to the AP if wep is off, just putting it in wide open managed mode? Something strange is afoot as I'm seeing stuff in their mailing list with the card working under the exact same kernel build, (although, of course not necessarily the exact same atheros chip rev).

I hate to say it, but its probably best to aim this one at the mailing list for the madwifi users. The make looks clean, the driver seems to work, just no association, yeah that's a little too weird.

Cheers,

Finegan
 
  


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
LE2005 keeps rebooting fatrat007 Mandriva 4 05-31-2005 03:42 AM
Can someone email me "madwifi-2.6.8_and_-mm-040821.patch.bz2"? (madwifi 2.6.8 patch) 95se Linux - Wireless Networking 0 09-01-2004 10:34 AM
Is it an ATHLON, or ATHLON-THUNDERBIRD ? qwijibow Linux - General 5 07-27-2004 06:33 AM
Is Athlon XP i586 or i686...? gargamel Linux - Hardware 3 05-07-2004 04:14 PM
i386, i586, i686, athlon!?? FreakboY Linux - Newbie 6 04-27-2003 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:01 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