From owner-freebsd-arm@freebsd.org Tue Sep 22 05:25:27 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 644BCA035BE for ; Tue, 22 Sep 2015 05:25:27 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com [IPv6:2607:f8b0:400d:c04::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2006D14F3 for ; Tue, 22 Sep 2015 05:25:27 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: by qgez77 with SMTP id z77so108682101qge.1 for ; Mon, 21 Sep 2015 22:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=jY+7AG1fADaYyTweK/nTuIEgrjdjJPq/l3jZMOKBR0g=; b=0Ln/Q6nJNZ1mvI/brZrsIlmjV4FV66r/EhfLy5LItv4SeXNeh3I/+ylp1rS+PQDFj6 G9JcuLtpYZt7JlpB0EXg+vngx+Wdj7+UPK6C/GojTO+GLOBc8zV7NU/UCU3ZugKUWWM1 +GBTu1Hllpc4URLRrNhyECpdOu9E5dnS20MGZaaQhFyeU8ZFRrHnw+LxfiznpSvL3Ii4 Jibhsl6y2Ua4tFalwX/fv3P/tnOlUAG3ePACMjEuaXvrCQJwwkEBYz5Qc7eDn5ABH8Np fTEQLuwLO5D2ud97k5IIqhkXwaImmKEiCzyjwRw9Qra6H1UVLn6zolLhytmSVuMb4JO5 zKgg== X-Received: by 10.140.43.164 with SMTP id e33mr27090419qga.62.1442899526248; Mon, 21 Sep 2015 22:25:26 -0700 (PDT) Received: from gmail.com (c-98-216-247-110.hsd1.ma.comcast.net. [98.216.247.110]) by smtp.gmail.com with ESMTPSA id m75sm11426608qki.21.2015.09.21.22.25.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2015 22:25:25 -0700 (PDT) Date: Tue, 22 Sep 2015 01:25:22 -0400 From: Randy Westlund To: freebsd-arm@freebsd.org Subject: NFS Root with Raspberry Pi (nfs_diskless: no interface) Message-ID: <20150922052522.GA62140@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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:25:27 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm trying to boot a Raspberry Pi over the network so I can avoid SD card woes, but I'm stuck on something. 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. 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. My problem is when the kernel tries to mount root. I'm getting this error: > 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. > I believe "nfs_diskless: no interface" is the important part. The ethernet port is not ready by the time it tries to mount root. 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. What am I doing wrong? Randy --gKMricLos+KVdGMg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWAOZCAAoJEGaweXjzNsmpM8AH/25KVIbSYYMifAOqA8ngcrW+ K10mi9r+NCJQuSmU15xqB468jl5bfSPTvoUID+rdcelxjH6VTCil2gBGsz1eW4Gq 3DCkAnJQxnpyqEL3YT7ccHXBkFr3i6wFRVrb6AkvRag78Gz1NT4GCDM7QHURXWBI hFJk5TFRR0EVD2mdxsGRAbhdEn6PNG3GTKbjsjfa9YGYjZwEv3ocoiJ1lWGJsGyb LF70EinmVUWygm6f2lzbRWRb6mHkt/DpPVApiGXUgbhiUIKumhImH6dLof8H4LhD sKMrfBeuwuggf3gm/qxCHMD3F7dxSv5pTSmXI8LZCY4FX1h9aDkX+qqoSWyvONU= =UQOy -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--