LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-21-2007, 09:58 AM   #1
Mark_in_Hollywood
Member
 
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Bionic Beaver
Posts: 133

Rep: Reputation: 16
MadWiFi driver not attached to pci card


This is Ubuntu Feisty Fawn 7.04. I believe the madwifi drivers are pre-installed.I've added the 'restricted' module, but no luck. The card isn't finding the drivers or vice versa.

mark@Lexington:~$ uname -r
2.6.20-16-386

mark@Lexington:~$ lspci
01:0b.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)

mark@Lexington:~$ lshw
*-network UNCLAIMED
description: Ethernet controller
product: AR5212 802.11abg NIC
vendor: Atheros Communications, Inc.
physical id: b
bus info: pci@01:0b.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: latency=64 maxlatency=28 mingnt=10
resources: iomemory:ff8f0000-ff8fffff irq:3

mark@Lexington:~$ iwconfig
lo no wireless extensions.

mark@Lexington:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:600 (600.0 b) TX bytes:600 (600.0 b)

mark@Lexington:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp

iface ppp0 inet ppp
provider ppp0

mark@Lexington:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

mark@Lexington:~$ iwlist scan
lo Interface doesn't support scanning.

mark@Lexington:~$ cat /etc/modprobe.d/ndiswrapper
alias wlan0 ndiswrapper

mark@Lexington:~$ cat etc/resolv.conf
cat: etc/resolv.conf: No such file or directory

sumark@Lexington:~$ sudo apt-cache search madwifi
Password:
linux-restricted-modules-2.6.20-15-386 - Non-free Linux 2.6.20 modules on 386
linux-restricted-modules-2.6.20-15-generic - Non-free Linux 2.6.20 modules on x86/x86_64
hostapd - user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
madwifi-tools - tools for the Multiband Atheros Driver for WiFi
linux-restricted-modules-2.6.20-15-lowlatency - Non-free Linux 2.6.20 modules on x86/x86_64
xen-restricted-modules-2.6.17-6-generic-xen0 - Non-free Linux 2.6.17 modules on x86_64 generic-xen0
linux-restricted-modules-2.6.20-16-386 - Non-free Linux 2.6.20 modules on 386
linux-restricted-modules-2.6.20-16-generic - Non-free Linux 2.6.20 modules on x86/x86_64
linux-restricted-modules-2.6.20-16-lowlatency - Non-free Linux 2.6.20 modules on x86/x86_64

mark@Lexington:~$ sudo uname -r
2.6.20-16-386
mark@Lexington:~$ sudo aptitude install linux-restricted-modules-2.6.20-16.386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Building tag database... Done
Couldn't find package "linux-restricted-modules-2.6.20-16.386". However, the following
packages contain "linux-restricted-modules-2.6.20-16.386" in their name:
linux-restricted-modules-2.6.20-16-386
The following packages have been automatically kept back:
clamav-freshclam
The following packages have been kept back:
clamav clamav-base clamav-daemon clamav-docs libclamav2
0 packages upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
mark@Lexington:~$

mark@Lexington:~$ sudo ifconfig
Password:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:400 (400.0 b) TX bytes:400 (400.0 b)

mark@Lexington:~$ sudo ifconfig wlan0
wlan0: error fetching interface information: Device not found

