Temat: Problem z odpaleniem atherosa 5211

Mam Openwrt 8.09.1 x86 na Neoware.
Wsadziłem do tego kartę PCI wifi  TL-WN551G z atherosem 5211.
Zainstalowałem najpierw kmod-madwifi - bez efektu a potem kmod-ath54.
Mimo różnych kombinacji efekt ciągle podobny:
Ładują sie modułu (czyli widzi kartę) - wyciąg z lsmod:

ath_hal               246144  2 ath_pci,ath_rate_minstrel
wlan_scan_sta           6272  0
wlan_scan_ap            4864  0
wlan                  128496  9 ath_pci,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,wlan_acl,ath_rate_minstrel,wlan_scan_sta,wlan_scan_ap
ath5k                  82560  0
natsemi                19040  0
mac80211              125340  1 ath5k
cfg80211               19080  2 ath5k,mac80211

W /proc/sys/dev mam coś wskazujacego na budzenie się atherosa:

# ls -lR /proc/sys/dev
/proc/sys/dev:
dr-xr-xr-x    0 root     root            0 Sep 17 20:51 ath
dr-xr-xr-x    0 root     root            0 Sep 17 20:51 rtc

/proc/sys/dev/ath:
-rw-r--r--    1 root     root            0 Sep 17 20:51 calibrate
dr-xr-xr-x    0 root     root            0 Sep 17 20:51 hal
-r--r--r--    1 root     root            0 Sep 17 20:51 maxvaps
-r--r--r--    1 root     root            0 Sep 17 20:51 xchanmode

/proc/sys/dev/ath/hal:
-rw-r--r--    1 root     root            0 Sep 17 20:51 dma_beacon_response_time
-rw-r--r--    1 root     root            0 Sep 17 20:51 sw_beacon_response_time
-rw-r--r--    1 root     root            0 Sep 17 20:51 swba_backoff

/proc/sys/dev/rtc:
-rw-r--r--    1 root     root            0 Sep 17 20:51 max-user-freq

Ale iwconfig nie znajduje nic wifi

# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

br-lan    no wireless extensions.

ani nie działa wifi up:

# wifi up
/sbin/wifi: eval: line 1: cannot create /proc/sys/dev/wifi0/countrycode: nonexistent directory
/sbin/wifi: eval: line 1: cannot create /proc/sys/dev/wifi0/outdoor: nonexistent directory
wlanconfig: ioctl: No such device
enable_atheros(wifi0): Failed to set up ap vif

Tak jakby coś oczekiwało na wifi0 a to się nie tworzy...

lograd pokazuje

