OpenWrt Forum Archive

Topic: Atheros AR7100

The content of this topic has been archived between 30 Mar 2018 and 1 May 2018. Unfortunately there are posts – most likely complete pages – missing.

qyx wrote:

acoul: it seems that the issue with madwifi in master mode is solved in your latest build (i suppose the newly released ath hal is included)

indeed, I've replaced an rb133 with an rb433 serving two production wifi links on awmn and for the past 48 hours there are no stability issues.  though I have to say that I am not really impressed with the performance gain that the rb433 offers against the rb133.

Hi,

I wonder where I can download the trunk, which allows me to choose:

"Atheros AR71xx[2.6]" as the target system?

I did the following

svn co https://svn.openwrt.org/openwrt/tags/kamikaze_7.09/

but make menuconfig only allows me to choose  Atheros [2.6].

Thanks a lot.

Jim

Anyone got OpenWRT working on 433AH from SD card? Any how-to?

Tx

Hi,
i can't get to work r12983 from nand.
It boots from ramdisk ok, i copy the kernel (openwrt-ar71xx-vmlinux.elf) to /dev/mtdblock1 and untar rootfs to mtdblock2
But after reboot from nand i only get a "kernel not found"

dmesg from ramdisk:

Linux version 2.6.26.5 (kamikaze@ssl1.microwifi.es) (gcc version 4.1.2) #1 Wed Oct 15 02:16:56 CEST 2008                             
prom: fw_arg0=00000007, fw_arg1=a0861c00, fw_arg2=00000000, fw_arg3=00000000                                                         
MyLoader: sysp=03000200, boardp=00000200, parts=00000100                                                                             
console [early0] enabled                                                                                                             
CPU revision is: 00019374 (MIPS 24K)                                                                                                 
Determined physical RAM map:                                                                                                         
memory: 02000000 @ 00000000 (usable)                                                                                               
Entering add_active_range(0, 0, 8192) 0 entries of 256 used                                                                         
Initrd not found or empty - disabling initrd                                                                                         
Zone PFN ranges:                                                                                                                     
  Normal          0 ->     8192                                                                                                     
Movable zone start PFN for each node                                                                                                 
early_node_map[1] active PFN ranges                                                                                                 
    0:        0 ->     8192                                                                                                         
On node 0 totalpages: 8192                                                                                                           
  Normal zone: 64 pages used for memmap                                                                                             
  Normal zone: 0 pages reserved                                                                                                     
  Normal zone: 8128 pages, LIFO batch:0                                                                                             
  Movable zone: 0 pages used for memmap                                                                                             
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128                                                           
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit             
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.                                                                     
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes                                                               
Writing ErrCtl register=00068000                                                                                                     
Readback ErrCtl register=00068000                                                                                                   
PID hash table entries: 128 (order: 7, 512 bytes)                                                                                   
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)                                                                       
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                         
Memory: 28164k/32768k available (1767k kernel code, 4604k reserved, 315k data, 1748k init, 0k highmem)                               
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                                                               
Calibrating delay loop... 199.88 BogoMIPS (lpj=999424)                                                                               
Mount-cache hash table entries: 512                                                                                                 
net_namespace: 644 bytes                                                                                                             
NET: Registered protocol family 16                                                                                                   
MIPS: machine is MikroTik RouterBOARD 411/A/AH                                                                                       
registering PCI controller with io_map_base unset                                                                                   
NET: Registered protocol family 2                                                                                                   
Switched to high resolution mode on CPU 0                                                                                           
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                       
TCP established hash table entries: 1024 (order: 1, 8192 bytes)                                                                     
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)                                                                             
TCP: Hash tables configured (established 1024 bind 1024)                                                                             
TCP reno registered                                                                                                                 
NET: Registered protocol family 1                                                                                                   
squashfs: version 3.0 (2006/03/15) Phillip Lougher                                                                                   
Registering mini_fo version $Id$                                                                                                     
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.                                                                       
yaffs Oct 15 2008 02:07:13 Installing.                                                                                               
msgmni has been set to 55                                                                                                           
io scheduler noop registered                                                                                                         
io scheduler deadline registered (default)                                                                                           
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled                                                           
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A                                                                       
console handover: boot [early0] -> real [ttyS0]                                                                                     
ag71xx_mdio: probed                                                                                                                 
eth0: Atheros AG71xx at 0xb9000000, irq 4                                                                                           
eth0: connected to PHY at 0:00 [uid=00221512, driver=Generic PHY]                                                                   
NAND flash driver for RouterBoard 4xx series version 0.1.10                                                                         
NAND SPI clock 25000 kHz (AHB 150000 kHz / 6)                                                                                       
FLASH SPI clock 25000 kHz (AHB 150000 kHz / 6)                                                                                       
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)                                                     
Scanning device for bad blocks                                                                                                       
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":                                                                               
0x00000000-0x00040000 : "booter"                                                                                                     
0x00040000-0x00400000 : "kernel"                                                                                                     
0x00400000-0x04000000 : "rootfs"                                                                                                     
mtd: partition "rootfs" set to be root filesystem                                                                                   
split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"                                                                         
Atheros AR71xx SPI Controller driver version 0.2.2                                                                                   
Atheros AR71xx hardware watchdog driver version 0.1.0                                                                               
ar71xx-wdt: timeout=15 secs (max=28)                                                                                                 
Registered led device: rb4xx:yellow:user                                                                                             
TCP vegas registered                                                                                                                 
NET: Registered protocol family 17                                                                                                   
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>                                                                       
All bugs added by David S. Miller <davem@redhat.com>                                                                                 
Freeing unused kernel memory: 1748k freed                                                                                           
Algorithmics/MIPS FPU Emulator v1.5                                                                                                 
br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.                                                                       
device eth0 entered promiscuous mode                                                                                                 
PPP generic driver version 2.4.2                                                                                                     
ip_tables: (C) 2000-2006 Netfilter Core Team                                                                                         
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)                                                                                 
wlan: trunk                                                                                                                         
ath_hal: module license 'Proprietary' taints kernel.                                                                                 
ath_hal: 2008-10-02 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, 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                                                                                                                       
eth0: link up (100Mbps/Full duplex)                                                                                                 
br-lan: port 1(eth0) entering learning state                                                                                         
br-lan: topology change detected, propagating                                                                                       
br-lan: port 1(eth0) entering forwarding state                                                                                       
ar71xx-wdt: enabling watchdog timer

