You are not logged in.

#1 2008-04-29 14:38:25

bioe007
Member
Registered: 2007-11-12
Posts: 56

[solved] wireless doesn't start at boot

I have BCM94311MCG wlan mini-PCI (rev 01) which works with b43 + wpa_supplicant nicely, except I can't seem to get to automagically start at boot time.

wlan0 always times out (wired connects at boot time just fine). I'd like my laptop to automatically connect to one of two networks, else remain disconnected.

Once started I can always netcfg2 <network name> and it connects no problem... I must have missed something in the wireless setup but I can't find what it is.

my rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="yes"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

#
MOD_AUTOLOAD="yes"
MOD_BLACKLIST=(!pcspkr !bcm43xx !ndiswrapper ) #deprecated
MOD_LOADLIST=(acpi-cpufreq cpufreq_ondemand slhc i8k tg3 fuse b43 ppdev snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)

MODULES=( ${MOD_BLACKLIST[@]} ${MOD_LOADLIST[@]} )

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
HOSTNAME="myhostname"

# Interfaces to start at boot-up (in this order)
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(eth0 wlan0)

# Routes to start at boot-up (in this order)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
#
NETWORKS=("auto-wireless wlan0")

# -----------------------------------------------------------------------
# DAEMONS
#
DAEMONS=(syslog-ng iptables @network @fusesmb @cups !netfs !crond @alsa @hal @dbus @fam @acpid @laptop-mode @cpufreq)

afaik the only unique thing I have in rc.conf is my fusesmb daemon (a script that mounts samba shares)

and my network.d/<network name>

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa-config"
ESSID="BCSI"
IP="dhcp"
TIMEOUT=20

when I look for wpa_supplicant after a boot, it is not running ( ps aux | grep wpa ).

wlan0 is up right after boot:

$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:15:C5:08:1E:1C  
          inet addr:10.1.1.148  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::215:c5ff:fe08:1e1c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14443 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13281 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8031647 (7.6 Mb)  TX bytes:2248854 (2.1 Mb)
          Interrupt:19 

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:1221 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:75880 (74.1 Kb)  TX bytes:75880 (74.1 Kb)

wlan0     Link encap:Ethernet  HWaddr 00:16:CE:67:85:B5  
          inet addr:169.254.55.57  Bcast:169.254.255.255  Mask:255.255.0.0
          UP 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)

wmaster0  Link encap:UNSPEC  HWaddr 00-16-CE-67-85-B5-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING 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)

but since wpa_supplicant isn't running, it won't associate.

I'm misunderstading (I think) how netcfg2 is used during startup, I thought the line  `NETWORKS=("auto-wireless wlan0")` would tell netcfg2 to try /etc/network.d/*

thanks for looking

Last edited by bioe007 (2008-04-30 14:19:12)

Offline

#2 2008-04-29 15:45:14

lexiw
Member
Registered: 2008-04-29
Posts: 46

Re: [solved] wireless doesn't start at boot

From: http://wiki.archlinux.org/index.php/Network_Profiles
"Ensure that net-profiles is in your rc.conf DAEMONS=() line."

Offline

#3 2008-04-29 17:56:34

bioe007
Member
Registered: 2007-11-12
Posts: 56

Re: [solved] wireless doesn't start at boot

clearly i'm too stupid to read the entire wiki page.

thanks

Last edited by bioe007 (2008-04-29 17:58:38)

Offline

Board footer

Powered by FluxBB