| View previous topic :: View next topic |
| Author |
Message |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Mon Jan 22, 2007 5:58 pm Post subject: madwifi-ng doesn't create any interfaces |
|
|
I've emerged madwifi-ng 0.9.2.1 without problem (and madwifi-tools 0.9.2 and wireless-tools 28). I'm running gentoo kernel 2.6.18-r6 with wireless extensions compiled in. I can modprobe ath_pci just fine, but no interface gets created, not ath0 nor wifi0. My WLAN-card is:
| Code: | | 00:05.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01) |
dmesg shows:
| Code: | ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (0.9.2.1)
ath_rate_sample: 1.2 (0.9.2.1)
ath_pci: 0.9.4.5 (0.9.2.1)
|
Does anyone have a clue what might be wrong? _________________ /Peter Welzien
Last edited by PeterWelzien on Wed Jan 24, 2007 8:23 pm; edited 2 times in total |
|
| Back to top |
|
 |
Moji Tux's lil' helper


Joined: 04 Nov 2006 Posts: 121
|
Posted: Mon Jan 22, 2007 9:07 pm Post subject: |
|
|
Wireless can be a bit flakey. Have you tried using the init script after you modprobed?
| Code: | | /etc/init.d/net.ath0 start |
If you can do a all of the following and post the results, might give a little more info on your problem.
-MJ |
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Tue Jan 23, 2007 9:33 pm Post subject: |
|
|
net.ath0 doesn't exist. If I make a link to net and then run net.ath0 start nothing happens.
ifconfig -a:
| Code: | eth0 Link encap:Ethernet HWaddr 00:20:ED:2D:E0:10
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2185 errors:0 dropped:0 overruns:0 frame:0
TX packets:2114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:181486 (177.2 Kb) TX bytes:1331096 (1.2 Mb)
eth1 Link encap:Ethernet HWaddr 00:20:ED:2D:E0:11
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|
eth0 and eth1 are NICs integrated on the motherboard.
lspci:
| Code: | 00:00.0 Host bridge: Broadcom CNB20LE Host Bridge (rev 06)
00:00.1 Host bridge: Broadcom CNB20LE Host Bridge (rev 06)
00:05.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
00:07.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 08)
00:08.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 08)
00:09.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
00:0f.0 ISA bridge: Broadcom OSB4 South Bridge (rev 50)
00:0f.1 IDE interface: Broadcom OSB4 IDE Controller
00:0f.2 USB Controller: Broadcom OSB4/CSB5 OHCI USB Controller (rev 04)
|
iwconfig:
| Code: | eth0 no wireless extensions.
eth1 no wireless extensions.
lo no wireless extensions.
|
I used to use this wlan card on a machine running Slackware without any troubles. I used a madwifi CVS snapshot and it was rock steady. This was a year ago though. _________________ /Peter Welzien |
|
| Back to top |
|
 |
madisonicus Veteran


Joined: 20 Sep 2006 Posts: 1130
|
Posted: Tue Jan 23, 2007 10:11 pm Post subject: |
|
|
Have you done a Did it give any errors? That should create the interface. You might have to ifconfig -a to see it though. If it doesn't, then | Code: | | # wlanconfig ath0 create wlandev wifi0 wlanmode sta |
Come to think of it... All this stuff is in the Madwifi HowTo.
HTH,
m _________________ Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC |
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Wed Jan 24, 2007 8:22 am Post subject: |
|
|
I have run 'modprobe ath_pci'. It loads a couple of other modules as well. I don't get any errors. I don't see any wlan interfaces with 'ifconfig -a'. I've tried running wlanconfig but it doesn't work since there's no wifi0 device. _________________ /Peter Welzien |
|
| Back to top |
|
 |
canabix67 Tux's lil' helper

Joined: 27 Jul 2006 Posts: 106
|
Posted: Wed Jan 24, 2007 9:32 am Post subject: |
|
|
Your interface will be called ath0 not wifi0,
Try or that | Code: | | /etc/init.d/net.ath0 start |
And give us the recult of that if it doesn't work... ;o) |
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Wed Jan 24, 2007 9:34 am Post subject: |
|
|
I don't have an ath0 interface so I can't do an ifconfig ath0. That's the problem. _________________ /Peter Welzien |
|
| Back to top |
|
 |
canabix67 Tux's lil' helper

Joined: 27 Jul 2006 Posts: 106
|
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Wed Jan 24, 2007 11:32 am Post subject: |
|
|
I've followed those instructions, but since the madwifi module doesn't create any wlan interfaces I can't do anything.
I need to get an ath0 interface before I can even try to get the wireless network working. _________________ /Peter Welzien |
|
| Back to top |
|
 |
canabix67 Tux's lil' helper

