From owner-freebsd-arm@freebsd.org Fri Mar 25 05:29:27 2016 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 1B1C2ADC89F for ; Fri, 25 Mar 2016 05:29:27 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x234.google.com (mail-vk0-x234.google.com [IPv6:2607:f8b0:400c:c05::234]) (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 C22F51FAE; Fri, 25 Mar 2016 05:29:26 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x234.google.com with SMTP id e6so82299859vkh.2; Thu, 24 Mar 2016 22:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=GG6twwQzUaILWnlazs7Cfau7iEE9w6f/RHTQZjyF1PQ=; b=uTH4YesVAy73EN/kNl+/C0srqr8XjAtCrIxThxggYEhHYuVAUqz4gN8NCgsXpfs3WQ LMLXcDjBlA/SWtsuXXxOvVTqzJBThvBGA/o6tE5smAZUR39IqLw9JR4A1RLCKypqg3cN bOj7npuCqaPegPOFX9GxdfOkXOvNzRxTxOvLO3Uc7IOOw1tcSLBJPfd3b0CS7FBKXmvs 2+lfRXrtgtD7HpGnRVb3vgIJrr7yIimIPj8CBgL+IExmtwyXrih6dQml0F74U6ybey98 fEAsVMqgnycC3BpYfT+kj50WubCkPXl0KkIMA8eesVYblO/GAB5mMUP2tHL8y5WnfwTN oiNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=GG6twwQzUaILWnlazs7Cfau7iEE9w6f/RHTQZjyF1PQ=; b=E7onAE80Fo/7+yDuFBNk76EtfX3zhk3fT7ecVCnf4W/L2DsiloVjrfZq7A99xWxNdf Be4SvgSxnjJYnA8tvFSmwqfFZviDBdFhJeEJ0jdV/NEW/kGPXAG7YxLAGdX1LhR3U2rt HQEMze2NR/r9GmoInao79WN980SOPul/VTg1jhlYfW19lJfvxryrduzibmtMJXS/nHw8 yyGeNpiqQ+i/yTd1zx4FTRTM8TvUcOVwhS0zjEnRjx9S1mWmexgJ8JCNHnzn15gTKAuI x2hWrlIXWI68tM4aBwDonv2Q121W8q0KhNtcwQSsZRMLm09YW4ImgJSPJNr1VUgP43WP okgA== X-Gm-Message-State: AD7BkJILj599KHzHHgu9LSfJy2HUD1LLjXIkK99XRiNXkCmZkIldVqiJhKqdw8SopBFRfr9g9d6mGwCQlwU1+w== MIME-Version: 1.0 X-Received: by 10.31.56.151 with SMTP id f145mr6592625vka.107.1458883765887; Thu, 24 Mar 2016 22:29:25 -0700 (PDT) Received: by 10.31.54.13 with HTTP; Thu, 24 Mar 2016 22:29:25 -0700 (PDT) In-Reply-To: <1458849328.1091.56.camel@freebsd.org> References: <5432b449f37a481bc7099fbab25fbd2e@bakulin.de> <1458751414.1091.47.camel@freebsd.org> <1458849328.1091.56.camel@freebsd.org> Date: Thu, 24 Mar 2016 22:29:25 -0700 Message-ID: Subject: Re: about netbooting on armv6 [was: Fwd: SDIO Patch D4761.diff Not Building For Me] From: Russell Haley To: Ian Lepore Cc: Daniel Braniss , freebsd-arm , Ilya Bakulin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2016 05:29:27 -0000 On Thu, Mar 24, 2016 at 12:55 PM, Ian Lepore wrote: > On Thu, 2016-03-24 at 10:00 +0200, Daniel Braniss wrote: >> > On 23 Mar 2016, at 18:43, Ian Lepore wrote: >> > >> > On Wed, 2016-03-23 at 09:09 -0700, Russell Haley wrote: >> > > On Wed, Mar 23, 2016 at 4:00 AM, Ilya Bakulin >> > > wrote: >> > > > On 2016-03-23 06:16, Russell Haley wrote: >> > > > > >> > > > > Hi Ilya, >> > > > > >> > > > > Mixed success tonight. I tried to install the kernel but got >> > > > > an >> > > > > error: >> > > > >> > > > >> > > > You should give MODULES_OVERRIDE=3D to installkernel as well. >> > > > >> > > Great, Thank you. >> > > > > >> > > > > Well, it booted the kernel and then spewed output and >> > > > > eventually >> > > > > ended >> > > > > with a failed DHCP request (?). Here is the pastebin of said >> > > > > output. >> > > > > >> > > > >> > > > I never copy the newly built kernel to the SD card. >> > > > Instead I configure U-Boot+ubldr to boot kernel from TFTP and >> > > > mount >> > > > root >> > > > over NFS, it's much faster and it's impossible to crash >> > > > filesystem >> > > > if the >> > > > kernel crashes. >> > > > I guess you should set ROOTDEVNAME manually in the kernel >> > > > config >> > > > file and >> > > > disable NFSCLIENT-related options. >> > > >> > > Thanks for this advice. I have had something similar working >> > > before >> > > (I >> > > had rootfs on USB) so should be able to get that running this >> > > weekend >> > > >> > > > From your boot log it's clear that the system boots and probes >> > > > SD >> > > > cards. >> > > >> > > Yes, very exciting to see!!! I will be looking to try and match >> > > debug >> > > output with code paths asap. >> > > >> > > > There are two slots and none of them has SDIO card in it. >> > > > From what I find about Hummingboard, it actually doesn't have >> > > > WiFi >> > > > SDIO >> > > > chips on it. >> > > >> > > I don't understand. It was booted using an SD card? Also, here is >> > > the >> > > information about the board and the Wi-Fi (the Solid-Run site can >> > > be >> > > hard to navigate): >> > > >> > > Carrier Board spec: >> > > http://wiki.solid-run.com/doku.php?id=3Dproducts:imx6:hummingboard: >> > > hbpr >> > > o >> > > >> > > This is my SOM: >> > > http://wiki.solid-run.com/doku.php?id=3Dproducts:imx6:microsom:dual >> > > &s[] >> > > =3Dbcm4330 >> > > >> > > Schematic. I believe page 5 shows the SDIO WIFI module interface? >> > > http://wiki.solid-run.com/lib/exe/fetch.php?media=3Dimx6:microsom:d >> > > ocs: >> > > sr-usom-mx6-rev-1_3-simplified-schematics.pdf >> > > >> > > Broadcom BCM4330 >> > > http://linux-sunxi.org/images/0/05/4330-DS206-R.pdf >> > > >> > > I have used it successfully through Kodi and Debian (Raspbian >> > > specifically) >> > > >> > > Thanks, >> > > Russ >> > >> > The quick and easy config for netbooting armv6 these days is to set >> > a >> > few vars in your uboot env. This assumes that you let uboot load >> > ubldr.bin from sdcard, and then have ubldr load the kernel and the >> > kernel will mount nfsroot. >> > >> > If you have a dhcp server to provide an IP, this is all you need in >> > uboot env: >> > >> > loaderdev=3Dnet >> > rootpath=3D:/ >> >> you can set the footpath via dhcp / dhcpd.conf: >> >> option root-path =E2=80=9Cnfs:ip.root.host:/path-to-root=E2=80=9D; > > I suspect more people will have the ability to set uboot env vars than > to set options in their dhcp server (which I've found from talking to > people is all too often some ISP-provided appliance with little or not > configuration access). I have complete control over my un-patchable 100mb wireless-b d-link router! I even tore the antennas off for security. lolz Russ