Sep 17 19:35:11 stodola user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Sep 17 19:35:11 stodola user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
Sep 17 19:35:11 stodola user.warn kernel: Using IPI Shortcut mode
Sep 17 19:35:11 stodola user.info kernel: input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input1
Sep 17 19:35:11 stodola user.warn kernel: VFS: Mounted root (jffs2 filesystem) readonly.
Sep 17 19:35:11 stodola user.info kernel: Freeing unused kernel memory: 156k freed
Sep 17 19:35:11 stodola user.warn kernel: Please be patient, while OpenWrt loads ...
Sep 17 19:35:11 stodola user.debug kernel: ieee80211_crypt: registered algorithm 'NULL'
Sep 17 19:35:11 stodola user.info kernel: ieee80211: 802.11 data/management/control stack, git-1.1.13
Sep 17 19:35:11 stodola user.info kernel: ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
Sep 17 19:35:11 stodola user.debug kernel: ieee80211_crypt: registered algorithm 'WEP'
Sep 17 19:35:12 stodola user.debug kernel: ieee80211_crypt: registered algorithm 'TKIP'
Sep 17 19:35:12 stodola user.debug kernel: ieee80211_crypt: registered algorithm 'CCMP'
Sep 17 19:35:12 stodola user.info kernel: natsemi dp8381x driver, version 2.1, Sept 11, 2006
Sep 17 19:35:12 stodola user.info kernel:   originally by Donald Becker <becker@scyld.com>
Sep 17 19:35:12 stodola user.info kernel:   2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
Sep 17 19:35:12 stodola user.info kernel: PPP generic driver version 2.4.2
Sep 17 19:35:12 stodola user.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Sep 17 19:35:12 stodola user.warn kernel: nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
Sep 17 19:35:12 stodola user.info kernel: 8139too Fast Ethernet driver 0.9.28
Sep 17 19:35:12 stodola user.debug kernel: PCI: setting IRQ 11 as level-triggered
Sep 17 19:35:12 stodola user.info kernel: PCI: Found IRQ 11 for device 0000:00:09.0
Sep 17 19:35:12 stodola user.info kernel: eth0: RealTek RTL8139 at 0xec00, 00:e0:c5:6a:3b:f7, IRQ 11
Sep 17 19:35:12 stodola user.debug kernel: eth0:  Identified 8139 chip type 'RTL-8139C'
Sep 17 19:35:12 stodola user.info kernel: e100: Intel(R) PRO/100 Network Driver, 3.5.23-k4-NAPI
Sep 17 19:35:12 stodola user.info kernel: e100: Copyright(c) 1999-2006 Intel Corporation
Sep 17 19:35:12 stodola user.info kernel: Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Sep 17 19:35:12 stodola user.info kernel: Copyright (c) 1999-2006 Intel Corporation.
Sep 17 19:35:12 stodola user.info kernel: wlan: trunk
Sep 17 19:35:12 stodola user.info kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Sep 17 19:35:13 stodola user.warn kernel: ath_hal: module license 'Proprietary' taints kernel.
Sep 17 19:35:13 stodola user.info kernel: ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
Sep 17 19:35:13 stodola user.info kernel: ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
Sep 17 19:35:13 stodola user.info kernel: ath_rate_minstrel: look around rate set to 10%
Sep 17 19:35:13 stodola user.info kernel: ath_rate_minstrel: EWMA rolloff level set to 75%
Sep 17 19:35:13 stodola user.info kernel: ath_rate_minstrel: max segment size in the mrr set to 6000 us
Sep 17 19:35:13 stodola user.err kernel: br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Sep 17 19:35:13 stodola user.info kernel: wlan: mac acl policy registered
Sep 17 19:35:13 stodola user.info kernel: device eth0 entered promiscuous mode
Sep 17 19:35:13 stodola user.info kernel: br-lan: port 1(eth0) entering learning state
Sep 17 19:35:13 stodola user.info kernel: br-lan: topology change detected, propagating
Sep 17 19:35:13 stodola user.info kernel: br-lan: port 1(eth0) entering forwarding state
Sep 17 19:35:13 stodola user.info kernel: ath_pci: trunk
Sep 17 19:35:13 stodola user.info kernel: ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
Sep 17 19:35:13 stodola user.info kernel: pcnet32.c:v1.34-NAPI 14.Aug.2007 tsbogend@alpha.franken.de
Sep 17 19:35:13 stodola user.info kernel: sis900.c: v1.08.10 Apr. 2 2006
Sep 17 19:35:13 stodola user.info kernel: via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
Sep 17 19:35:13 stodola user.warn kernel: via-rhine: Broken BIOS detected, avoid_D3 enabled.
Sep 17 19:35:13 stodola user.info sysinit: /sbin/wifi: eval: line 1: cannot create /proc/sys/dev/wifi0/countrycode: nonexistent directory
Sep 17 19:35:13 stodola user.info sysinit: /sbin/wifi: eval: line 1: cannot create /proc/sys/dev/wifi0/outdoor: nonexistent directory
Sep 17 19:35:13 stodola user.info sysinit: wlanconfig: ioctl: No such device
Sep 17 19:35:13 stodola user.info sysinit: enable_atheros(wifi0): Failed to set up ap vif

Po wielu eksperymentach mój /etc/config/network wygląda następująco:

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.91'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.1.1'
        option 'dns' '194.204.159.1'

config 'interface' 'wan'
        option 'ifname' 'ath0'
        option 'proto' 'dhcp'

a mój /etc/config/wireless:

config wifi-device wifi0
option type atheros
option channel 6
option softled 0
option diveristy 0
option txantenna 2
option rxantenna 2
option agmode 11g
option distance 600

config wifi-iface
option device wifi0
option network lan
option mode ap
option ssid kp-wrt
option txpower 16
option bursting 1
option bgscan 0
option xr 1
option ar 0
option wmm 0

Googluje już z tydzień i nic...

2

Odp: Problem z odpaleniem atherosa 5211

Jak to bywa w openwrt: wywal niepotrzebne opcje

option diveristy 0
option txantenna 2
option rxantenna 2
option agmode 11g
option distance 600
option txpower 16
option bursting 1
option bgscan 0
option xr 1
option ar 0
option wmm 0

oraz

option softled 0

Jeżeli nie będzie karta sprawiać problemów.

Po drugie: skoro ath0 przypisałeś sobie do wan w network, to czemu w wireless masz przypisane interfejsu do lan?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Problem z odpaleniem atherosa 5211

Cezary napisał/a:

Jak to bywa w openwrt: wywal niepotrzebne opcje

option diveristy 0
option txantenna 2
option rxantenna 2
option agmode 11g
option distance 600
option txpower 16
option bursting 1
option bgscan 0
option xr 1
option ar 0
option wmm 0

oraz

option softled 0

Jeżeli nie będzie karta sprawiać problemów.

