OpenWrt Forum Archive

Topic: donation: atheros ar7130 & ar5416 wlan router

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi.

I have a ar7130 with ar5416(minipci) wlan router.
AzureWave AW-NR580
http://www.azwave.com/product_AW-NR580_1.asp

serial output

+phyID1=0x1c, phyID2=0xc852
phyID1=0x1c, phyID2=0xc852
Ethernet eth0: MAC address 00:0d:0b:13:6b:00
IP: 192.168.0.99, Default server: 192.168.0.253

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version UNKNOWN - built 16:43:27, Aug  9 2007

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: pb42
RAM: 0x80000000-0x81000000, [0x80047da0-0x80fe1000] available
FLASH: 0xbf000000 - 0xbf3f0000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abort
RedBoot> load vmlinux.nr580.ram
Using default protocol (TFTP)
__udp_sendto: Can't find address of server
Can't load 'vmlinux.nr580.ram': some sort of network error
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80060000-0x80269084
RedBoot> exec
Now booting linux kernel:
 Base address 0x80050000 Entry 0x80245000
 Cmdline : console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init
Linux version 2.6.15--LSDK-6.1.1.62 (chris@james) (gcc version 3.4.4) #236 Thu Aug 9 16:42:47 CST 2007
flash_size passed from bootloader = 4
CPU revision is: 00019374
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init ram=16M
Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 150.000 MHz high precision timer.
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29356k/32768k available (1677k kernel code, 3396k reserved, 258k data, 148k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  available.
NET: Registered protocol family 16
calling simple_config callback..
AR7100 GPIOC major 0
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
AzureWave Audio Driver v1.0.0.1
Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 256K size 1024 blocksize
PPP generic driver version 2.4.2
NET: Registered protocol family 24
Creating 5 MTD partitions on "ar7100-nor0":
0x00000000-0x00040000 : "redboot"
0x00040000-0x00100000 : "vmlinux.bin.gz"
0x00100000-0x003d0000 : "filesystem"
0x003d0000-0x003e0000 : "config"
0x003e0000-0x003f0000 : "FIS"
Netfilter messages via NETLINK v0.30.
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
ip_conntrack version 2.4 (640 buckets, 5120 max) - 212 bytes per conntrack
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
ip_tables: (C) 2000-2002 Netfilter core team
TCP bic registered
NET: Registered protocol family 1
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>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 148k freed
init started:  BusyBox v1.01 (2007.08.09-08:43+0000) multi-call binary
Algorithmics/MIPS FPU Emulator v1.5
mount: Mounting none on /proc/bus/usb failed: No such file or directory
athstats
athstatsclr
athdebug
80211stats
80211debug
athkey
athampdutrc
athcwm
atrc
pktlogconf
pktlogdump
radartool
ath_dfs: module license 'Proprietary' taints kernel.
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
ath_hal: 0.9.14.25 (AR5416, DEBUG, REGOPS_FUNC)
wlan: 0.8.4.2 (Atheros/multi-bss)
ath_rate_atheros: Version 2.0.1
Copyright (c) 2001-2004 Atheros Communications, Inc, All Rights Reserved
ath_pci: 0.9.4.5 (Atheros/multi-bss)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
Chan  Freq  RegPwr  HT   CTL CTL_U CTL_L DFS
   1  2412n     20  HT20  1    0    1     N
   1  2412n     20  HT40  1    0    1     N
   2  2417n     20  HT40  1    0    1     N
   3  2422n     20  HT40  1    1    1     N
   4  2427n     20  HT40  1    1    1     N
   5  2432n     20  HT40  1    1    1     N
   6  2437n     20  HT40  1    1    1     N
   7  2442n     20  HT40  1    1    1     N
   8  2447n     20  HT40  1    1    1     N
   9  2452n     20  HT40  1    1    1     N
  10  2457n     20  HT40  1    1    1     N
  11  2462n     20  HT40  1    1    1     N
  12  2467n     20  HT40  1    1    0     N
  13  2472n     20  HT40  1    1    0     N
register_simple_config_callback called
wifi0: 11ng rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11ng MCS:  0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
wifi0: mac 13.2 phy 8.1 radio 13.0
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5416 PCI: mem=0x10000000, irq=49 hw_base=0xb0000000
wlan: mac acl policy registered
ath0
/var/etc/system.conf: 1166
Detecting device working mode ... DHCP Client
AG7100: Length per segment 1536
AG7100: Max segments per packet 2
AG7100: Max tx descriptor count    200
AG7100: Max rx descriptor count    252
AG7100: fifo cfg 3 008001ff
AG7100: cfg1 0xf cfg2 0x7014
AG7100: unit 0 phy is up...Mii 100Mbps full duplex
AG7100: pll reg 0x18050010: 0x1099  AG7100: cfg_1: 0x1ff0000
AG7100: cfg_2: 0x3ff
AG7100: cfg_3: 0x8001ff
AG7100: cfg_4: 0x3ffff
AG7100: cfg_5: 0x3ffff
AG7100: done cfg2 0x7115 ifctl 0x10000 miictrl 0x11
Writing 4
ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
  6mb OFDM  17.0 dBm |  9mb OFDM  17.0 dBm | 12mb OFDM  17.0 dBm | 18mb OFDM  17.0 dBm
 24mb OFDM  17.0 dBm | 36mb OFDM  17.0 dBm | 48mb OFDM  16.0 dBm | 54mb OFDM  15.0 dBm
 1L   CCK   17.0 dBm | 2L   CCK   17.0 dBm | 2S   CCK   17.0 dBm | 5.5L CCK   17.0 dBm
 5.5S CCK   17.0 dBm | 11L  CCK   17.0 dBm | 11S  CCK   17.0 dBm | XR         17.0 dBm
 HT20mcs 0  17.0 dBm | HT20mcs 1  17.0 dBm | HT20mcs 2  17.0 dBm | HT20mcs 3  17.0 dBm
 HT20mcs 4  17.0 dBm | HT20mcs 5  17.0 dBm | HT20mcs 6  13.0 dBm | HT20mcs 7  11.0 dBm
 HT40mcs 0   0.0 dBm | HT40mcs 1   0.0 dBm | HT40mcs 2   0.0 dBm | HT40mcs 3   0.0 dBm
 HT40mcs 4   0.0 dBm | HT40mcs 5   0.0 dBm | HT40mcs 6   0.0 dBm | HT40mcs 7   0.0 dBm
 Dup CCK     0.0 dBm | Dup OFDM    0.0 dBm | Ext CCK     0.0 dBm | Ext OFDM    0.0 dBm
2xAntennaReduction: 0, 2xMaxRegulatory: 40, 2xPowerLimit: 60
2xMaxPowerLevel: 34 (HT20)
TPC Enabled 1 1 0
Force rf_pwd_icsyndiv to 1 on 2412 (1 0)
ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
  6mb OFDM  17.0 dBm |  9mb OFDM  17.0 dBm | 12mb OFDM  17.0 dBm | 18mb OFDM  17.0 dBm
 24mb OFDM  17.0 dBm | 36mb OFDM  17.0 dBm | 48mb OFDM  16.0 dBm | 54mb OFDM  15.0 dBm
 1L   CCK   17.0 dBm | 2L   CCK   17.0 dBm | 2S   CCK   17.0 dBm | 5.5L CCK   17.0 dBm
 5.5S CCK   17.0 dBm | 11L  CCK   17.0 dBm | 11S  CCK   17.0 dBm | XR         17.0 dBm
 HT20mcs 0  17.0 dBm | HT20mcs 1  17.0 dBm | HT20mcs 2  17.0 dBm | HT20mcs 3  17.0 dBm
 HT20mcs 4  17.0 dBm | HT20mcs 5  17.0 dBm | HT20mcs 6  13.0 dBm | HT20mcs 7  11.0 dBm
 HT40mcs 0   0.0 dBm | HT40mcs 1   0.0 dBm | HT40mcs 2   0.0 dBm | HT40mcs 3   0.0 dBm
 HT40mcs 4   0.0 dBm | HT40mcs 5   0.0 dBm | HT40mcs 6   0.0 dBm | HT40mcs 7   0.0 dBm
 Dup CCK     0.0 dBm | Dup OFDM    0.0 dBm | Ext CCK     0.0 dBm | Ext OFDM    0.0 dBm
2xAntennaReduction: 0, 2xMaxRegulatory: 40, 2xPowerLimit: 60
2xMaxPowerLevel: 34 (LEG)
ath_newstate: Resetting VAP dfswait_run
ath_newstate: Resetting VAP dfswait_run
NF calibrated [ctl] [chain 0] is -82
NF calibrated [ext] [chain 0] is -95
NF calibrated [ctl] [chain 1] is -77
NF calibrated [ext] [chain 1] is 26
NF calibrated [ctl] [chain 2] is -90
NF calibrated [ext] [chain 2] is 12
Force rf_pwd_icsyndiv to 2 on 2452 (1 0)
ar5416SetPowerPerRateTable() syn 2452 ctl 2452 ext 2452 is40 0
  6mb OFDM  17.0 dBm |  9mb OFDM  17.0 dBm | 12mb OFDM  17.0 dBm | 18mb OFDM  17.0 dBm
 24mb OFDM  17.0 dBm | 36mb OFDM  17.0 dBm | 48mb OFDM  16.0 dBm | 54mb OFDM  15.0 dBm
 1L   CCK   17.0 dBm | 2L   CCK   17.0 dBm | 2S   CCK   17.0 dBm | 5.5L CCK   17.0 dBm
 5.5S CCK   17.0 dBm | 11L  CCK   17.0 dBm | 11S  CCK   17.0 dBm | XR         17.0 dBm
 HT20mcs 0  17.0 dBm | HT20mcs 1  17.0 dBm | HT20mcs 2  17.0 dBm | HT20mcs 3  17.0 dBm
 HT20mcs 4  17.0 dBm | HT20mcs 5  17.0 dBm | HT20mcs 6  13.0 dBm | HT20mcs 7  11.0 dBm
 HT40mcs 0   0.0 dBm | HT40mcs 1   0.0 dBm | HT40mcs 2   0.0 dBm | HT40mcs 3   0.0 dBm
 HT40mcs 4   0.0 dBm | HT40mcs 5   0.0 dBm | HT40mcs 6   0.0 dBm | HT40mcs 7   0.0 dBm
 Dup CCK     0.0 dBm | Dup OFDM    0.0 dBm | Ext CCK     0.0 dBm | Ext OFDM    0.0 dBm
2xAntennaReduction: 0, 2xMaxRegulatory: 40, 2xPowerLimit: 60
2xMaxPowerLevel: 34 (HT20)
ath_chan_set: Changing to channel 2452, Flags 30082, PF 0
vlan1: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan1 entered promiscuous mode
device ath0 entered promiscuous mode
br0: port 2(ath0) entering learning state
br0: port 1(vlan1) entering learning state
udhcpd (v0.9.9-pre) started
Unable to open /var/etc/dhcpd.leases for reading
br0: topology change detected, propagating
br0: port 2(ath0) entering forwarding state
br0: topology change detected, propagating
br0: port 1(vlan1) entering forwarding state

Please press Enter to activate this console. DMA_5_ADDRESS 0x180a003c = 0x00000000
DMA_5_CONFIG  0x180a0040 = 0x00000003
DMA_5_UPDATE  0x180a0044 = 0x00000000
DMA_INT       0x180a0048 = 0x00002000
STEREO_CONFIG 0x180b0000 = 0x0141810d
STEREO_VOLUME 0x180b0004 = 0x00000000
AR7100_GPIO_FUNCTIONS 0x18040028 = 0x00020100
----------------> ezmn_open : 1

more spec is here.
http://forum.openwrt.org/viewtopic.php?pid=72906#p72906

Unfortunately I couldn't find rx to this device. I have nothing to do with it.
So, if it get useful to develp openwrt, I'm ready to donate it.

regards,

zukky

P.S.
AC adaptor type is US style.

Hello,

yapoo wrote:

Unfortunately I couldn't find rx to this device. I have nothing to do with it.
So, if it get useful to develp openwrt, I'm ready to donate it.

Sure, it would be useful for development, and I would be glad to work on it.

Regards,
Gabor

Hi, Gabor.

Thank you for your reply.
I'm sorry to be late to reply you.

I sent you a PM.

regards,

zukky

I'm also interested on it...

(Last edited by ramponis on 25 Oct 2008, 12:58)

Hi, ramponis.

I've already sent this one to Gabor. Sorry.

regards,
zukky

No problem wink

Hi,

yapoo wrote:

I've already sent this one to Gabor.

Yeah, i got it yesterday. Thank You!
OpenWrt are running on it already, although ethernet is not working yet.

+phyID1=0x1c, phyID2=0xc852
phyID1=0x1c, phyID2=0xc852
Ethernet eth0: MAC address 00:0d:0b:13:6b:00
IP: 192.168.1.1, Default server: 192.168.1.254

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version UNKNOWN - built 16:43:27, Aug  9 2007

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: pb42
RAM: 0x80000000-0x81000000, [0x80047da0-0x80fe1000] available
FLASH: 0xbf000000 - 0xbf3f0000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abort
RedBoot> fis load -l kernel
Image loaded from 0x80060000-0x80287086
RedBoot> exec -c board=AW-NR580
Now booting linux kernel:
 Base address 0x80050000 Entry 0x80060000
 Cmdline : board=AW-NR580
Linux version 2.6.26.8 (juhosg@idared) (gcc version 4.1.2) #4 Tue Nov 18 15:41:43 CET 2008
console [early0] enabled
CPU revision is: 00019374 (MIPS 24K)
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
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
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: 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=0007fbb2
Readback ErrCtl register=0007fbb2
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: 29788k/32768k available (1762k kernel code, 2980k reserved, 320k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
MIPS: machine is AzureWave AW-NR580
NET: Registered protocol family 2
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 Nov 18 2008 14:57:29 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]
Atheros AR71xx SPI Controller driver version 0.2.2
m25p80 spi0.0: en25p32 (4096 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x3e0000
6 RedBoot partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x00000000-0x00040000 : "RedBoot"
0x00040000-0x00100000 : "kernel"
0x00100000-0x003e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=1D0000, len=210000
0x001d0000-0x003e0000 : "rootfs_data"
0x003e0000-0x003ef000 : "FIS directory"
0x003ef000-0x003f0000 : "RedBoot config"
0x003f0000-0x00400000 : "boardconfig"
Atheros AR71xx hardware watchdog driver version 0.1.0
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>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -

Please press Enter to activate this console. ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs



BusyBox v1.11.3 (2008-11-13 15:43:53 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r13276) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# uname -a
Linux OpenWrt 2.6.26.8 #4 Tue Nov 18 15:41:43 CET 2008 mips unknown
root@OpenWrt:/# cat /proc/cpuinfo
system type             : Atheros AR7130 rev 1 (id:0xa4)
processor               : 0
cpu model               : MIPS 24K V7.4
BogoMIPS                : 199.88
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@OpenWrt:/#

Regards,
Gabor

Hi, Gabor.

Openwrt is running? in spite of arriving yesterday? Great... Really...
Thanks for reporting!

regards,

zukky

I recently got my hands on one of these routers and subsequently managed to semi-brick it as the web interface fails to perform sanity checks on some input (vulnerable to code injection).

You can gain serial access through the 5-pin unpopulated header (J31), from memory I believe it's (vcc, tx, rx, ?, gnd) **corrected.

Has anyone other than juhosg got OpenWrt running on this router? For now I'm just going to try and make a backup of the existing kernel+root (**done) and perhaps modify the latter to suit my needs better.

(Last edited by cralegna on 27 Mar 2009, 18:05)

Hi,

I am investigating and trying to install via jtag the openwrt in these routers.

Could you send me one, please.............?

If you could, send it by regular air mail, do not use any courier service.........!

My address is :

Joaquin Sorolla 123, San Borja
Lima 41 - Peru

Best regards,

Jose Nunez

The discussion might have continued from here.