# mount /dev/mtdblock1 /mnt                                                                                           
yaffs: dev is 32505857 name is "mtdblock1"                                                                                           
yaffs: passed flags ""                                                                                                               
yaffs: Attempting MTD mount on 31.1, "mtdblock1" 

....

/# mount /dev/mtdblock2 /mnt                                                                                           
yaffs: dev is 32505858 name is "mtdblock2"                                                                                           
yaffs: passed flags ""                                                                                                               
yaffs: Attempting MTD mount on 31.2, "mtdblock2"

setting boot device to "o - boot from NAND only"

writing settings to flash... OK                                                                                                     
                                                                                                                                     
                                                                                                                                     
RouterBOOT booter 2.15                                                                                                               
                                                                                                                                     
RouterBoard 411                                                                                                                     
                                                                                                                                     
Authorization: Passed                                                                                                               
CPU frequency: 300 MHz                                                                                                               
  Memory size:  32 MB                                                                                                               
                                                                                                                                     
Press any key within 2 seconds to enter setup..                                                                                     
kernel not found                 

Any idea?

the kernel file on mtdblock1 must be named "kernel", not "openwrt-ar71xx-vmlinux.elf"

Hi ppl!
I am using RB433AH.

I got acoul's image, bootet via DHCP/TFTP, copied it with "wget2nand" and then booted from NAND.
It works just fine.

Then I configured network, downloaded sshd, pciutils, ath5k, iperf, x-wrt and other modules. It worked just great. When I was done configuring it I hit "REBOOT".

After REBOOT, all changes were lost !?!?

Then I just tried to change my IP address, but after reboot changes were lost.

So, kind of n00b question... how do I make my changes permanent??

I couldn't find anything on Read-Write or Read-Only mode of the filesystem used.

I need the board for a wireless router... 3 x ABG Atheros cards (AP or Client) doing nothing more than Quagga(OSPF) and SSH server. So, a read-only fs would be great.

Any help?

why don't you use the ext2 version of the system, that should sort out your issue?

Thanks qyx.
Now it works at 411 and 433

rbiz wrote:

why don't you use the ext2 version of the system, that should sort out your issue?

The thing is, I don't know how to do that. sad

dajhard wrote:
rbiz wrote:

why don't you use the ext2 version of the system, that should sort out your issue?

The thing is, I don't know how to do that. sad