Po drugie: skoro ath0 przypisałeś sobie do wan w network, to czemu w wireless masz przypisane interfejsu do lan?

Dla porządku pozmieniałem tak jak radzisz.. reboot i... bez zmian.

Wydaje mi sie jednak że szukasz krok za daleko.

Skoro iwconfig nie widzi nic wifi a w proc nie ma utworzonego ath0 lub wifi0 to na nastepnym etapie wifi up wywala się na braku device'a:

root@stodola:~# wifi up
/sbin/wifi: eval: line 1: cannot create /proc/sys/dev/wifi0/countrycode: nonexistent directory

Na moje oko to chyba driver się wysypuje krok wcześniej a konfiguracja w /etc/config nie ma jeszcze znaczenia.

4

Odp: Problem z odpaleniem atherosa 5211

Jak nic nie szukam, nawet nie mam dostępu do Twojego systemu, tylko udzielam Ci odpowiedzi smile. Ok pokaż ifconfig -a

Jeżeli driver się załadował to powinien być interfejs. Nie uwtorzył tylko countrycode, ale konfiguracja z openwrt to tylko wpisuje tam przez echo odpowiedni parametr, więc można to zignorować na razie. Chyba ze ten atheros jest "inny" i po prostu nie działa z tą wersją madwifi (chociaż się przyznaje do niego).

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Problem z odpaleniem atherosa 5211

Cezary napisał/a:

Jak nic nie szukam, nawet nie mam dostępu do Twojego systemu, tylko udzielam Ci odpowiedzi smile. Ok pokaż ifconfig -a

Szukasz rozwiązanie mojego problemu za co jestem baaardzo wdzięczny....

Cezary napisał/a:

Jeżeli driver się załadował to powinien być interfejs. Nie uwtorzył tylko countrycode, ale konfiguracja z openwrt to tylko wpisuje tam przez echo odpowiedni parametr, więc można to zignorować na razie. Chyba ze ten atheros jest "inny" i po prostu nie działa z tą wersją madwifi (chociaż się przyznaje do niego).

I tu gdzieś tkwi zagadka:
Drivery na oko są a interfejsu nie ma:

root@stodola:~# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 00:E0:C5:6A:3B:F7
          inet addr:192.168.1.91  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17366 (16.9 KiB)  TX bytes:4923 (4.8 KiB)

eth0      Link encap:Ethernet  HWaddr 00:E0:C5:6A:3B:F7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19102 (18.6 KiB)  TX bytes:4971 (4.8 KiB)
          Interrupt:11 Base address:0xec00

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)

6

Odp: Problem z odpaleniem atherosa 5211

Moment! A czemu masz moduły do madwifi i od ath5k? To są dwa różne projekty i różnie konfigurowane. (option atheros dla madwifi i option mac80211 dla ath5k) Albo jeden albo drugi, bo się gryzą zapewne.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Problem z odpaleniem atherosa 5211

Cezary napisał/a:

Moment! A czemu masz moduły do madwifi i od ath5k? To są dwa różne projekty i różnie konfigurowane. (option atheros dla madwifi i option mac80211 dla ath5k) Albo jeden albo drugi, bo się gryzą zapewne.

No to się zaplatałem...
Teraz na szybko remove kmod-madwifi install kmod-ath5k
Rezulatat:
pusto w /proc/sys/dev/ i w efekcie:

root@stodola:~# wifi up
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wifi0 ; No such device.

ifconfig -a też oczywiście puste. No to spróbujmy madwifi
remove kmod-ath5k, install kmod-madwifi
i z powrotem z mac80211 na atheros

Rezulatat bez zmian - nie ma interfejsu z wifi...

Sytuacja wyraźnie zmierza do kompilacji z trunka bo za dużo namieszałem.

BTW Co polecasz wkompilować: ath5k czy madwifi ?

8

Odp: Problem z odpaleniem atherosa 5211

I to i to działa. madwifi ma więcej funkcjonalności, ath5k jako otwarty sterownik powoli go z tym goni. Ale w podstawowym zakresie (w sensie jako AP) działają oba.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Problem z odpaleniem atherosa 5211

Jeżeli ten Neoware to EON2000, to obsługuje on tylko PCI 2.1 (bodajże), natomiast większość kart WiFi 802.11g (i 802.11n pewnie też) wymaga PCI 2.2. Zainstaluj pciutils i wykonaj lspci. Jeżeli moja teoria jest prawdziwa, karta nie pokaże się.

Z kolei jeżeli się pokaże, to możesz mieć problem z przerwaniami - tutaj możesz próbować wyłączać zbędne urządzenia w BIOS-ie.

10

Odp: Problem z odpaleniem atherosa 5211

Faktycznie, zapomniałem o tym, karta może po prostu nie działać w tym pci.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.