From owner-freebsd-arm@freebsd.org Tue Sep 22 05:55:53 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 E7DBCA0576F for ; Tue, 22 Sep 2015 05:55:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A005B1346 for ; Tue, 22 Sep 2015 05:55:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from chamsa.cs.huji.ac.il ([132.65.80.19]) by kabab.cs.huji.ac.il with esmtp id 1ZeGOP-000ArU-FG; Tue, 22 Sep 2015 08:45:29 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: NFS Root with Raspberry Pi (nfs_diskless: no interface) From: Daniel Braniss In-Reply-To: <20150922052522.GA62140@gmail.com> Date: Tue, 22 Sep 2015 08:45:29 +0300 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <00C49FEB-E8EF-4469-85E2-0F901215CD11@cs.huji.ac.il> References: <20150922052522.GA62140@gmail.com> To: Randy Westlund X-Mailer: Apple Mail (2.2104) 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: Tue, 22 Sep 2015 05:55:54 -0000 > On 22 Sep 2015, at 08:25, Randy Westlund wrote: >=20 > I'm trying to boot a Raspberry Pi over the network so I can avoid SD > card woes, but I'm stuck on something. >=20 > I've taken the FreeBSD RPI-B image and moved the files to an NFS share > on a server. Its fstab references the NFS root, but all other files = are > unchanged. >=20 > Thus far, I have the pi loading U-Boot from the SD card and grabbing > ubldr via TFTP. Then ubldr successfully connects to the NFS share and > loads the kernel. >=20 > My problem is when the kernel tries to mount root. I'm getting this > error: >=20 >> usbus0: 480Mbps High Speed USB v2.0 >> bcm2835_cpufreq0: ARM 700MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF >> ugen0.1: at usbus0 >> uhub0: on = usbus0 >> mmcsd0: 4GB at mmc0 = 41.6MHz/4bit/65535-block >> nfs_diskless: no interface >> Root mount waiting for: usbus0 >> uhub0: 1 port with 1 removable, self powered >> ugen0.2: at usbus0 >> uhub1: on usbus0 >> uhub1: MTT enabled >> Root mount waiting for: usbus0 >> uhub1: 3 ports with 2 removable, self powered >> Root mount waiting for: usbus0 >> ugen0.3: at usbus0 >> smsc0: on = usbus0 >> Trying to mount root from nfs:192.168.1.254:/usr/raspi_root [rw]... >> nfs_diskless: no interface >> Mounting from nfs:192.168.1.254:/usr/raspi_root failed with error -1. >>=20 >=20 > I believe "nfs_diskless: no interface" is the important part. The > ethernet port is not ready by the time it tries to mount root. >=20 > The pi uses ethernet over USB and FreeBSD calls the interface ue0. = When > I boot from the SD card, ethernet works without loading any modules, = so > I believe the kernel should have everything it needs. >=20 > What am I doing wrong? >=20 > Randy make sure the ue driver is either compiled in or loaded, you can add if_ue_load=3D=E2=80=9CYES=E2=80=9D to /boot/loader.conf danny