The only ehternet port that functions on my RB493AH is the WAN port, eth0. eth1 is found but the IPC178+ switch isn't initialized so no LAN ports will ping transmit or receive. I'm using the latest SVN co of the Kamikaze trunk. Using make menuconfig I reset and then set up for the AR7100 target. It builds fine but no LAN ports.
Here's the dmesg, note the:
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: connected to PHY at 0:00 [uid=02430d80, driver=Generic PHY]
I believe the driver should equal something specifically for the IC178+ switch.
root@OpenWrt:/# dmesg
Linux version 2.6.28.5 (rob@Server) (gcc version 4.1.2) #2 Sun Feb 15 12:24:52 E
ST 2009
prom: fw_arg0=00000007, fw_arg1=a0861c00, fw_arg2=00000000, fw_arg3=00000000
MyLoader: sysp=55555555, boardp=55555555, parts=55555555
console [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7161 rev 2 (id:0xaa), CPU:680.000 MHz, AHB:170.000 MHz, DDR:340.000 MH
z
Determined physical RAM map:
memory: 08000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00008000
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat 80275800, node_mem_map 81000000
Normal zone: 256 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 32512 pages, LIFO batch:7
Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,1152
00 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=00000800
Readback ErrCtl register=00000800
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 127004k/131072k available (1816k kernel code, 3892k reserved, 326k data,
132k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
Mount-cache hash table entries: 512
net_namespace: 480 bytes
NET: Registered protocol family 16
MIPS: machine is MikroTik RouterBOARD 493/AH
registering PCI controller with io_map_base unset
pci 0000:00:00.0: reg 10 32bit mmio: [0x000000-0xfffffff]
pci 0000:00:00.0: reg 14 io port: [0x00-0xff]
pci 0000:00:00.0: supports D1 D2
pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:00.0: PME# disabled
pci 0000:00:12.0: reg 10 32bit mmio: [0x000000-0x00ffff]
pci 0000:00:14.0: reg 10 32bit mmio: [0x000000-0x00ffff]
pci 0000:00:14.0: PME# supported from D0 D3hot
pci 0000:00:14.0: PME# disabled
PCI: mapping irq 32 to pin1@0000:00:12.0
PCI: mapping irq 34 to pin1@0000:00:14.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: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
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 Feb 15 2009 07:20:20 Installing.
msgmni has been set to 248
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver1 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
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: connected to PHY at 0:00 [uid=02430d80, driver=Generic PHY] <<<<<**************************
NAND flash driver for RouterBoard 4xx series version 0.1.10
NAND SPI clock 28333 kHz (AHB 170000 kHz / 6)
FLASH SPI clock 28333 kHz (AHB 170000 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: error occured while reading from "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=25)
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>
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
save exit: isCheckpointed 0
ar71xx: pll_reg 0xb8050010: 0x1099
eth0: link up (100Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
device eth1 entered promiscuous mode
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
PCI: Enabling device 0000:00:14.0 (0000 -> 0002)
ar71xx: pll_reg 0xb8050014: 0x1099
eth1: link up (100Mbps/Full duplex)
br-lan: port 1(eth0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 2(eth1) entering forwarding state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
phy0: Selected rate control algorithm 'ath9k_rate_control'
cfg80211: Calling CRDA for country: AM
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR9160 MAC/BB Rev:0 AR5133 RF Rev:b0: mem=0xb0010000, irq=34
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5
413, 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
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36
Mbps 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 5212: mem=0x10000000, irq=32
device wlan0 entered promiscuous mode
wlan0: deauthenticating by local choice (reason=3)
br-lan: port 3(wlan0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 3(wlan0) entering forwarding state
br-lan: port 3(wlan0) entering disabled state
device ath0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 4(ath0) entering forwarding state
ar71xx-wdt: enabling watchdog timer
root@OpenWrt:/#
Here's the lsmod:
root@OpenWrt:/# lsmod
Module Size Used by Tainted: P
ath_pci 107824 0
wlan_xauth 416 0
wlan_wep 3584 0
wlan_tkip 8928 0
wlan_ccmp 4992 0
wlan_acl 2048 0
ath_rate_minstrel 8384 1
ath_hal 291264 3 ath_pci,ath_rate_minstrel
wlan_scan_sta 7168 0
wlan_scan_ap 4544 1
wlan 148880 10 ath_pci,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp
,wlan_acl,ath_rate_minstrel,wlan_scan_sta,wlan_scan_ap
nf_nat_tftp 416 0
nf_conntrack_tftp 2416 1 nf_nat_tftp
nf_nat_irc 832 0
nf_conntrack_irc 2752 1 nf_nat_irc
nf_nat_ftp 1408 0
nf_conntrack_ftp 4864 1 nf_nat_ftp
ipt_MASQUERADE 1120 1
iptable_nat 2864 1
nf_nat 10752 5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE
,iptable_nat
xt_state 800 6
nf_conntrack_ipv4 7744 9 iptable_nat,nf_nat
nf_defrag_ipv4 640 1 nf_conntrack_ipv4
nf_conntrack 39280 11 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_con
ntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_stat
e,nf_conntrack_ipv4
ipt_REJECT 1792 2
xt_TCPMSS 1984 1
ipt_LOG 4480 0
xt_multiport 1824 0
xt_mac 544 0
xt_limit 1024 1
iptable_mangle 1120 0
iptable_filter 928 1
ip_tables 8144 3 iptable_nat,iptable_mangle,iptable_filter
xt_tcpudp 1824 3
x_tables 8944 11 ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,
xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ppp_async 6720 0
ppp_generic 20320 1 ppp_async
slhc 4416 1 ppp_generic
ath9k 241952 0
mac80211 194528 1 ath9k
cfg80211 36576 2 ath9k,mac80211
crc_ccitt 960 1 ppp_async
arc4 800 2
aes_generic 28656 0
deflate 1504 0
hmac 2720 0
ecb 1376 2
cbc 2144 0
crypto_hash 2624 1 hmac
cryptomgr 70800 0
crypto_blkcipher 7664 3 ecb,cbc,cryptomgr
aead 3744 1 cryptomgr
crypto_algapi 9152 9 arc4,aes_generic,deflate,hmac,ecb,cbc,cryptomgr,
crypto_blkcipher,aead
root@OpenWrt:/#
root@OpenWrt:/# lsmod
Module Size Used by Tainted: P
ath_pci 107824 0
wlan_xauth 416 0
wlan_wep 3584 0
wlan_tkip 8928 0
wlan_ccmp 4992 0
wlan_acl 2048 0
ath_rate_minstrel 8384 1
ath_hal 291264 3 ath_pci,ath_rate_minstrel
wlan_scan_sta 7168 0
wlan_scan_ap 4544 1
wlan 148880 10 ath_pci,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp
,wlan_acl,ath_rate_minstrel,wlan_scan_sta,wlan_scan_ap
nf_nat_tftp 416 0
nf_conntrack_tftp 2416 1 nf_nat_tftp
nf_nat_irc 832 0
nf_conntrack_irc 2752 1 nf_nat_irc
nf_nat_ftp 1408 0
nf_conntrack_ftp 4864 1 nf_nat_ftp
ipt_MASQUERADE 1120 1
iptable_nat 2864 1
nf_nat 10752 5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE
,iptable_nat
xt_state 800 6
nf_conntrack_ipv4 7744 9 iptable_nat,nf_nat
nf_defrag_ipv4 640 1 nf_conntrack_ipv4
nf_conntrack 39280 11 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_con
ntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_stat
e,nf_conntrack_ipv4
ipt_REJECT 1792 2
xt_TCPMSS 1984 1
ipt_LOG 4480 0
xt_multiport 1824 0
xt_mac 544 0
xt_limit 1024 1
iptable_mangle 1120 0
iptable_filter 928 1
ip_tables 8144 3 iptable_nat,iptable_mangle,iptable_filter
xt_tcpudp 1824 3
x_tables 8944 11 ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,
xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ppp_async 6720 0
ppp_generic 20320 1 ppp_async
slhc 4416 1 ppp_generic
ath9k 241952 0
mac80211 194528 1 ath9k
cfg80211 36576 2 ath9k,mac80211
crc_ccitt 960 1 ppp_async
arc4 800 2
aes_generic 28656 0
deflate 1504 0
hmac 2720 0
ecb 1376 2
cbc 2144 0
crypto_hash 2624 1 hmac
cryptomgr 70800 0
crypto_blkcipher 7664 3 ecb,cbc,cryptomgr
aead 3744 1 cryptomgr
crypto_algapi 9152 9 arc4,aes_generic,deflate,hmac,ecb,cbc,cryptomgr,
crypto_blkcipher,aead
root@OpenWrt:/#
root@OpenWrt:/# ifconfig
ath0 Link encap:Ethernet HWaddr 00:0C:42:2B:41:74
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:15662 (15.2 KiB)
br-lan Link encap:Ethernet HWaddr 00:0C:42:2B:41:74
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19438 (18.9 KiB) TX bytes:1918 (1.8 KiB)
eth0 Link encap:Ethernet HWaddr 00:0C:42:33:2B:86
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20586 (20.1 KiB) TX bytes:1918 (1.8 KiB)
Interrupt:4
eth1 Link encap:Ethernet HWaddr 00:0C:42:33:2B:87
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:20124 (19.6 KiB)
Interrupt:5
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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:448 (448.0 B) TX bytes:448 (448.0 B)
wifi0 Link encap:UNSPEC HWaddr 00-0C-42-2B-41-74-00-4C-00-00-00-00-00-00-00
-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2041 errors:0 dropped:0 overruns:0 frame:4
TX packets:1834 errors:33 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:195
RX bytes:147006 (143.5 KiB) TX bytes:194834 (190.2 KiB)
Interrupt:32
root@OpenWrt:/#
root@OpenWrt:/# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br-lan no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11abgn Mode:Master Frequency:2.432 GHz Tx-Power=20 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 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
wifi0 no wireless extensions.
ath0 IEEE 802.11a ESSID:"OpenWrtMad" Nickname:""
Mode:Master Frequency:5.2 GHz Access Point: 00:0C:42:2B:41:74
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:293 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@OpenWrt:/#
Anyone see what would cause the LAN ports to not function?
Thanks in advance,
Rob