mark@Lexington:~$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub [8086:1130] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 82815 815 Chipset AGP Bridge [8086:1131] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev 01)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801BA ISA Bridge (LPC) [8086:2440] (rev 01)
00:1f.1 IDE interface [0101]: Intel Corporation 82801BA IDE U100 [8086:244b] (rev 01)
00:1f.2 USB Controller [0c03]: Intel Corporation 82801BA/BAM USB (Hub #1) [8086:2442] (rev 01)
00:1f.3 SMBus [0c05]: Intel Corporation 82801BA/BAM SMBus [8086:2443] (rev 01)
01:0b.0 Ethernet controller [0200]: Atheros Communications, Inc. AR5212 802.11abg NIC [168c:0013] (rev 01)
01:0c.0 Multimedia audio controller [0401]: Ensoniq ES1371 [AudioPCI-97] [1274:1371] (rev 06)
02:00.0 VGA compatible controller [0300]: ATI Technologies Inc Rage 128 PF/PRO AGP 4x TMDS [1002:5046]
mark@Lexington:~$

mark@Lexington:~$ modinfo acx_pci
modinfo: could not find module acx_pci

mark@Lexington:~$ modinfo ath_pci
filename: /lib/modules/2.6.20-16-386/madwifi/ath_pci.ko
license: Dual BSD/GPL
version: 0.9.3.1
description: Support for Atheros 802.11 wireless LAN cards.
author: Errno Consulting, Sam Leffler
srcversion: D33427613CC54A874D9A746
alias: pci:v0000168Cd00009013sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Dsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Csv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Bsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00000019sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000018sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000017sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000016sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000015sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000101Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00001014sv*sd*bc*sc*i*
alias: pci:v000010B7d00000013sv*sd*bc*sc*i*
alias: pci:v0000A727d00000013sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000013sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000012sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000007sv*sd*bc*sc*i*
depends: ath_hal,wlan
vermagic: 2.6.20-16-386 mod_unload 486
parm: countrycode:Override default country code (int)
parm: outdoor:Enable/disable outdoor use (int)
parm: xchanmode:Enable/disable extended channel mode (int)
parm: rfkill:Enable/disable RFKILL capability (int)
parm: autocreate:Create ath device in [sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use 'none' to disable (charp)
parm: ratectl:Rate control algorithm [amrr|onoe|sample], defaults to 'sample' (charp)
parm: ath_debug:Load-time debug output enable (int)
mark@Lexington:~$



mark@Lexington:~$ sudo apt-cache search madwifi
linux-restricted-modules-2.6.20-15-386 - Non-free Linux 2.6.20 modules on 386
linux-restricted-modules-2.6.20-15-generic - Non-free Linux 2.6.20 modules on x86/x86_64
hostapd - user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
madwifi-tools - tools for the Multiband Atheros Driver for WiFi
linux-restricted-modules-2.6.20-15-lowlatency - Non-free Linux 2.6.20 modules on x86/x86_64
xen-restricted-modules-2.6.17-6-generic-xen0 - Non-free Linux 2.6.17 modules on x86_64 generic-xen0
linux-restricted-modules-2.6.20-16-386 - Non-free Linux 2.6.20 modules on 386
linux-restricted-modules-2.6.20-16-generic - Non-free Linux 2.6.20 modules on x86/x86_64
linux-restricted-modules-2.6.20-16-lowlatency - Non-free Linux 2.6.20 modules on x86/x86_64
mark@Lexington:~$

mark@Lexington:~$ sudo uname -r
2.6.20-16-386

mark@Lexington:~$ sudo aptitude install linux-restricted-modules-2.6.20-16-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Building tag database... Done
The following packages have been automatically kept back:
clamav-freshclam
The following packages have been kept back:
clamav clamav-base clamav-daemon clamav-docs libclamav2
0 packages upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
mark@Lexington:~$

mark@Lexington:~$ sudo aptitude install linux-restricted-modules-2.6.20-16-386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages have been automatically kept back:
clamav-freshclam
The following packages have been kept back:
clamav clamav-base clamav-daemon clamav-docs libclamav2
0 packages upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
mark@Lexington:~$

after adding the restricted module above, I rebooted and:

root@Lexington:/home/mark# lshw -C network
*-network UNCLAIMED
description: Ethernet controller
product: AR5212 802.11abg NIC
vendor: Atheros Communications, Inc.
physical id: b
bus info: pci@01:0b.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: latency=64 maxlatency=28 mingnt=10
resources: iomemory:ff8f0000-ff8fffff irq:3
root@Lexington:/home/mark#
 
Old 07-21-2007, 01:07 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Run this command to see if the module will load, run it as root.
/sbin/modprobe ath_pci

If it says no module then madwifi is not present for your current kernel or the system.map is not up to date. From the looks I assume you have it in the /lib/modules/`uname -r`/madwifi

If present then run this command to update the system.map. depmod -a

Brian
 
Old 07-22-2007, 02:07 AM   #3
Mark_in_Hollywood
Member
 
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Bionic Beaver
Posts: 133

Original Poster
Rep: Reputation: 16
nope, not so far

output of dmesg

[ 817.115662] ath_pci: Unknown symbol _ath_hal_attach
[ 817.116126] ath_pci: Unknown symbol ath_hal_process_noisefloor
[ 817.117720] ath_pci: Unknown symbol ath_hal_computetxtime
[ 817.119079] ath_pci: Unknown symbol ath_hal_mhz2ieee
[ 817.119577] ath_pci: Unknown symbol ath_hal_detach
[ 817.121858] ath_pci: Unknown symbol ath_hal_probe
[ 817.124788] ath_pci: Unknown symbol ath_hal_init_channels
[ 817.125912] ath_pci: Unknown symbol ath_hal_getwirelessmodes


mark@Lexington:/lib/modules/2.6.20-16-386/madwifi$ modprobe -a
Usage: modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-Q] [-b] [-o <modname>] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
mark@Lexington:/lib/modules/2.6.20-16-386/madwifi$
 
Old 07-22-2007, 09:02 AM   #4
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
"mark@Lexington:~$ cat /etc/modprobe.d/ndiswrapper
alias wlan0 ndiswrapper"

Remark that line out and blacklist ndiswrapper. You don't want it loading as well.

Here's a link to the MadWiFi FAQ that talks about unresolved symbols: http://madwifi.org/wiki/FAQ/ModuleLoadProblems

For what I can see with Google, most of the folks with the same errors as you list fixed it with a different kernel, a different binary compiled for their kernel or firmware from a differnt kernel.

Make sure the firmware is installed.
 
  


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
Unable to load madwifi driver madwifi-0.9.4-38_r2512.el5 louisb Linux - Wireless Networking 3 07-21-2007 08:15 PM
pl2303 attached to ttyUSB0 but driver attached to device is "serial" sheeluh Linux - Software 4 03-12-2007 04:27 AM
using DWL-520 -G Athereos card for wireless with MADWIFI driver and aircrack-ng tool fundoos4me Linux - Wireless Networking 1 01-05-2007 01:40 AM
Install Madwifi On PCI Card? inVINCEable667 Linux - Hardware 2 03-28-2006 08:07 PM
configure wireless card with FC3/Xos or linux useing Madwifi driver irfanbhatti Linux - Wireless Networking 0 11-07-2005 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:27 AM.

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