You are not logged in.

#1 2007-01-18 23:28:04

ask2
Member
Registered: 2006-10-05
Posts: 15

help with wireless setup, acer aspire 3000 [SOLVED]

Hi

I have a ACER Aspire 3000 laptop with a SIS900 network card.
I also have a wrt54gl wireless router that works just fine when running with a cable.

I have tried to follow the wiki and other tutorials but I have no luck at all to get wireless to work.

Would be really really grateful for some tips to get me on the right track and to get wireless working.

Here are som data that might be of interest.

----------------------------------
wrt54gl with dd-wrt v23 sp2

Wireless basic router settings:
Wireless mode AP
Wireless network Mode Mixed
SSID wrt54gl
Wireless SSID Broadcast Enable
ACK Timing 2000

------
/etc/conf.d/wireless
wlan_wlan0="wlan0 essid wrt54gl channel 6"
WLAN_INTERFACES=(wlan0)

------
/etc/rc.conf
..
..
MOD_AUTOLOAD="yes"
MOD_BLACKLIST=()
MODULES=(!pcspkr powernow_k8 cpufreq-userspace snd-via82xx snd-pcm-oss snd-mixer-oss snd-seq-oss fuse ndiswrapper)
USELVM="no"

lo="lo 127.0.0.1"
wlan0="dhcp"
#eth0="dhcp"
INTERFACES=(lo !eth0 wlan0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
DAEMONS=(syslog-ng !hotplug !pcmcia network netfs @crond @alsa @powernowd)


-------

etc /etc/rc.d/network restart
:: Stopping Network                                                      [DONE]
:: Starting Network                                                      [FAIL]

-------
ndiswrapper -l
bcmwl5 : driver installed
   device (14E4:4318) present (alternate driver: bcm43xx)
--------
iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11g  ESSID:off/any 
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Bit Rate:54 Mb/s   Tx-Power:25 dBm   
          RTS thr:2347 B   Fragment thr:2346 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

---------
Rgds Joakim

Offline

#2 2007-01-19 16:37:15

n8schicht
Member
From: Südbaden
Registered: 2006-12-27
Posts: 138
Website

Re: help with wireless setup, acer aspire 3000 [SOLVED]

Well, I don't know about ndiswrapper because my Atheros-based card doesn't need that. But it seems that you did that part right and your driver is loaded by ndiswrapper.

Here is what I did, maybe it helps you too. I have 2 NICs in my PC, so don't be confused by eth0  wink

1) /etc/rc.conf

MODULES=(8139too mii snd-intel8x0 [b]ath_pci[/b] evdev i2c-nforce2 eeprom asb100 w83l785ts) 

lo="lo 127.0.0.1"
eth0="eth0 192.168.3.217 netmask 255.255.255.0 broadcast 192.168.3.255"
ath0="ath0 192.168.1.217 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(lo eth0 ath0)

gateway="default gw 192.168.3.1"
ROUTES=(gateway)

# NET_PROFILES=(main)

DAEMONS=(syslog-ng network dbus hal alsa netfs crond diablo_wpa samba timidity++ sensors !vboxdrv)

Notice the diablo_wpa in DAEMONS. It's a script that will start wpa_supplicant (see below).

2) /etc/rc.d/diablo_wpa

#! /bin/sh
/usr/sbin/wpa_supplicant -D wext -i ath0 -c /etc/wpa_supplicant.conf -B

3) Generate the WPA-Passphrase:

/usr/sbin/wpa_passphrase MYSSID MYSECRETPASSPHRASE

4) /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

network={
    ssid="MYSSID"
    scan_ssid=1
    psk=285a2629780a423a68425674eb55e73f8d3ae2ec4fcff789b435fe32f1ac2bdb
    key_mgmt=WPA-PSK
    proto=WPA
    pairwise=TKIP
    group=TKIP
    priority=9
    }


Done. Hope this works for you, too...

Offline

#3 2007-01-19 21:58:39

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: help with wireless setup, acer aspire 3000 [SOLVED]

n8schicht: there's scripts which automate that for you, same for you ask2.

Take a look at the network-profiles at /etc/network-profiles, and modify the default one there to your liking and rename it.

Then to have it start on boot, add it to NETWORK_PROFILES In /etc/rc.conf

James

Offline

#4 2007-01-19 22:32:19

ask2
Member
Registered: 2006-10-05
Posts: 15

Re: help with wireless setup, acer aspire 3000 [SOLVED]

Thanks for the tips.

Things look a little bit brighter without complete success yet though.

in /var/log/everything.log i get
.....ADDRCONF(NETDEV_UP): eth0: link is not ready
....dhcpd[3048]: timed out waiting for a valid DHCP server

the network lamp blinks and my small network applet shows Tx going up and down some times before getting quiet again.

I changed my driver from ndiswrapper but I am stuck again. It's really hard to find any information about these things.

Thanks for the help so far!

/Ask2

Offline

#5 2007-01-19 23:04:40

n8schicht
Member
From: Südbaden
Registered: 2006-12-27
Posts: 138
Website

Re: help with wireless setup, acer aspire 3000 [SOLVED]

iphitus wrote:

n8schicht: there's scripts which automate that for you, same for you ask2.

Take a look at the network-profiles at /etc/network-profiles, and modify the default one there to your liking and rename it.