you can try to flash nand by hand. first format your nand from the boot menu. then reboot via netboot image:

mount /dev/mtdblock1 /mnt
cd /mnt
wget http://wifi.ozo.com/airo/openwrt/firmware/kamikaze/2.6/ar71xx/12846/kernel
cd /
umount /mnt
mount /dev/mtdblock2 /mnt
cd /mnt
wget http://wifi.ozo.com/airo/openwrt/firmware/kamikaze/2.6/ar71xx/12846/openwrt-ar71xx-rootfs.tgz
gzip -d openwrt-ar71xx-rootfs.tgz
tar xvf openwrt-ar71xx-rootfs.tar
rm openwrt-ar71xx-rootfs.tar
cd /
umount /mnt
sync
reboot

before boot make sure you select boot from nand on the boot menu.  actually you can check this before going through the above cycle :-)

Many thanks acoul.

Just one question...
The NAND is now in RW mode. On my Debian Etch, I had it always in ReadOnly, remounting it to RW when needed.

# <file system> <mount point>   <type>  <options>               <dump>  <pass>
proc            /proc           proc    defaults                0       0
/dev/sda1       /               reiserfs noatime,notail,ro      0       1
tmpfs           /etc/network/run tmpfs  defaults,noatime        0       0
tmpfs           /tmp            tmpfs   defaults,noatime        0       0
tmpfs           /var/run        tmpfs   defaults,noatime        0       0
tmpfs           /var/lock       tmpfs   defaults,noatime        0       0
tmpfs           /var/log        tmpfs   defaults,noatime        0       0

Any idea how to do that here?
And, how to mount the miniSD card?

check out the yaffs file system readme about your first question.  about the miniSD I can't help you as I don't have such a hardware, but you should be able to see it as a scsi device and mount it accordingly ...

acoul wrote:

check out the yaffs file system readme about your first question.  about the miniSD I can't help you as I don't have such a hardware, but you should be able to see it as a scsi device and mount it accordingly ...

If I got it correctly, there is no need to mount system RO, YAFFS will take care of it. And, I don't need the miniSD then.
My original idea was to BOOT the 433AH from the miniSD card, but it has no such option.

@acoul: Please do You have .ELF image for RB433? Thank You in advance!

i got openwrt on my mikrotik411rb chipset ar71xx
but i cannotseem to get the wirless up and runningis there a package or somthing thati must install to get t to pick up the radios or what

root@OpenWrt:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

i only get this

the radios hat i have is the tl-wn660g tplink radio
and the mikrotik r52 and r52h radios can anyone please help me to get the wifi sorted out on my radio

and if it type wifi
/sbin/uci: Parse error (invalid command) at line 13, byte 2
/sbin/uci: Parse error (invalid command) at line 13, byte 2
wlanconfig: ioctl: No such device
enable_atheros(wifi0): Failed to set up ap vif

m4rk0 wrote:

@acoul: Please do You have .ELF image for RB433? Thank You in advance!

Check older posts in this discussion.


xezen wrote:

but i cannotseem to get the wirless up and runningis there a package or somthing thati must install to get t to pick up the radios or what

Login to your OpenWRT

opkg update
opkg install kmod-madwifi

... then configure your /etc/config/wireless and /etc/config/network files...

vi /etc/config/wireless
vi /etc/config/network

... then restart networking

/etc/init.d/network restart

Your ATH cards should be up&running if your scripts are OK.

------------------------------------------------------------------------

Now... my problem ...

Ath's working in G mode and A mode. But, doesn't find anything in scan in TA mode. All cards are ABG.
Beside that, in A mode in AP mode, signals keep jumping from -50dBm to -80dBm (scanned with laptop, same room, 3m away). G mode, AP is working OK.
In G mode, station, while scanning my AP on 1m distance. Ath0 has -50dBm, Ath1 has -34dBm, Ath2 has -10dBm.

Is thare something wrong with the madwifi module on Atheros71xx ?

(Last edited by dajhard on 22 Oct 2008, 08:15)

what scrips are you talking about can you give me a example on the etc/config/wirless file

as this is what i have

root@OpenWrt:/etc/config# vi wireless
        config wifi-device      wifi0
                option type     atheros
                option channel  auto

                option disabled 0

        config wifi-iface
                option device           wifi0
                option network  lan
                option mode             ap
                option ssid             Flopper
                option hidden           0
                opton encryption        none


~
~
~

