From owner-freebsd-arm@freebsd.org Thu Sep 24 17:52:43 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC1EBA08CDB for ; Thu, 24 Sep 2015 17:52:43 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6BF17107B; Thu, 24 Sep 2015 17:52:43 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id ECA811FE023; Thu, 24 Sep 2015 19:52:39 +0200 (CEST) Subject: Re: NFS Root with Raspberry Pi (nfs_diskless: no interface) To: Randy Westlund , Ian Lepore References: <20150922052522.GA62140@gmail.com> <00C49FEB-E8EF-4469-85E2-0F901215CD11@cs.huji.ac.il> <20150923050414.GB43653@gmail.com> <91AAC64E-4C38-47AA-8910-48F7654A7524@cs.huji.ac.il> <20150923174445.GE43653@gmail.com> <1443105426.1224.272.camel@freebsd.org> <20150924163658.GC32257@gmail.com> Cc: freebsd-arm@freebsd.org From: Hans Petter Selasky Message-ID: <560438C5.3090404@selasky.org> Date: Thu, 24 Sep 2015 19:54:13 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150924163658.GC32257@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 17:52:43 -0000 On 09/24/15 18:36, Randy Westlund wrote: > On Thu, Sep 24, 2015 at 08:37:06AM -0600, Ian Lepore wrote: >> Try setting boot.netif.name="ue0" in loader.conf. I've never tried >> that, but in looking at the code, there's some chance it could work. :) >> >> What I do is put these options into my RPi kernel config: >> >> options BOOTP >> options BOOTP_NFSROOT >> options BOOTP_NFSV3 >> options BOOTP_WIRED_TO=ue0 >> >> But this requires configuring a bootp or dhcp server to provide the >> info. It should be possible to netboot without using BOOTP. >> >> -- Ian > > No luck with boot.netif.name. > > I'm using the kernel that comes in the FreeBSD RPI-B disk image. Is > there a way to see what it was built with? I tried running strings on > the kernel, but I'm not sure what to look for. Otherwise I guess I'll > build one myself. > > Randy > Hi, The problem is that the code in: sys/nfs/bootp_subr.c: SYSINIT(bootp_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, bootpc_init, NULL); doesn't wait for the USB ethernet device to be enumerated. Only the vfs_mountroot() code which is running from the init-process does so. Not sure what the best way to solve this is. Try putting: pause("W", hz * 4); Into the beginning of the "bootpc_init()" function. --HPS