From owner-freebsd-arm@freebsd.org Tue Dec 8 15:52:03 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 A7E849D4D6A for ; Tue, 8 Dec 2015 15:52:03 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8398A1BFE for ; Tue, 8 Dec 2015 15:52:03 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from [10.23.5.100] (c-71-63-91-41.hsd1.va.comcast.net [71.63.91.41]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id DF977151; Tue, 8 Dec 2015 10:42:03 -0500 (EST) Content-Type: multipart/signed; boundary="Apple-Mail=_FE4BA79A-1118-4940-87DE-76607F94AAEB"; protocol="application/pkcs7-signature"; micalg=sha1 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Updating / keeping current strategies? From: Paul Mather In-Reply-To: <5666F37C.4060908@denninger.net> Date: Tue, 8 Dec 2015 10:41:57 -0500 Cc: "freebsd-arm@freebsd.org" Message-Id: <10BBDDBB-75AA-4034-B494-9EB28D009882@gromit.dlib.vt.edu> References: <5666F37C.4060908@denninger.net> To: Karl Denninger X-Mailer: Apple Mail (2.3096.5) 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, 08 Dec 2015 15:52:03 -0000 --Apple-Mail=_FE4BA79A-1118-4940-87DE-76607F94AAEB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Dec 8, 2015, at 10:13 AM, Karl Denninger wrote: > What are people doing in this regard with devices like the Raspberry = Pi2? >=20 > 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. >=20 > Further, "make installworld" sometimes fails inexplicably. >=20 > Kernel builds are a bit more reasonable, only requiring a couple of = hours. >=20 > I'm wondering what the best option is to not only build current code = on > 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 = about 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 cross-install kernel and world onto the SD card and then run = mergemaster against it. I use the wrapper script from = https://wiki.freebsd.org/FreeBSD/arm/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 = Pi. This has proved a reliable way for me to update my Raspberry Pi and = BeagleBone Black. The manual step of moving the SD card isn't ideal, = but has proved to be the most pragmatic approach for me. (Clang seems = more reliable on FreeBSD/amd64, for one.:) Someone suggested once to do = the cross 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. = Similarly, I could never get a NFS install to work either. To be fair, = I didn't troubleshoot that problem very much. Cheers, Paul. --Apple-Mail=_FE4BA79A-1118-4940-87DE-76607F94AAEB Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSI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