Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 18:27:03 +0800
From:      Alie Tan <alie@affle.com>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: SD card -image- for the beaglebone
Message-ID:  <CANuCnH_5qgzzXdjQOB8B39z_SGnZZhv89PWjx73s9HePMfdnEA@mail.gmail.com>
In-Reply-To: <7EDE0DF3-1213-4359-935D-5032E6441290@kientzle.com>
References:  <510A4F5B.7000407@g7iii.net> <037A538B-434B-4168-9591-99ABA39C6006@kientzle.com> <7EDE0DF3-1213-4359-935D-5032E6441290@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Tim.

How do you do autosizing feature?

Regards,
Alie T


On Mon, Feb 4, 2013 at 9:54 AM, Tim Kientzle <tim@kientzle.com> wrote:

> >> 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
> >
> > 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-=
autosize-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 SS=
H
>
> 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
>
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANuCnH_5qgzzXdjQOB8B39z_SGnZZhv89PWjx73s9HePMfdnEA>