From owner-freebsd-arm@FreeBSD.ORG Sun Mar 24 04:02:27 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8C13BA50 for ; Sun, 24 Mar 2013 04:02:27 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by mx1.freebsd.org (Postfix) with ESMTP id 65ED6AD4 for ; Sun, 24 Mar 2013 04:02:27 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UJarb-000BZO-Mc; Sun, 24 Mar 2013 02:40:51 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r2O2em77007510; Sat, 23 Mar 2013 20:40:49 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18sbjKc9oyCtawwi8h27JVY Subject: Re: Net booting current snapshot on openrd and sheevaplug From: Ian Lepore To: Jeff Penn In-Reply-To: <20130323231302.GA60043@jrpenn.demon.co.uk> References: <20130323183037.GA39897@beastie.jrpenn.demon.co.uk> <1364067518.1157.163.camel@revolution.hippie.lan> <20130323231302.GA60043@jrpenn.demon.co.uk> Content-Type: text/plain; charset="us-ascii" Date: Sat, 23 Mar 2013 20:40:48 -0600 Message-ID: <1364092848.1157.165.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Mar 2013 04:02:27 -0000 On Sat, 2013-03-23 at 23:13 +0000, Jeff Penn wrote: > On Sat, Mar 23, 2013 at 01:38:38PM -0600, Ian Lepore wrote: > > On Sat, 2013-03-23 at 18:30 +0000, Jeff Penn wrote: > > > I'm having problems net booting following the instruction on the > > > wiki. The kernel networking is failing on an openrd ultimate. My > > > sheevaplug gets as far as completing the DHCP request, but does not > > > generate any NFS traffic. Both systems run Debian, ruling out hardware. > > > Netbooting works on my similar DreamPlug systems using -current. I'm > > using the DREAMPLUG-1001 dts file and kernel config that are checked in, > > but with the BOOTP and NFSROOT options added. > > > > For the OpenRD it looks like the problem is that it can't find the phy. > > I've seen these *Plug systems use either 0 and 1 or 8 and 24 as the phy > > addresses for mge0 and mge1 respectively; you might try changing those > > in the dts file. In theory a phy address of -1 should work for mge0 to > > have it probe for a phy, but that's from looking at the code, I've never > > tried it. > > This got me a bit further, I'm still experimenting with values. I've > tried setting the reg in sys/boot/fdt/dts/db88f6281.dts and rebuilding > the kernel (I'm not a developer). The boot gets further and is now > failing to transmit a DHCP request (dmesg below). I'll spend more time > on this next week. > > enet0: ethernet@72000 { > #address-cells = <1>; > #size-cells = <1>; > model = "V2"; > compatible = "mrvl,ge"; > reg = <0x72000 0x2000>; > ranges = <0x0 0x72000 0x2000>; > local-mac-address = [ 00 00 00 00 00 00 ]; > interrupts = <12 13 14 11 46>; > interrupt-parent = <&PIC>; > phy-handle = <&phy0>; > > mdio@0 { > #address-cells = <1>; > #size-cells = <0>; > compatible = "mrvl,mdio"; > > phy0: ethernet-phy@0 { > reg = <0xFFFFFFFF>; > }; > }; > }; > > > For the Sheeva, I'm not sure what would lead to those RPC timeouts, I've > > never seen that happen. I've got all these options for nfs root: > > > > options NFSCL > > options NFSLOCKD > > options NFS_ROOT > > options BOOTP > > options BOOTP_NFSROOT > > options BOOTP_NFSV3 > > options BOOTP_WIRED_TO=mge0 > > Those are in the default kernel configs for both systems. > > thanks > Jeff > > ..... > mge0: mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on simplebus0 > mge0: Ethernet address: f0:ad:4e:00:61:58 > miibus0: on mge0 > e1000phy0: PHY 0 on miibus0 > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > e1000phy1: PHY 1 on miibus0 > e1000phy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > ifmedia_match: multiple match for 0x20/0xfffffff > uart0: <16550 or compatible> mem 0xf1012000-0xf101201f irq 33 on simplebus0 > uart0: console (115740,n,8,1) > uart1: <16550 or compatible> mem 0xf1012100-0xf101211f irq 34 on simplebus0 > cesa0: mem 0xf1030000-0xf103ffff irq 22 on simplebus0 > ehci0: mem 0xf1050000-0xf1050fff irq 48,19 on simplebus0 > usbus0: EHCI version 1.0 > usbus0: set host controller mode > usbus0 on ehci0 > mvs0: mem 0xf1080000-0xf1085fff irq 21 on simplebus0 > mvs0: Gen-IIe, 2 3Gbps ports, Port Multiplier supported with FBS > mvsch0: at channel 0 on mvs0 > mvsch1: at channel 1 on mvs0 > pcib0: mem 0xf1040000-0xf1041fff irq 44 on fdtbus0 > pcib0: PCI IO/Memory space exhausted > device_attach: pcib0 attach returned 12 > cryptosoft0: > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > bootpc_init: wired to interface 'mge0' > mge0: Timeout on link-up > mge0: Timeout on link-up > Sending DHCP Discover packet from interface mge0 (f0:ad:4e:00:61:58) What was the value before you changed it to -1? It looks like it probed and found both 0 and 1, maybe that confused it. If the value wasn't zero originally, I'd say change it to that. If that amounts to changing it back to what it was, the problem must be elsewhere. -- Ian