Joined: 27 Jul 2006 Posts: 106
|
Posted: Wed Jan 24, 2007 12:17 pm Post subject: |
|
|
I can't remember now, but I think you have to create it yourself...
# cd /etc/init.d
# ln -s net.lo net.ath0
# ./net.ath0 start |
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Wed Jan 24, 2007 1:19 pm Post subject: |
|
|
ath_pci is supposed to created it automatically, but it don't. You can also create it yourself from the interface wifi0 using 'wlancreate'. But since I don't have a wifi0 interface either, it doesn't work.
I've had madwifi working under Slackware without any problems whatsoever. Tonight I'm going to unmerge madwifi and manually download a tar ball and compile it and see if that works. _________________ /Peter Welzien |
|
| Back to top |
|
 |
tenorism n00b

Joined: 25 Nov 2005 Posts: 9 Location: Greece
|
Posted: Wed Jan 24, 2007 2:02 pm Post subject: |
|
|
| PeterWelzien wrote: | | I have run 'modprobe ath_pci'. It loads a couple of other modules as well. I don't get any errors. I don't see any wlan interfaces with 'ifconfig -a'. I've tried running wlanconfig but it doesn't work since there's no wifi0 device. |
When you "modprobe ath_pci" you can see your iface with iwconfig. Then you have to start the iface. As mentioned before you have to
cp /etc/init.d/net.eth0 /etc/init.d/net.ath0
and then
/etc/init.d/net.ath0 start
and see if you get any errors
when you are done and you have a manual ip or from a dhcp server then you will see your iface with ifconfig.
Also try to see what you get from dmesg and if your iface is recognized as ath0 or ath1 or whatever athX. |
|
| Back to top |
|
 |
madisonicus Veteran


Joined: 20 Sep 2006 Posts: 1130
|
Posted: Wed Jan 24, 2007 2:09 pm Post subject: |
|
|
If modprobing doesn't create the interface, this command does | Code: | | # wlanconfig ath0 create wlandev wifi0 wlanmode sta |
Also check the Madwifi HowTo for other troubleshooting hints. _________________ Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC |
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Wed Jan 24, 2007 6:42 pm Post subject: |
|
|
This is very strange, now it's working. When I modprobe ath_pci it loads a modules it hasn't loaded before, wlan_scan_sta, and creates ath0.
Well, I don't know what I've done, but it's working. Thank you everyone who has tried to help me. _________________ /Peter Welzien |
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Wed Jan 24, 2007 8:26 pm Post subject: |
|
|
One more question: how do I make net.ath0 automatically load the modules? I have to load them manually now before I run '/etc/init.d/net.ath0 start'. _________________ /Peter Welzien |
|
| Back to top |
|
 |
Cieslo n00b

Joined: 09 Jan 2007 Posts: 30 Location: Katowice, Poland
|
Posted: Thu Jan 25, 2007 8:49 am Post subject: |
|
|
| you need to edit /etc/modules.autoload.d/kernel-2.6 (or kernel-2.4) and add them to the file |
|
| Back to top |
|
 |
Moji Tux's lil' helper


Joined: 04 Nov 2006 Posts: 121
|
Posted: Thu Jan 25, 2007 11:00 pm Post subject: |
|
|
These are the modules that have I added to my /etc/modules.autoload.d/kernel-2.6 in order to get my madwifi working correctly. Just listing them so you'll have something to compare to, I saw a post fairly recently where they mentioned that wlan_tkip doesn't always load correctly as a dependency.
| Code: | ath_pci autocreate=ap
wlan_scan_ap
wlan_ccmp
wlan_xauth
wlan_tkip
wlan_scan_sta
ath_rate_sample
ath_hal |
-MJ |
|
| Back to top |
|
 |
PeterWelzien n00b

Joined: 22 Jan 2007 Posts: 13
|
Posted: Fri Jan 26, 2007 6:12 pm Post subject: |
|
|
But I don't want them to load automatically when the system boots. Only when I start the ath0 interface. Is that possible? _________________ /Peter Welzien |
|
| Back to top |
|
 |
Moji Tux's lil' helper


Joined: 04 Nov 2006 Posts: 121
|
Posted: Fri Jan 26, 2007 11:58 pm Post subject: |
|
|
Yeah just make a script that modprobes them all and then start up the interface. Then just run the script instead of the /etc/init/net.ath0 dealio.
Create a file where you want the script.
| Code: | | touch /root/wlan_script_ath0 |
open it up with nano
| Code: | | nano /root/wlan_script_ath0 |
copy all of the following into the file.
| Code: | #!/bin/sh
modprobe ath_pci autocreate=ap
modprobe wlan_scan_ap
modprobe wlan_ccmp
modprobe wlan_xauth
modprobe wlan_tkip
modprobe wlan_scan_sta
modprobe ath_rate_sample
modprobe ath_hal
/etc/init.d/net.ath0 start |
Then just change the permissions.
| Code: | | chmod 750 /root/wlan_script_ath0 |
Now all you have to do is run the script to modprobe everything and then start up the interface
| Code: | | /root/wlan_script_ath0 |
-MJ |
|
| Back to top |
|
 |
phil_r Apprentice


