From owner-freebsd-arm@FreeBSD.ORG Mon Feb 4 01:54:23 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 46B5228F for ; Mon, 4 Feb 2013 01:54:23 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id E847A6A0 for ; Mon, 4 Feb 2013 01:54:22 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r141sL1O076365; Mon, 4 Feb 2013 01:54:21 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id i89zazgpcchwu4wwztuuv28prw; Mon, 04 Feb 2013 01:54:21 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: SD card -image- for the beaglebone Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=windows-1252 From: Tim Kientzle In-Reply-To: <037A538B-434B-4168-9591-99ABA39C6006@kientzle.com> Date: Sun, 3 Feb 2013 17:54:18 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <7EDE0DF3-1213-4359-935D-5032E6441290@kientzle.com> References: <510A4F5B.7000407@g7iii.net> <037A538B-434B-4168-9591-99ABA39C6006@kientzle.com> To: Iain Young X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 01:54:23 -0000 >> Quite happy to rebuild the kernel and world afterwards (yes, I know I >> need an 8 Gig SD card), but it's just this bootstrapping problem = thats >> an issue=85 >=20 > I just uploaded a BeagleBone SD image that people can play with. Here's another build. This fixes a couple of minor problems with the earlier build and also has an experimental "autosizing" feature. = http://people.freebsd.org/~kientzle/FreeBSD-BEAGLEBONE-r246278-noWITNESS-a= utosize-2013-02-02.img.xz This is: * Based on SVN r246278 * Completely vanilla build from SVN except as noted below * WITNESS and INVARIANTS are disabled * NFSCL and NFSLOCKD added to kernel * Has a user "beagle" with password "beagle" that you can login with = SSH The experimental "autosizing" feature means: * You can put this on any size SD card (minimum 1G) * On first boot, it will attempt to expand the root filesystem to fill = the card. * I've tested this with 32G cards and ended up with 29G free space. (Due to a bug, it doesn't completely finish resizing on first boot; reboot and it will finish.) You should be able to get a complete FreeBSD system up and running from just this image: * Connect USB cable to get serial console, insert SD card and boot. * Login as "root" and reboot to finish resizing. * Set passwords, create accounts as appropriate * Connect to a network, configure as necessary. (If you have a real network, you'll probably want to use SYNCDHCP and enable ntpd.) * Set up swap: $ dd if=3D/dev/zero of=3D/usr/swap bs=3D1024k count=3D768 $ echo 'swapfile=3D"/usr/swap"' >> /etc/rc.conf $ reboot * Get a ports tree: $ portsnap fetch $ portsnap extract * Build and install subversion port: $ cd /usr/ports/devel/subversion $ make BATCH=3Dyes $ make BATCH=3Dyes install * Get system sources and build them: $ svn co http://svn.freebsd.org/base/head /usr/src $ cd /usr/src $ make buildworld $ make buildkernel $ =85 etc ... This will likely take a couple of days (mostly thanks to the slow MMCSD driver). I'm going through the above right now; I'll let you know how much NFS helps when I get to that point. Tim