From owner-freebsd-arm@FreeBSD.ORG Mon Jul 8 18:36:16 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 D1DB977E for ; Mon, 8 Jul 2013 18:36:16 +0000 (UTC) (envelope-from beattidp@ieee.org) Received: from mail22c40.carrierzone.com (mail91c40.carrierzone.com [209.235.156.231]) by mx1.freebsd.org (Postfix) with ESMTP id 677FE117E for ; Mon, 8 Jul 2013 18:36:15 +0000 (UTC) X-Authenticated-User: douglas.hytherion.com Received: from [192.168.0.114] (75-169-17-71.slkc.qwest.net [75.169.17.71]) (authenticated bits=0) by mail22c40.carrierzone.com (8.13.6/8.13.1) with ESMTP id r68HbLpO027792; Mon, 8 Jul 2013 17:37:23 +0000 Subject: Re: NFS root on BeagleBone Black Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Douglas Beattie In-Reply-To: <20130708054342.GB26412@funkthat.com> Date: Mon, 8 Jul 2013 11:37:21 -0600 Content-Transfer-Encoding: 7bit Message-Id: References: <0D94186F-F592-44C4-9F76-9E4B4B487468@ieee.org> <20130708054342.GB26412@funkthat.com> To: John-Mark Gurney , Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1283) X-CSC: 0 X-CHA: v=2.0 cv=RPEE6fe+ c=1 sm=1 a=QH74cCGCLv9v+F+JjM4yLg==:17 a=MBMVG3oL1wwA:10 a=ONEJXaA8-E4A:10 a=kj9zAlcOel0A:10 a=o83nqyVRAAAA:8 a=BylB1hYzb_8A:10 a=IqgaevIMAAAA:8 a=DlOy9Xx6AAAA:8 a=8MOz2NTTJ9rmotZEvHcA:9 a=CjuIK1q_8ugA:10 a=uEJnEaZt4sIA:10 a=M2ilE35d0hjmwE8p:21 a=uzwGtA6W7_nA3-Lw:21 a=QH74cCGCLv9v+F+JjM4yLg==:117 X-CTCH-RefID: str=0001.0A020201.51DAF8D4.0136, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 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: Mon, 08 Jul 2013 18:36:16 -0000 On Jul 7, 2013, at 11:43 PM, John-Mark Gurney wrote: > Douglas Beattie wrote this message on Sun, Jul 07, 2013 at 23:06 -0600: >> >> options NFS_ROOT #NFS usable as /, requires NFSCL >> options ROOTDEVNAME=\"nfs:192.168.0.198:/opt/tftpboot/beaglebone\" > > Do you have: > options BOOTP > > in your kernel to give the interface an ip address? I don't see > anything in your dmesg about the kernel trying to get an ip address > before it tries to nfs mount root. > > There isn't any communication from U-Boot to the kernel on what the ip > address is suppose to be... The kernel needs to rediscover it itself. I tried enabling 'BOOTP' and related options at first, but reverted to only 'NFS_ROOT', since I don't have a BOOTP service. On 2013-07-07, at 10:43 PM, Oleksandr Tymoshenko wrote: > > FWIW here is my kernel config for NFS root (my NFS server is -CURRENT): > # NFS support > options NFSCL > options NFSLOCKD > > # Uncomment this for NFS root > options NFS_ROOT #NFS usable as /, requires NFSCL > options BOOTP_NFSROOT > options BOOTP_COMPAT > options BOOTP > options BOOTP_NFSV3 > options BOOTP_WIRED_TO=cpsw0 > Exactly as I had it in the first place, but it got stuck endlessly like this: ... bootpc_init: wired to interface 'cpsw0' Sending DHCP Discover packet from interface cpsw0 (c8:a0:30:c4:2c:6f) cpsw0: link state changed to DOWN cpsw0: link state changed to UP DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 Perhaps I can tell it explicitly where the DHCP server is located? (of course it's the gateway, 192.168.0.1). - - - - - - - - - Thank you for the suggestions so far. Incidentally, I purchased a BeagleBone Black in hopes of working with and watching FreeBSD stabilize on it, and then using it for the main DHCP server on my home LAN, possibly also with BIND for LAN-local machine lookups. -- Douglas Beattie http://www.hytherion.com/beattidp/