You are not logged in.

#1 2007-12-30 16:40:56

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Trouble with madwifi

First time install of arch linux, followed the user guide, got it up and running, installed mad wifi but now I have a problem

[jduvall@arch ~]$ dmesg | tail
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
atkbd.c: Unknown key pressed (translated set 2, code 0xb4 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e034 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xb4 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e034 <keycode>' to make it known.
process `sysctl' is using deprecated sysctl (syscall) net.ipv6.neigh.default.retrans_time; Use net.ipv6.neigh.default.retrans_time_ms instead.
ath0: no IPv6 routers present

[jduvall@arch ~]$ lspci
08:04.0 Ethernet controller: Atheros Communications, Inc. AR2413 802.11bg NIC (rev 01)


My system seems to think my aethros card is an eth card not a wireless card.


Heres my networking from rc.conf, I may have set this part up right never done it before

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="arch"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0 wlan0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(wifi)

#

The card worked in the past with just madwifi under debian suse and ubuntu, I'm not sure how to get it working here though.  Any help much appreicated

Arch64
1gig ram

Offline

#2 2007-12-31 08:27:12

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Trouble with madwifi

My lspci output tells me I have the same card. No problems here.
Your dmesg output also lacks everything about madwifi, where are those messages? Did you run pacman -Syu to ensure your kernel and external modules match?
Also, you have a wlan0 interface in rc.conf that's not defined anywhere (and madwifi uses ath0 by default anyway).

Last edited by byte (2007-12-31 08:28:25)


1000

Offline

#3 2007-12-31 16:45:05

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Trouble with madwifi

here is my setup with the exact same card as yours using madwifi drivers...  I don't use wifi-radar or anything like this since I only connect to a single wifi network, so the configuration for wifi-radar and wicd is likely to be a bit different - see the wiki for details about configuring those...

Anyways, here is my /etc/rc.conf (just the relevant lines from the "networking" section):

#lo="lo 127.0.0.1"
ath0="dhcp"
INTERFACES=(ath0)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

And here is my /etc/conf.d/wireless (put in the details of your wifi network, of course):

wlan_ath0="ath0 essid ####### key ##########################"
WLAN_INTERFACES=(ath0)

And then "/etc/rc.d/network restart" as root and you should be connected.

Offline

#4 2007-12-31 23:53:44

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: Trouble with madwifi

fwojciec wrote:

here is my setup with the exact same card as yours using madwifi drivers...  I don't use wifi-radar or anything like this since I only connect to a single wifi network, so the configuration for wifi-radar and wicd is likely to be a bit different - see the wiki for details about configuring those...

Anyways, here is my /etc/rc.conf (just the relevant lines from the "networking" section):

#lo="lo 127.0.0.1"
ath0="dhcp"
INTERFACES=(ath0)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

And here is my /etc/conf.d/wireless (put in the details of your wifi network, of course):

wlan_ath0="ath0 essid ####### key ##########################"
WLAN_INTERFACES=(ath0)

And then "/etc/rc.d/network restart" as root and you should be connected.

That fixed it! Thank you so much!

Now to figure out my firefox issue

Offline

#5 2008-01-01 01:28:17

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Trouble with madwifi

If the problem with firefox is that you've installed it but it doesn't start when you try to run it...  Log out and log back in again and try running it again.  If it's something else let us know.

Offline

#6 2008-01-01 01:54:19

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: Trouble with madwifi

Hit a snag with wireless..

It works but its horribly slow!  What console commands do I need to run to debug?

OT: this distro is very interesting, good though

Offline

#7 2008-01-01 02:14:17

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Trouble with madwifi

"iwconfig" as root will let you know the network connection details.
another thing you could do is disable ipv6: http://wiki.archlinux.org/index.php/IPv … the_Module
or try static ip address, though I'm not sure if this is going to speed things up...
this is what rc.conf with static ip might look like:

ath0="ath0 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255"
#ath0="dhcp"
INTERFACES=(ath0)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

Changes relative to dhcp setup in bold.

Offline

#8 2008-01-01 02:29:18

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: Trouble with madwifi

Ok iwconfig showed me I was on the wrong network, peaking at wireless conf shows that I left the " opened...closing fixed

Thanks so much

Offline

#9 2008-01-10 01:05:21

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: Trouble with madwifi

[root@arch jduvall]# /etc/rc.d/network restart
/etc/rc.conf: line 70: syntax error near unexpected token `('
/etc/rc.conf: line 70: `ROUTES=(!gateway)'
/etc/rc.conf: line 70: syntax error near unexpected token `('
/etc/rc.conf: line 70: `ROUTES=(!gateway)'
/etc/rc.conf: line 70: syntax error near unexpected token `('
/etc/rc.conf: line 70: `ROUTES=(!gateway)'
:: Stopping Network                                                      [DONE]
/etc/rc.conf: line 70: syntax error near unexpected token `('
/etc/rc.conf: line 70: `ROUTES=(!gateway)'

I'm getting this error all of the sudden (switching from wired to wifi)

Heres the part from rc.conf

# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
#lo="lo 127.0.0.1"
eth0="dhcp"
ath0="dhcp"
INTERFACES=(#lo eth0 ath0)

Last edited by Elvish Legion (2008-01-10 01:09:20)

Offline

#10 2008-01-10 02:13:01

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Trouble with madwifi

Get rid of that "#lo" from INTERFACES list, just remove it completely.

Last edited by fwojciec (2008-01-10 02:13:18)

Offline

Board footer

Powered by FluxBB