From owner-freebsd-mips@FreeBSD.ORG Fri Jun 11 20:50:05 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E36AC1065678 for ; Fri, 11 Jun 2010 20:50:05 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 7736D8FC14 for ; Fri, 11 Jun 2010 20:50:05 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 03FA016F5CC; Fri, 11 Jun 2010 15:50:04 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id PPVQ8R1PZK0L; Fri, 11 Jun 2010 15:50:03 -0500 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <9C6B899F-0361-4E20-A9C4-20C002A3CA1D@sg.org.ua> Date: Fri, 11 Jun 2010 21:50:00 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <9C6B899F-0361-4E20-A9C4-20C002A3CA1D@sg.org.ua> To: Alexander Mogilny X-Mailer: Apple Mail (2.1078) Cc: freebsd-mips@freebsd.org Subject: Re: RouterBOARD RB450G X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 20:50:06 -0000 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 > 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: > clock0: 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: 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: on ehci0 > pcib0 at irq 0 on nexus0 > pcib0: [FILTER] > pci0: on pcib0 > pci0: at device 0.0 (no driver attached) >=20 > ... > [ skipped ] > ... >=20 > pci0: at device 31.0 (no driver = attached) > arge0: at mem = 0x19000000-0x19000fff irq 2 on nexus0 > miibus0: on arge0 > ukphy0: 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: at mem = 0x1a000000-0x1a000fff irq 3 on nexus0 > arge1: Ethernet address: 62:73:64:ca:db:ce > arge1: [FILTER+ITHREAD] > spi0: at mem 0x1f000000-0x1f00000f on nexus0 > spibus0: on spi0 > spibus0: at cs 1 > mx25l0: at cs 0 on spibus0 > Unknown SPI flash device. Vendor: ff, device id: ffff > device_attach: mx25l0 attach returned 6 > ar71xx_wdog0: 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: at usbus0 > uhub0: 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