Hi Gabor ... good work!
This is the results of my testing from r7639, which is built entirely from svn (No external changes).
RB-133 with 1 PCI Card - abbreviated dmesg.
loading kernel from nand... OK
setting up elf image... OK
jumping to kernel code
mem_detect: checking for 64MB chip
mem_detect: 1st pattern at 0x200000 is 0x00
mem_detect: 1st pattern at 0x400000 is 0xff
mem_detect: 1st pattern at 0x800000 is 0x00
mem_detect: 1st pattern at 0x1000000 is 0x55
mem_detect: 2nd pattern at 0x1000000 is 0x55
mem_detect: mirrored data found at 0x1000000
mem_detect: 16MB chip found
mem_detect: 16MB memory found
Linux version 2.6.21.5 (ielbury@nbdev) (gcc version 4.1.2) #1 Fri Jun 15 13:17:13 PDT 2007
ADM5120 revision 8, running at 175MHz
Boot loader is: RouterBOOT
Booted from : NAND flash
Board is : RouterBOARD 133
Memory size : 16MB
CPU revision is: 0001800b
ADM5120 board setup
Determined physical RAM map:
memory: 00d2d000 @ 002d3000 (usable)
Wasting 23136 bytes for tracking 723 unused pages
...
PCI: mapping irq for device 0000:00:01.0, slot:1, pin:1, irq:6
...
RB-133C with 3 PCI Cards - abbreviated dmesg.
loading kernel from nand... OK
setting up elf image... OK
jumping to kernel code
mem_detect: checking for 64MB chip
mem_detect: 1st pattern at 0x200000 is 0x00
mem_detect: 1st pattern at 0x400000 is 0x7f
mem_detect: 1st pattern at 0x800000 is 0x00
mem_detect: 1st pattern at 0x1000000 is 0x00
mem_detect: 1st pattern at 0x2000000 is 0x55
mem_detect: 2nd pattern at 0x2000000 is 0x55
mem_detect: mirrored data found at 0x2000000
mem_detect: 32MB chip found
mem_detect: 32MB memory found
Linux version 2.6.21.5 (ielbury@nbdev) (gcc version 4.1.2) #1 Fri Jun 15 13:17:13 PDT 2007
ADM5120 revision 8, running at 175MHz
Boot loader is: RouterBOOT
Booted from : NAND flash
Board is : RouterBOARD 133
Memory size : 32MB
CPU revision is: 0001800b
ADM5120 board setup
Determined physical RAM map:
memory: 01d2d000 @ 002d3000 (usable)
Wasting 23136 bytes for tracking 723 unused pages
...
PCI: mapping irq for device 0000:00:01.0, slot:1, pin:1, irq:6
PCI: mapping irq for device 0000:00:02.0, slot:2, pin:1, irq:7
PCI: mapping irq for device 0000:00:03.0, slot:3, pin:1, irq:8
...
ath_pci: 0.9.4.5 (svn r2420)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
ath_pci: switching rfkill capability off
ath_pci: ath_pci: switching per-packet transmit powe
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 3
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbp
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mb
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 10.5 phy 6.1 radio 6.3
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 5212: mem=0x11400000, irq=6
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
wifi%d: request_irq failed
...
RB-133C with 3 PCI Cards - /proc/interrupts
root@TestGateway:/# cat /proc/interrupts
CPU0
2: 0 MIPS cascade [INTC]
6: 0 MIPS wifi0
7: 20767 MIPS timer
8: 0 INTC wifi1
9: 145 INTC ADM5120 UART
17: 29 INTC ethernet switch
ERR: 0
RB-133C with 3 PCI Cards - iwconfig.
root@TestGateway:/# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
eth2 no wireless extensions.
br-lan no wireless extensions.
imq0 no wireless extensions.
imq1 no wireless extensions.
wifi0 no wireless extensions.
ath0 IEEE 802.11g ESSID:"XXXXXX" Nickname:""
Mode:Managed Frequency:2.427 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s Tx-Power:0 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:XXXXXXXXX Security mode:restricted
Power Management:off
Link Quality=0/127 Signal level=-256 dBm Noise level=-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Results:
- The memory detection logic is working.
- PCI interrupt mapping is not correct. There is a conflict with the timer IRQ <-> PCI slot 2.
- None of the Wifi PCI cards are working anymore on both the 133 and 133C.
Cheers,
Ian
(Last edited by osmosis on 15 Jun 2007, 22:31)