RouterBOARD RB450G

Alexander Mogilny sg at sg.org.ua
Fri Jun 11 12:45:32 UTC 2010


Hi all!
I have recently purchased RB450G router and was not
satisfied with RouterOS so I decided to install FreeBSD
on this device.
There are some issues with starting FreeBSD on this device
so I would like to help community to fix some code and get
this device working.

Default AR71XX kernel failed to boot. Boot process stopped
at ohci device detection (it just hanged). When I commented
it out in hints file I got following:

========
RouterBOOT booter 2.23
RouterBoard 450G
CPU frequency: 680 MHz
  Memory size: 256 MB

Press any key within 2 seconds to enter setup..
Please, check ethernet cable...
trying bootp protocol... OK
Got IP address: 172.16.0.40
resolved mac address 00:E0:81:49:87:F7
Gateway: 172.16.0.1
transfer started ...................................... transfer ok, time=3.02s
setting up elf image... OK
jumping to kernel code
platform frequency: 680000000
arguments: 
  a0 = 00000008
  a1 = a0861c00
  a2 = 00000000
  a3 = 00000000
Cmd line: console=ttyS0,115200 gpio=1983 HZ=340000000 mem=256M kmac=00:0C:42:59:30:FF board=450G boot=1 mlc=2
Environment:
envp is invalid
Cache info:
  picache_stride    = 4096
  picache_loopcount = 16
  pdcache_stride    = 4096
  pdcache_loopcount = 8
cpu0: MIPS Technologies processor v116.147
  MMU: Standard TLB, 16 entries
  L1 i-cache: 4 ways of 512 sets, 32 bytes per line
  L1 d-cache: 4 ways of 256 sets, 32 bytes per line
  Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
  Config3=0x20
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #17: Thu Jun 10 14:40:34 EEST 2010
    root at tbilisi.intra:/usr/obj/mips/mips/usr/src.mips/sys/MIKROTIK mips
WARNING: WITNESS option enabled, expect reduced performance.
real memory  = 33554432 (32768K bytes)
avail memory = 25894912 (24MB)
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
clock0: [FILTER]
apb0 at irq 4 on nexus0
apb0: [FILTER]
uart0: <16550 or compatible> on apb0
uart0: [FILTER]
uart0: console (115200,n,8,1)
ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff irq 1 on nexus0
ehci0: [ITHREAD]
usbus0: set host controller mode
usbus0: EHCI version 1.0
usbus0: set host controller mode
usbus0: <AR71XX Integrated USB 2.0 controller> on ehci0
pcib0 at irq 0 on nexus0
pcib0: [FILTER]
pci0: <PCI bus> on pcib0
pci0: <old, non-VGA display device> at device 0.0 (no driver attached)

...
[ skipped ]
...

pci0: <old, non-VGA display device> at device 31.0 (no driver attached)
arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0
miibus0: <MII bus> on arge0
ukphy0: <Generic IEEE 802.3u media interface> PHY 4 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
arge0: Ethernet address: 62:73:64:40:64:4b
arge0: [FILTER+ITHREAD]
arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0
arge1: Ethernet address: 62:73:64:ca:db:ce
arge1: [FILTER+ITHREAD]
spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0
spibus0: <spibus bus> on spi0
spibus0: <unknown card> at cs 1
mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0
Unknown SPI flash device. Vendor: ff, device id: ffff
device_attach: mx25l0 attach returned 6
ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
Timecounter "MIPS32" frequency 340000000 Hz quality 800
Timecounters tick every 1.000 msec
bootpc_init: wired to interface 'arge0'
Sending DHCP Discover packet from interface arge0 (62:73:64:40:64:4b)
arge0: link state changed to DOWN
usbus0: 480Mbps High Speed USB v2.0
ugen0.1: <Atheros> at usbus0
uhub0: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
uhub0: 2 ports with 2 removable, self powered
DHCP/BOOTP timeout for server 255.255.255.255
arge0: link state changed to UP
=======

As you can see ethernet card got incorrect ethernet address.
What could cause this? Perhaps I can somehow give you some more
debug information?

Kern conf and hints file are in attachment.

-- 
AIM-UANIC | AIM-RIPE  +-----[ FreeBSD ]-----+
Alexander Mogilny     | The Power to Serve! |
<> sg at sg.org.ua       +---------------------+

-------------- next part --------------
A non-text attachment was scrubbed...
Name: AR71XX.hints
Type: application/octet-stream
Size: 2349 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20100611/245233dc/AR71XX.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmesg.boot
Type: application/octet-stream
Size: 5727 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20100611/245233dc/dmesg.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MIKROTIK
Type: application/octet-stream
Size: 2075 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20100611/245233dc/MIKROTIK.obj
-------------- next part --------------




More information about the freebsd-mips mailing list