Then to have it start on boot, add it to NETWORK_PROFILES In /etc/rc.conf

James

Thanks, I know about that, but old habits... you know  wink
I actually tried it with those scripts in the beginning, but couldn't get it to work, that's why I changed it back to "my old method", and it works really good!

Offline

#6 2007-01-20 22:09:34

ask2
Member
Registered: 2006-10-05
Posts: 15

Re: help with wireless setup, acer aspire 3000 [SOLVED]

Thanks alot everybody!

I finally got it working.

Here are some relevant info:
Acer Aspire 3000

lspci | egrep -i broad
00:0b.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)

pacman -Qi | grep ndiswrapper
ndiswrapper-beyond 1.31-1
ndiswrapper-utils 1.31-1

ndiswrapper -i bcmwl5.inf
ndiswrapper -l
bcmwl5 : driver installed
    device (14E4:4318) present (alternate driver: bcm43xx)
ndiswrapper -m
depmod -a

/etc/rc.conf

MODULES=(!pcspkr ndiswrapper  powernow_k8 cpufreq-userspace snd-via82xx snd-pcm-oss snd-mixer-oss snd-seq-oss fuse)

lo="lo 127.0.0.1"
wlan0="dhcp"
INTERFACES=(lo !wlan0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
NET_PROFILES=(main)

/etc/network-profiles/main

INTERFACE=wlan0
HOSTNAME=myhost2
IFOPTS="dhcp"
GATEWAY=192.168.1.1
ESSID=myessid
IWOPTS="mode managed essid $ESSID channel 8"
USEWPA="yes"
WPAOPTS=""
AUTOWPA="yes"
PASSKEY="mypasswd"

The router wrt54gl running dd-wrt

Wireless mode AP
Wireless network mode Mixed
SSID myessid
Wireless channel 8
Wireless SSID broadcast Enabled
ACK timing 2000

Security mode WPA Pre-Shared Key
WPA Algorithms TKIP
WPA Shared Key mypasswd
Key Renewal Interval 3600

I think that was it? Have I missed something?

/Ask2

Offline

#7 2007-01-21 10:19:32

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: help with wireless setup, acer aspire 3000 [SOLVED]

For quick wifi reconfiguration and automagic roaming try wpa_supplicant (not so automatic) or networkmanager (not so lightweight)


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#8 2007-01-29 20:01:46

systemservers
Member
From: California
Registered: 2007-01-28
Posts: 4
Website

Re: help with wireless setup, acer aspire 3000 [SOLVED]

I solved my wpa_supplicant issues by "daemonizing" wpa_supplicant.
This config is for my generic (airlink101 brand) atheros based pccard. in a "Sagre" p4 laptop. Other configs seem to work with wpa_supplicant as a "saemon" as well.
The following is the contents of my script "wpa_supplicant_ath0" in /etc/rc.d
the conf is automaticly placed in /var/lib/wpa_supplicant and the permissions need to be adjusted for your preference, I set up "wheel"
be sure to add "ifplugd wpa_supplicant_ath0" ahead of  network netfs          in rc.conf.
install wpa_supplicant ifplugd madwifi
do not configure wireless
do configure ifplugd and rc.conf
add a menu item in X for wpa_gui (use kdesu,etc" or from console use wpa_cli to set up.
It is based (loosely" on the script for mysqld daemon:
********************************************************

#!/bin/bash

WPA_SUPPLICANT_ROOT="/var/lib/wpa_supplicant"
# source application-specific settings

# general config
. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID /usr/sbin/wpa_supplicant`

if [ ! -d $WPA_SUPPLICANT_ROOT ]; then
  mkdir $WPA_SUPPLICANT_ROOT
  cp /etc/wpa_supplicant.conf $WPA_SUPPLICANT_ROOT/wpa_supplicant_ath0.conf
  chown -R root.wheel $WPA_SUPPLICANT_ROOT
fi

case "$1" in
  start)
    stat_busy "Starting wpa_supplicant"
    if [ -z "$PID" ]; then
       /usr/sbin/wpa_supplicant -Bw -iath0 -Dmadwifi -c$WPA_SUPPLICANT_ROOT/wpa_supplicant_ath0.conf  &>/dev/null &
      if [ $? -gt 0 ]; then
        stat_fail
        exit 1
      else
        sleep 1 # wait on children
        PID=`pidof -o %PPID /usr/sbin/wpa_supplicant`
        if [ -z "$PID" ]; then
          stat_fail
          exit 1
        else
          echo $PID >/var/run/wpa_supplicant.pid
          add_daemon wpa_supplicant
          stat_done
        fi
      fi
    else
      stat_fail
      exit 1
    fi
    ;;

  stop)
    stat_busy "Stopping wpa_supplicant"
    if [ ! -z "$PID" ]; then
      kill $PID &> /dev/null     
      if [ $? -gt 0 ]; then
        stat_fail
        exit 1
      else
        rm -f /var/run/wpa_supplicant.pid &>/dev/null
        rm_daemon wpa_supplicant
        stat_done
      fi
    else
      stat_fail
      exit 1
    fi
    ;;

  restart)
    $0 stop
    sleep 3
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}" 
esac
exit 0

Offline

Board footer

Powered by FluxBB