Joined: 14 Mar 2006 Posts: 186 Location: Lincoln, NE, USA
|
Posted: Tue Feb 20, 2007 6:43 pm Post subject: |
|
|
I had the same problem as in Peter's first post (no wifi0 created therefore there could be no ath0). In my case, it was that I'd forgotten to compile in CardBus support for the kernel
D'oh!
Phil.
PS - If anyone tries to find it, CardBus support is under the PCMCIA section in the menuconfig. _________________ Just when you think you know the answers, I change the questions.
AMD64 Phenom-II 6-core, 5Tb SATA II, 8192Mb, 1Gb Ethernet, GeForce GTS 250, ~x64
Dell Latitude D630 Mac HackBook |
|
| Back to top |
|
 |
hurvajs n00b


Joined: 31 Mar 2007 Posts: 3 Location: Czech republic, Prague
|
Posted: Sat Mar 31, 2007 8:28 pm Post subject: same problem |
|
|
Hi,
I have a same problem. All modules loaded, I read manual, this forum, but I dont resolve my problem.
kernel:
dmesg: | Code: | ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (0.9.2.1)
ath_rate_sample: 1.2 (0.9.2.1)
ath_pci: 0.9.4.5 (0.9.2.1)
...
wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status 13) |
lsmod: | Code: | rfcomm 33896 7
l2cap 20096 5 rfcomm
wlan_scan_sta 12416 0
wlan_tkip 11392 0
wlan_xauth 1984 0
wlan_ccmp 7808 0
wlan_scan_ap 5248 0
pcmcia 32344 0
pcmcia_core 34340 1 pcmcia
ath_pci 84968 0
ath_rate_sample 13568 1 ath_pci
wlan 176992 7 wlan_scan_sta,wlan_tkip,wlan_xauth,wlan_ccmp,wlan_scan_ap,ath_pci,ath_rate_sample
ath_hal 216304 2 ath_pci,ath_rate_sample
nvidia 7753112 22
snd_hda_intel 17504 1
snd_hda_codec 192256 1 snd_hda_intel
snd_pcm 66632 2 snd_hda_intel,snd_hda_codec
snd_timer 19528 1 snd_pcm
snd 50216 6 snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
soundcore 6944 1 snd
snd_page_alloc 8016 2 snd_hda_intel,snd_pcm
sdhci 16780 0
mmc_core 22984 1 sdhci
hci_usb 16284 6
bluetooth 46532 15 rfcomm,l2cap,hci_usb
i2c_core 18880 1 nvidia
shpchp 30044 0
pci_hotplug 14344 1 shpchp |
Help me someone? |
|
| Back to top |
|
 |
wyv3rn Apprentice

Joined: 18 Aug 2005 Posts: 154 Location: USA
|
Posted: Fri Apr 06, 2007 6:28 am Post subject: |
|
|
| If I recall madwifi-ng-0.9.2 is not compatible with kernel 2.6.20. Try madwifi-ng-0.9.3/madwifi-ng-tools-0.9.3. |
|
| Back to top |
|
 |
Paczesiowa Guru

Joined: 06 Mar 2006 Posts: 593 Location: Oborniki Śląskie, Poland
|
Posted: Fri Apr 06, 2007 3:01 pm Post subject: |
|
|
| I got 2.6.19-gentoo-r7 and madwifi-ng-0.9.3 doesn't create interfaces ( and I do know what is wlanconfig for). it works great with 0.9.2.1 though. hope that helps someone. |
|
| Back to top |
|
 |
wyv3rn Apprentice

Joined: 18 Aug 2005 Posts: 154 Location: USA
|
Posted: Fri Apr 06, 2007 3:18 pm Post subject: |
|
|
| The interfaces are supposed to be created automatically on module load, wlanconfig is not necessary for the initial interface. Do you still have an old /etc/udev.d/rules.d/65-madwifi.rules hanging around? What kind of card is it (cardbus, pci, etc.)? Did you recompile madwifi-ng-0.9.3 and madwifi-ng-tools-0.9.3? Please post lsmod and dmesg output. |
|
| Back to top |
|
 |
sheriff-jms Tux's lil' helper


Joined: 28 May 2004 Posts: 79 Location: Pittsburgh, PA, USA
|
Posted: Mon Apr 09, 2007 3:41 am Post subject: |
|
|
Madwifi 0.9.3-r2 doesn't appear to play nicely with my kernel (2.6.19-r5).
I saw the same problems as other in this thread had reported, i.e. the system wouldn't create an "ath" or "wifi" interface, so net.ath0 wouldn't do anything. Looking in dmesg, I also saw an error about my kernel not supporting automatic module loading, which is not correct. This was making the 'ath_rate_sample' module unhappy.
I rolled back to madwifi 0.9.2.1 and my wireless interface fired right back up.
I guess I'll hold off on upgrading to madwifi 0.9.3 (or newer) until I upgrade to a 2.6.20 (or newer) kernel. |
|
| Back to top |
|
 |
|