Following document covers installation guide for FreeBSD ARM.
First of all we need to set up a building environment. The building environment will compile the sources to the boards ARM architecture.
I hardly recommend to use FreeBSD as OS for building the ARM image. If you do not use FreeBSD as default OS run it in a VM.
Following command downloads the latest FreeBSD release image:
curl -O ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/9.1/FreeBSD-9.1/RELEASE-amd64-disc1.iso
Load it into the VM and follow the installation guide. I recommend to keep the installation as minimal as possible. However settings, partitioning, etc are not that important as we only require the environment for building.
In the following we will set up the building environment.
First set some global variables:
echo "WITHOUT_X11=YES" >> /etc/make.conf
echo "WITH_PKGNG=YES" >> /etc/make.conf
Install git some dev tools we require later on:
pkg_add -r git gmake gsed subversion
Download FreeBSD sources:
svn co svn0.us-east.freebsd.org/base/head /usr/src
build the cross compiling tools:
cd /usr/src && make XDEV=arm XDEV_ARCH=armv6 xdev
and now we can clone crochet-freebsd with:
git clone git://github.com/kientzle/crochet-freebsd.git && cd crochet-freebsd
now we need the u-boot sources:
ftp ftp://ftp.denx.de/pub/u-boot/u-boot-2013.04.tar.bz2 && tar xf u-boot-2013.04.tar.bz2
add the auditdistd user (we require this for make world):
pw useradd -n auditdistd -g audit -c "Auditdistd unprivileged user" -d /var/empty -s /usr/sbin/nologin
and then execute the final setup script:
./crochet.sh -b BeagleBone
Note: If the build fails on some point try to update the sources with svn and retry!
Todos:
- /etc/portsnap.conf (Exclude ports with REFUSE else size is going to be too big)
curl -O ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/9.1/FreeBSD-9.1/RELEASE-amd64-disc1.iso
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (9) Server denied you to change to the given directory
marius@HPP:~/BOARDS/bbb/freeBSD$ curl -O ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/9.1/FreeBSD-9.1/RELEASE-amd64-disc1.iso
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (9) Server denied you to change to the given directory