Hi,
I've got r10366 for adm5120 built and used wget2nand to downgrade from r10405 to r10366 since r10405 was giving me problems with the ifup/ifdown scripts (which still don't seem to do anything other than say interface not found).
Now I'm not sure if I selected all the appropriate wireless options for the image. I selected anything I thought I might need, but probably missed some things.
I'm trying to get the RB133 to work as an access point but it doesn't seem to be broadcasting its SSID. I have an atheros card in it at the moment. I don't think I included hostapd in the image so if it is required that could be a problem.
Here is the output from 'dmesg':
Linux version 2.6.23.14 (jcm@red1) (gcc version 4.1.2) #1 Tue Feb 26 11:56:51 HST 2008
console [early0] enabled
CPU revision is: 0001800b
SoC : ADM5120 revision 8, running at 175MHz
Bootdev : NAND flash
Prom : RouterBOOT
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
On node 0 totalpages: 4096
Normal zone: 32 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 4064 pages, LIFO batch:0
Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order. Total pages: 4064
Kernel command line: root=/dev/mtdblock3 rootfstype=yaffs2 init=/etc/preinit
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 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).
PID hash table entries: 64 (order: 6, 256 bytes)
Using 87.500 MHz high precision timer.
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13820k/16384k available (1852k kernel code, 2564k reserved, 327k data, 124k init, 0k highmem)
Calibrating delay loop... 173.05 BogoMIPS (lpj=346112)
Mount-cache hash table entries: 512
adm5120: registered board 'Generic ADM5120 board'
adm5120: registered board 'Cellvision NFS-101U/101WU'
adm5120: registered board 'Cellvision CAS-861/861W'
adm5120: registered board 'Cellvision CAS-790'
adm5120: registered board 'Cellvision CAS-771/771W'
adm5120: registered board 'Cellvision CAS-700/700W'
adm5120: registered board 'Cellvision CAS-670/670W'
adm5120: registered board 'Cellvision CAS-630/630W'
adm5120: registered board 'Compex WPP54G'
adm5120: registered board 'Compex WPP54AG'
adm5120: registered board 'Compex WP54G-WRT'
adm5120: registered board 'Compex WP54G'
adm5120: registered board 'Compex WP54AG'
adm5120: registered board 'Compex NetPassage 28G'
adm5120: registered board 'Compex NetPassage 27G'
adm5120: registered board 'Edimax BR-6104WG/6114WG'
adm5120: registered board 'Edimax BR-6104K/6104KP'
adm5120: registered board 'Infineon EASY 83000 Reference Board'
adm5120: registered board 'Infineon EASY 5120-WVoIP Reference Board'
adm5120: registered board 'Infineon EASY 5120-RT Reference Board'
adm5120: registered board 'Infineon EASY 5120P-ATA Reference Board'
adm5120: registered board 'Mikrotik RouterBOARD 192'
adm5120: registered board 'Mikrotik RouterBOARD 153'
adm5120: registered board 'Mikrotik RouterBOARD 150'
adm5120: registered board 'Mikrotik RouterBOARD 133C'
adm5120: registered board 'Mikrotik RouterBOARD 133'
adm5120: registered board 'Mikrotik RouterBOARD 112'
adm5120: registered board 'Mikrotik RouterBOARD 111'
adm5120: registered board 'ZyXEL Prestige 335/335WT'
adm5120: registered board 'ZyXEL Prestige 334WT'
NET: Registered protocol family 16
adm5120: setting up board 'Mikrotik RouterBOARD 133C'
adm5120: system has PCI BIOS
registering PCI controller with io_map_base unset
PCI: mapping irq for 0000:00:01.0 pin:1, irq:14
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
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 26 2008 11:54:46 Installing.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: AMBA driver $Revision: 1.41 $
APB:UART0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
console handover: boot [early0] -> real [ttyS0]
APB:UART1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
ADM5120 built-in ethernet switch driver version 0.1.1
adm5120-flash.0: probing at 0x1FC00000, size:1024KiB, width:8 bits
CFI: Found no adm5120-flash.0 device at location zero
Found: PMC Pm39LV010
adm5120-flash.0: Found 1 x8 devices at 0x0 in 8-bit bank
adm5120-flash.0: Found an alias at 0x20000 for the chip at 0x0
adm5120-flash.0: Found an alias at 0x40000 for the chip at 0x0
adm5120-flash.0: Found an alias at 0x60000 for the chip at 0x0
adm5120-flash.0: Found an alias at 0x80000 for the chip at 0x0
adm5120-flash.0: Found an alias at 0xa0000 for the chip at 0x0
adm5120-flash.0: Found an alias at 0xc0000 for the chip at 0x0
adm5120-flash.0: Found an alias at 0xe0000 for the chip at 0x0
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x100000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x120000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x140000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x160000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x180000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x1a0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x1c0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x1e0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x200000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x220000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x240000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x260000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x280000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x2a0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x2c0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x2e0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x300000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x320000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x340000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x360000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x380000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x3a0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x3c0000
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x3e0000
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: reducing map size to 128KiB
adm5120-flash.0: found at 0x1FC00000, size:128KiB, width:8 bits
adm5120-flash.0: adding static partitions
Creating 2 MTD partitions on "adm5120-flash.0":
0x00000000-0x00010000 : "booter"
0x00010000-0x00020000 : "firmware"
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-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"
adm5120_wdt: Watchdog Timer version 0.1
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas 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>
trxsplit: searching TRX header in 'booter'
trxsplit: searching TRX header in 'firmware'
trxsplit: 'kernel' is not a NOR flash, skipped
trxsplit: 'rootfs' is not a NOR flash, skipped
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs1
VFS: Mounted root (yaffs2 filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
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'
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
batgat: [init_module:96] batgat loaded rv963
batgat: [init_module:97] I was assigned major number 254. To talk to
batgat: [init_module:98] the driver, create a dev file with 'mknod /dev/batgat c 254 0'.
batgat: [init_module:99] Remove the device file and module when done.
batman-adv: B.A.T.M.A.N. Advanced 0.1-alpha rv963 (compability version 1) loaded
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, REGOPS_F)
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:01.0 (0000 -> 0002)
MadWifi: ath_attach: Switching rfkill capability off
MadWifi: ath_attach: Switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: ath_announce: Use hw queue 1 for WME_AC_BE traffic
wifi0: ath_announce: Use hw queue 0 for WME_AC_BK traffic
wifi0: ath_announce: Use hw queue 2 for WME_AC_VI traffic
wifi0: ath_announce: Use hw queue 3 for WME_AC_VO traffic
wifi0: ath_announce: Use hw queue 8 for CAB traffic
wifi0: ath_announce: Use hw queue 9 for beacons
ath_pci: wifi0: Atheros 5212: mem=0x11400000, irq=14
Registered led device: power
Registered led device: user
Registered led device: lan1_speed
Registered led device: lan1_lnkact
Registered led device: lan2_speed
Registered led device: lan2_lnkact
Registered led device: lan3_speed
Registered led device: lan3_lnkact
device ath0 entered promiscuous mode
br-lan: port 2(ath0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(ath0) entering forwarding state
root@OpenWrt:/etc/config#
Here is my /etc/config/wireless:
root@OpenWrt:/etc/config# cat /etc/config/wireless
config wifi-device wifi0
option type atheros
option channel auto
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1
config wifi-iface
option device wifi0
option network lan
option mode ap
option ssid OpenWrt
option encryption none
and the output of ifconfig. I was surprised to have both ath0 and wifi0. Is this because I included too many wireless drivers in my kernel?
root@OpenWrt:/etc/config# ifconfig
ath0 Link encap:Ethernet HWaddr 00:80:48:4F:03:FD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:652 (652.0 B)
br-lan Link encap:Ethernet HWaddr 00:0C:42:0B:9B:43
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:656 (656.0 B) TX bytes:652 (652.0 B)
eth0 Link encap:Ethernet HWaddr 00:0C:42:0B:9B:43
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:684 (684.0 B) TX bytes:652 (652.0 B)
Interrupt:17
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)
wifi0 Link encap:UNSPEC HWaddr 00-80-48-4F-03-FD-98-0E-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:373 errors:0 dropped:0 overruns:0 frame:45
TX packets:187 errors:14 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:195
RX bytes:19788 (19.3 KiB) TX bytes:22200 (21.6 KiB)
Interrupt:14
I don't know how to proceed to get this RB133 working as an access point. Any thoughts?
And a second question, I have an Asus WL-500gP with a stock broadcom card in it. Apparently kernel 2.6 works with the asus wl-500 and atheros, but not broadcom. Does anyone know why I couldn't put my atheros card from the routerboard in the Asus, and the Asus' broadcom card in the Routerboard?
Thanks for your assistance
-c