Support #688
Updated by Daniel Curtis about 9 years ago
This is a guide on how I set up the crochet build tool to compile an image for the Raspberry Pi 2.
h2. Prepare the Environment
* Make sure the system is up to date:
<pre>
pkg update && pkg upgrade
</pre>
* Install a couple dependencies:
<pre>
pkg install subversion git u-boot-rpi2
</pre>
* Checkout the FreeBSD 10-STABLE kernel sources:
<pre>
svn co svn://svn0.us-west.freebsd.org/base/stable/10 /usr/src
</pre>
#* (Alternatively) Checkout the latest FreeBSD head:
<pre>
svn co svn://svn0.us-west.freebsd.org/base/head /usr/src
</pre>
h2. Install Crochet
* Clone the latest crochet from GitHub:
<pre>
mkdir /usr/local/src && cd /usr/local/src
git clone https://github.com/freebsd/crochet.git
cd crochet
</pre>
* Create config file from the sample config provided:
<pre>
cp config.sh.sample config.sh
</pre>
* Edit the crochet config file:
<pre>
vi config.sh
</pre>
#* And modify the script to use the Raspberry Pi 2, and any additional parameters:
<pre>
board_setup RaspberryPi2
option ImageSize 1950mb
option Growfs
option User pi
option SwapFile 1024mb
</pre>
* Build the image:
<pre>
sh crochet.sh -c config.sh
</pre>
h2. Resources
* https://github.com/freebsd/crochet
* https://github.com/freebsd/crochet/wiki/How-to-Build-a-Disk-Image