From owner-freebsd-arm@freebsd.org Mon Dec 14 16:14:46 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 3D695A44365 for ; Mon, 14 Dec 2015 16:14:46 +0000 (UTC) (envelope-from karl@denninger.net) Received: from mail.denninger.net (wsip-70-169-168-7.pn.at.cox.net [70.169.168.7]) (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 D48D71055 for ; Mon, 14 Dec 2015 16:14:45 +0000 (UTC) (envelope-from karl@denninger.net) Received: from [192.168.1.40] (Karl-Desktop.Denninger.net [192.168.1.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.denninger.net (Postfix) with ESMTPSA id 8F1AC235BD1 for ; Mon, 14 Dec 2015 10:14:37 -0600 (CST) Subject: Re: Updating / keeping current strategies? References: <5666F37C.4060908@denninger.net> <10BBDDBB-75AA-4034-B494-9EB28D009882@gromit.dlib.vt.edu> To: "freebsd-arm@freebsd.org" From: Karl Denninger X-Enigmail-Draft-Status: N1110 Message-ID: <566EEAC4.1060306@denninger.net> Date: Mon, 14 Dec 2015 10:13:56 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <10BBDDBB-75AA-4034-B494-9EB28D009882@gromit.dlib.vt.edu> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms070205010407040004060407" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Mon, 14 Dec 2015 16:14:46 -0000 This is a cryptographically signed message in MIME format. --------------ms070205010407040004060407 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 12/8/2015 09:41, Paul Mather wrote: > On Dec 8, 2015, at 10:13 AM, Karl Denninger wrote:= > >> What are people doing in this regard with devices like the Raspberry P= i2? >> >> Build times for a "make buildworld" are measured in (many) hours to a >> day or more and require a USB-attached disk for temporary storage, as >> the ramdisk for /tmp that is typically mounted blows up due to lack of= >> space and SD cards are slow enough on writes (especially small writes)= >> as to make the process virtually impossible. But even with a >> USB-attached disk the process is ridiculous in terms of consumed >> walllclock time. >> >> Further, "make installworld" sometimes fails inexplicably. >> >> Kernel builds are a bit more reasonable, only requiring a couple of ho= urs. >> >> I'm wondering what the best option is to not only build current code o= n >> a regular basis (since -CURRENT is a "work in progress") but also to >> deploy and update existing devices. What are people doing that has a >> history of working well? > I cross-build kernel and world on a FreeBSD/amd64 system. It takes abo= ut 30 minutes to do a full buildkernel and buildworld there. Then, when = I want to update my Raspberry Pi, I shut down the Pi and move the SD card= from it to the FreeBSD/amd64 system. Having mounted the SD card, I cros= s-install kernel and world onto the SD card and then run mergemaster agai= nst it. I use the wrapper script from https://wiki.freebsd.org/FreeBSD/a= rm/crossbuild to make things easier. > > After updating the SD card, I unmount it from the FreeBSD/amd64 system = and move it back to the Raspberry Pi. Finally, I boot up the Raspberry P= i. > > This has proved a reliable way for me to update my Raspberry Pi and Bea= gleBone Black. The manual step of moving the SD card isn't ideal, but ha= s proved to be the most pragmatic approach for me. (Clang seems more rel= iable on FreeBSD/amd64, for one.:) Someone suggested once to do the cros= s build/install on the FreeBSD/amd64 system and then rsync over to the Pi= /BBB to update the SD card, but I could never get that to work. Similarl= y, I could never get a NFS install to work either. To be fair, I didn't = troubleshoot that problem very much. > > Cheers, > > Paul. > There seem to be some problems with this in the general sense, unless you're willing to move the media around (I'm generally not.) Using that script in the Wiki appears to work, but there are problems.=20 If you try to nfs mount the object and source directories on the target so you can do a "make installworld" or "make installkernel" on the target you quickly find that clang wasn't cross-built in the object directory; the "tmp" directory in object contains a copy of it, but it's compiled for your _*source*_ machine (in this case FreeBSD/amd64) and the install blows up as it can't determine the cc version. The interesting thing is that what's in ~/nfsroot/usr/bin/cc is correct which doesn't appear to make sense, but it is what it is. I'm going to see if I can get a rsync-type thing to work.... --=20 Karl Denninger karl@denninger.net /The Market Ticker/ /[S/MIME encrypted email preferred]/ --------------ms070205010407040004060407 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC Bl8wggZbMIIEQ6ADAgECAgEpMA0GCSqGSIb3DQEBCwUAMIGQMQswCQYDVQQGEwJVUzEQMA4G A1UECBMHRmxvcmlkYTESMBAGA1UEBxMJTmljZXZpbGxlMRkwFwYDVQQKExBDdWRhIFN5c3Rl bXMgTExDMRwwGgYDVQQDExNDdWRhIFN5c3RlbXMgTExDIENBMSIwIAYJKoZIhvcNAQkBFhND dWRhIFN5c3RlbXMgTExDIENBMB4XDTE1MDQyMTAyMjE1OVoXDTIwMDQxOTAyMjE1OVowWjEL MAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExGTAXBgNVBAoTEEN1ZGEgU3lzdGVtcyBM TEMxHjAcBgNVBAMTFUthcmwgRGVubmluZ2VyIChPQ1NQKTCCAiIwDQYJKoZIhvcNAQEBBQAD ggIPADCCAgoCggIBALmEWPhAdphrWd4K5VTvE5pxL3blRQPyGF3ApjUjgtavqU1Y8pbI3Byg XDj2/Uz9Si8XVj/kNbKEjkRh5SsNvx3Fc0oQ1uVjyCq7zC/kctF7yLzQbvWnU4grAPZ3IuAp 3/fFxIVaXpxEdKmyZAVDhk9az+IgHH43rdJRIMzxJ5vqQMb+n2EjadVqiGPb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