xezen wrote:i keep gettin this trying to insatll my Atheros chipset radios but keep gettiong this error
all these are giving me broblems blease help
First, make sure you have all the modules you need...
When I try to install the modules, it says it's already installed...
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/ar71xx/packages/Packages
Connecting to downloads.openwrt.org (195.56.146.238:80)
Packages 100% |*******************************| 598k --:--:-- ETA
Updated list of available packages in /var/opkg-lists/snapshots
...
...
root@OpenWrt:~# opkg install kmod-madwifi
Package kmod-madwifi (2.6.26.5+r3314-ar71xx-1) installed in root is up to date.
root@OpenWrt:~# opkg install wireless-tools
Package wireless-tools (29-2) installed in root is up to date.
root@OpenWrt:~#
Then configure your /etc/config/wireless and /etc/config/network scripts...
You could sad that "wireless" defines the "layer 2" of the wireless interfaces and the "network" defines the "layer 3" of all interfaces.
In the following script, under ATH0 there are all available options listed. Under the ATH1 and ATH2 there are all needed options listed that I need for my config. All other options are left undefined as I don't need it.
config wifi-device wifi0
option type atheros
# option country 865
option channel 40
# option disabled 0
# option maxassoc 50
option distance 8700
option agmode 11a
# option diversity 0
# option txantenna 0
# option rxantenna 0
config wifi-iface
# option network wifi0
option device wifi0
option mode ap
option ssid WiFi.Back-Bone-1
# option bssid wds
option encryption open
option key key1
option key1 6767676767
# option key2 23456
# option key3 34567
# option key4 45678
# option server radius.server.net
# option port 1234
# option txpower 20
option bgscan 0
option hidden 0
# option isolate 0
# option wds 0
config wifi-device wifi1
option type atheros
option channel 42
option agmode 11a
config wifi-iface
option device wifi1
option mode ap
option ssid WiFi.Back-Bone-2
option encryption open
option key key1
option key1 6767676767
# option txpower 20
option bgscan 1
option hidden 0
config wifi-device wifi2
option type atheros
option channel 50
option agmode 11a
config wifi-iface
option device wifi2
option mode sta
option ssid WiFi.Back-Bone-3
option encryption open
option key key1
option key1 6767676767
# option txpower 20
option bgscan 0
option hidden 0
As you can see, I am using Atheros cards.
ATH0 is set to AP mode, on 5GHz (mode - 11a) with a 64bit WEP key - password 6767676767 HEX or "ggggg" ASCII. Channel 40, distance 8700 meters.
ATH1 is set to AP mode, 5GHz (mode - 11a) with a 64bit WEP key - password 6767676767 HEX or "ggggg" ASCII. Channel 42 automatically sets the card in "Static Super A" mode.
ATH2 is set to Client mode, 5GHz (mode - 11a) with a 64bit WEP key - password 6767676767 HEX or "ggggg" ASCII. Channel 50 automatically sets the card in "Static Super A" mode.
So, each card will connect to a different Back-Bone link, all in 5GHz area.
Now, the "network" script... Here we define "layer 3" of
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 type br0
option proto static
option ipaddr 10.14.21.32
option netmask 255.255.255.0
option gateway 10.14.21.20
option dns 10.14.21.10
option ifname 'eth0 eth1'
config interface wifi0
option ifname ath0
option proto static
option ipaddr 10.14.254.1
option netmask 255.255.255.252
config interface wifi1
option ifname ath1
option proto static
option ipaddr 10.14.254.5
option netmask 255.255.255.252
config interface wifi2
option ifname ath2
option proto static
option ipaddr 10.14.254.9
option netmask 255.255.255.252
First ... loopback interface... not intesting...
Then ... lan configuration... I have 2 active ports on the board and I bridged them, so I can used it as a switch.
Then ... the 3 wireless cards... ATH0, ATH1 and ATH2...
The cards are not bridged, as I will use the routerboard as a ... router
Each card is in its own subnet waiting to be connected to it's own Back-Bone Link.
So, after u got your scripts as you want them... you do a...
There will be some output... I get this... nothing to worry about...
root@OpenWrt:~# /etc/init.d/network restart
0.openwrt.pool.ntp.org: Unknown host
1.openwrt.pool.ntp.org: Unknown host
2.openwrt.pool.ntp.org: Unknown host
3.openwrt.pool.ntp.org: Unknown host
Terminated
Terminated
Terminated
root@OpenWrt:~#
Now .. to make sure your cards (or card) are initialized ... do a... "dmesg". This will output "system messages"... on the list (you can scroll a fer windows of it), at the bottom you will find something about your wireless cards. If not, somethings wrong...
root@OpenWrt:~# dmesg
...
...
eth1: link up (100Mbps/Full duplex)
ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
ieee80211_crypt: registered algorithm 'WEP'
ieee80211_crypt: registered algorithm 'TKIP'
ieee80211_crypt: registered algorithm 'CCMP'
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
4th_hal: 2008-10-02 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5 13, RF2133, RF2425, REGOPS_FUNC, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: trunk
PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Mifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36 bps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_pci: wifi0: Atheros 5413: mem=0x10000000, irq=32
PCI: Enabling device 0000:00:13.0 (0000 -> 0002)
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi1: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Mifi1: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36 bps 48Mbps 54Mbps
wifi1: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: H/W encryption support: WEP AES AES_CCM TKIP
ath_pci: wifi1: Atheros 5413: mem=0x10010000, irq=33
PCI: Enabling device 0000:00:14.0 (0000 -> 0002)
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi2: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi2: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Mifi2: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36 bps 48Mbps 54Mbps
wifi2: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi2: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi2: H/W encryption support: WEP AES AES_CCM TKIP
ath_pci: wifi2: Atheros 5413: mem=0x10020000, irq=34
eth0: link up (100Mbps/Full duplex)
ar71xx-wdt: enabling watchdog timer
eth1: link down
eth1: link up (100Mbps/Full duplex)
eth1: link down
eth1: link up (100Mbps/Full duplex)
root@OpenWrt:~#
... if "wifi0" "wifi1" and "wifi2" are all there... you can try a... "iwconfig"
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
wifi0 no wireless extensions.
wifi1 no wireless extensions.
wifi2 no wireless extensions.
ath0 IEEE 802.11a ESSID:"WiFi.Back-Bone-0" Nickname:""
Mode:Master Frequency:5.2 GHz Access Point: 00:11:F5:BD:01:34
Bit Rate:0 kb/s Tx-Power:17 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm
Rx invalid nwid:60 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ath1 IEEE 802.11Ta ESSID:"WiFi.Back-Bone-1" Nickname:""
Mode:Master Frequency:5.21 GHz Access Point: 00:11:F5:BA:C4:20
Bit Rate:0 kb/s Tx-Power:16 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-93 dBm Noise level=-93 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ath2 IEEE 802.11Ta ESSID:"WiFi.Back-Bone-2" Nickname:""
Mode:Managed Frequency:5.25 GHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:15 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@OpenWrt:~#
You can notice, all my cards are disconnected, and I have encryption disabled (different than set in the config file I did a copy/past above)
So ... that's it. You modify the scripts with your parameters, and it should work.