Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2010 21:50:00 +0100
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Alexander Mogilny <sg@sg.org.ua>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: RouterBOARD RB450G
Message-ID:  <D4C629B4-CB20-4DD2-BF6A-624105C3CBD9@FreeBSD.org>
In-Reply-To: <9C6B899F-0361-4E20-A9C4-20C002A3CA1D@sg.org.ua>
References:  <9C6B899F-0361-4E20-A9C4-20C002A3CA1D@sg.org.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 Jun 2010, at 13:05, Alexander Mogilny wrote:

> 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.
>=20
> 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:
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D
> RouterBOOT booter 2.23
> RouterBoard 450G
> CPU frequency: 680 MHz
>  Memory size: 256 MB
>=20
> 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=3D3.02s
> setting up elf image... OK
> jumping to kernel code
> platform frequency: 680000000
> arguments:=20
>  a0 =3D 00000008
>  a1 =3D a0861c00
>  a2 =3D 00000000
>  a3 =3D 00000000
> Cmd line: console=3DttyS0,115200 gpio=3D1983 HZ=3D340000000 mem=3D256M =
kmac=3D00:0C:42:59:30:FF board=3D450G boot=3D1 mlc=3D2
> Environment:
> envp is invalid
> Cache info:
>  picache_stride    =3D 4096
>  picache_loopcount =3D 16
>  pdcache_stride    =3D 4096
>  pdcache_loopcount =3D 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=3D0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
>  Config3=3D0x20
> 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@tbilisi.intra:/usr/obj/mips/mips/usr/src.mips/sys/MIKROTIK =
mips
> WARNING: WITNESS option enabled, expect reduced performance.
> real memory  =3D 33554432 (32768K bytes)
> avail memory =3D 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)
>=20
> ...
> [ skipped ]
> ...
>=20
> 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
> =3D=3D=3D=3D=3D=3D=3D
>=20
> As you can see ethernet card got incorrect ethernet address.
> What could cause this? Perhaps I can somehow give you some more
> debug information?
>=20
> Kern conf and hints file are in attachment.

How are you booting your kernel? If you typed 'go' instead of 'exec', =
bad things like these can happen.

Regards,
--
Rui Paulo





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D4C629B4-CB20-4DD2-BF6A-624105C3CBD9>