From owner-freebsd-arm@freebsd.org Wed Sep 23 17:44:48 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 CE216A06B40 for ; Wed, 23 Sep 2015 17:44:48 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (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 862F81B29 for ; Wed, 23 Sep 2015 17:44:48 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: by qkap81 with SMTP id p81so20323595qka.2 for ; Wed, 23 Sep 2015 10:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=KK/LlU6zUdweXsIDA1wOzY3NVKfgEg+XZz4baGXrbDI=; b=x5DQflnYv2gfs4qT+yvkRjotsrOOp4f892Wn+E7o90oYlZSX8UFTTSOxZn3rnq/cl0 gx1hesxjpFUGaaXgA1ySkTctx3R0yuGDMj+GNtNP8SQXoGQ8HPt5z2+BAFCxwi/9ODOt ZygNEUs/riWDUZb/CK3MW94Fam+uITuXvVcq/BovEjTTMnI/CaehSwY2t82mt+SilLDU NiGvJtDHlRmuLHPCJMOBV8rfeHs11Xyr2FqYW1vC74sHvt2hHwqrqdph7MGoZ95YdMkm iV1cdz8dGKwb3TzC3cEwu/g6h9fkoamyogz9yE32Wd9loS47gVjPBbFrXKENv3BaDUns jo3g== X-Received: by 10.55.214.70 with SMTP id t67mr37224794qki.61.1443030287476; Wed, 23 Sep 2015 10:44:47 -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 188sm2883578qht.21.2015.09.23.10.44.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Sep 2015 10:44:46 -0700 (PDT) Date: Wed, 23 Sep 2015 13:44:45 -0400 From: Randy Westlund To: Daniel Braniss Cc: freebsd-arm@freebsd.org Subject: Re: NFS Root with Raspberry Pi (nfs_diskless: no interface) Message-ID: <20150923174445.GE43653@gmail.com> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="o0ZfoUVt4BxPQnbU" Content-Disposition: inline In-Reply-To: <91AAC64E-4C38-47AA-8910-48F7654A7524@cs.huji.ac.il> User-Agent: Mutt/1.5.24 (2015-08-30) 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: Wed, 23 Sep 2015 17:44:48 -0000 --o0ZfoUVt4BxPQnbU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 23, 2015 at 11:54:43AM +0300, Daniel Braniss wrote: > ok, thought it was too easy. Can you send me more info so that i can repr= oduce it here? > specially the ubldr stuff? >=20 > ah! try if_smsc_load=3DYES >=20 > danny Okay, that's definitely the correct driver. Looks like the pi uses a SMSC LAN9514 ethernet module. But I see the same output regardless of whether that's in loader.conf or not. The kernel seems to be finding smsc0 just fine. It just hasn't created the interface yet. > ugen0.1: at usbus0 > uhub0: on usbus0 > mmcsd0: 4GB at mmc0 41.6= MHz/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: o= n 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 > Loader variables: > vfs.root.mountfrom=3Dnfs:192.168.1.254:/usr/raspi_root > vfs.root.mountfrom.options=3Drw Here's the fstab that the pi is using: > cat /usr/raspi_root/etc/fstab > 192.168.1.254:/usr/raspi_root / nfs rw 0 0 Here's dhcp.conf on my router: > $ cat /etc/dhcpd.conf > authoritative; > option domain-name-servers 192.168.1.1; >=20 > subnet 192.168.1.0 netmask 255.255.255.0 { > option routers 192.168.1.1; > range 192.168.1.2 192.168.1.150; > next-server 192.168.1.254; > option root-path "/usr/raspi_root"; > } Here's what ubldr sees before it loads the kernel over NFS: > loader> show > LINES=3D24 > autoboot_delay=3D10 > boot.netif.gateway=3D0.0.0.0 > boot.netif.hwaddr=3Db8:27:eb:28:a4:f8 > boot.netif.ip=3D192.168.1.33 > boot.netif.netmask=3D255.255.255.0 > boot.nfsroot.nfshandle=3DX298684cadeaf78ee0a000400000000006ed938000000000= 000000000X > boot.nfsroot.nfshandlelen=3D28 > boot.nfsroot.path=3D/usr/raspi_root > boot.nfsroot.server=3D192.168.1.254 > bootfile=3Dkernel > console=3Duboot > currdev=3Dnet0: > interpret=3DOK > kernel=3Dkernel > kernelname=3D/boot/kernel/kernel > loaddev=3Dnet0: > loader_conf_files=3D/boot/loader.conf /boot/loader.conf.local > module_path=3D/boot/kernel;/boot/kernel;/boot/modules;/boot/dtb > prompt=3Dloader> > twiddle_divisor=3D1 The files I'm using are all taken from one of these two images (same result with both): FreeBSD-11.0-CURRENT-arm-armv6-RPI-B-20150826-r287169.img FreeBSD-10.2-STABLE-arm-armv6-RPI-B-20150917-r287929.img Let me know if you need any other info, and thanks for spending time on this. Randy --o0ZfoUVt4BxPQnbU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWAuUNAAoJEGaweXjzNsmp1wYH/Aj+rL/9qjYVDjEtBlEKun+K hg5FQTMaCcyAzBCtbcw6wU7/nJiG5TelC9V/p57wFPyx4BdGocoaag55lG2Y0Ax9 vh12XyDQvSC2eBpriP1RmqVBhtfyXTNvqtGIw5ku/H/Wtd4HZ6viHXUek5Y7diUF oyQr7lx3aENFOgPxiPO/CNfFWyWmYIDe/MU2fEXdXkNN8QMHTeeYEXg0toig/pnv XNfsSY30Vm5QQEfxFIV/ah3wSZDeRQwHO+dVJnZw1w4SqOQN+UFvTyb4ybDE/amk 5ojBtD2ArLyFFTNifYestyAIqCRdE2oyaMUpLBe/TiHal74BCLgFb3YWOuwo4jU= =UwVx -----END PGP SIGNATURE----- --o0ZfoUVt4BxPQnbU--