i keep gettin this trying to insatll my Atheros chipset radios but keep gettiong this error
root@OpenWrt:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

root@OpenWrt:/# wlanconfig
usage: wlanconfig athX create [nounit] wlandev wifiY
            wlanmode [sta|adhoc|ap|monitor|wds|ahdemo] [bssid | -bssid] [nosbeacon]
usage: wlanconfig athX destroy
usage: wlanconfig athX list [active|ap|caps|chan|freq|keys|scan|sta|wme]
root@OpenWrt:/# wlanconfig athX list active
ioctl[IEEE80211_IOCTL_GETCHANINFO]: No such device
wlanconfig: unable to get channel information
root@OpenWrt:/# ioctl[IEEE80211_IOCTL_GETCHANINFO]: No such device
/bin/ash: ioctl[IEEE80211_IOCTL_GETCHANINFO]:: not found
root@OpenWrt:/# wlanconfig athX list ap
ioctl[unknown???]: No such device
wlanconfig: unable to get scan results
root@OpenWrt:/#

all these are giving me broblems blease help

Will put my config files as soon as I finish as i get my RB back (tomorrow).

xezen: you must do "opkg install kmod-madwifi" before working with wifiX devices,
after device init (a couple of lines appear in dmesg) a new device named wifi0 should be added (check with "ifconfig -a")

i am not used to uci...  normally you do
# wlanconfig ath0 create wlandev wifi0 wlanmode sta
# ifconfig ath0 up
# iwlist ath0 scan

root@OpenWrt:~# dmesg
Linux version 2.6.26.5 (alex@extreme) (gcc version 4.2.4) #1 Sat Oct 4 08:27:39 EEST 2008
prom: fw_arg0=00000007, fw_arg1=a0861c00, fw_arg2=00000000, fw_arg3=00000000
MyLoader: sysp=fef2fbe1, boardp=f0b6d8fe, parts=eadff1f5
console [early0] enabled
CPU revision is: 00019374 (MIPS 24K)
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     8192
On node 0 totalpages: 8192
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29868k/32768k available (1704k kernel code, 2900k reserved, 302k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 199.88 BogoMIPS (lpj=999424)
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
MIPS: machine is MikroTik RouterBOARD 411/A/AH
registering PCI controller with io_map_base unset
PCI: mapping irq 32 to pin1@0000:00:12.0
NET: Registered protocol family 2
Switched to high resolution mode on CPU 0
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Oct  4 2008 08:25:56 Installing.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: connected to PHY at 0:00 [uid=00221512, driver=Generic PHY]
NAND flash driver for RouterBoard 4xx series version 0.1.10
NAND SPI clock 25000 kHz (AHB 150000 kHz / 6)
FLASH SPI clock 25000 kHz (AHB 150000 kHz / 6)
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "booter"
0x00040000-0x00400000 : "kernel"
0x00400000-0x04000000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"
Atheros AR71xx SPI Controller driver version 0.2.2
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=28)
Registered led device: rb4xx:yellow:user
TCP vegas registered
NET: Registered protocol family 17
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
crypto_algapi: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
cryptomgr: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
crypto_hash: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
crypto_blkcipher: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
cbc: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ecb: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
deflate: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
aes_generic: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
arc4: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
michael_mic: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ieee80211_crypt: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ieee80211: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ieee80211_crypt_wep: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ieee80211_crypt_tkip: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ieee80211_crypt_ccmp: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
cfg80211: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
mac80211: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
scsi_mod: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
libata: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ath5k: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ath9k: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
x_tables: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
xt_tcpudp: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ip_tables: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
iptable_filter: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
iptable_mangle: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
xt_limit: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
xt_mac: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
xt_multiport: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ipt_LOG: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
xt_TCPMSS: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ipt_REJECT: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
sd_mod: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ahci: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan_scan_ap: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan_scan_sta: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ath_hal: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ath_rate_minstrel: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan_acl: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan_ccmp: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan_tkip: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan_wep: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
wlan_xauth: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ath_ahb: version magic '2.6.26.5 mod_unload MIPS32_R1 32BIT ' should be '2.6.26.5 mod_unload MIPS32_R2 32BIT '
ar71xx-wdt: enabling watchdog timer
eth0: link up (100Mbps/Full duplex)
root@OpenWrt:~#

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 roll
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.

i beleve somthing is wrong with my kernel

how did you load you image
onto the board

Sorry, posts 276 to 275 are missing from our archive.