Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 :
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?
[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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.