| 1 | = Set up a cross-build machine for the Raspberry Pi = |
| 2 | |
| 3 | == Prerequisites == |
| 4 | |
| 5 | This document focuses on Debian hosts. Debian derivatives such as Ubuntu should work with minor changes. |
| 6 | |
| 7 | == Downloads == |
| 8 | |
| 9 | * Download the [https://github.com/raspberrypi/firmware/downloads firmware] (.tar.gz) |
| 10 | * Download the [https://github.com/raspberrypi/tools/downloads build tools] (.tar.gz) |
| 11 | |
| 12 | Alternatively, these can be retrieved using Git. Unpack them in two directories called `firmware` and `tools`. |
| 13 | |
| 14 | == Environment variables == |
| 15 | |
| 16 | * Set `RASPI_SDK_ROOT` to the directory containing `firmware` and `tools`. |
| 17 | * Add the following directory to `PATH`: |
| 18 | |
| 19 | {{{ |
| 20 | $RASPI_SDK_ROOT/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin |
| 21 | }}} |
| 22 | |
| 23 | == Configuration == |
| 24 | |
| 25 | Add the following section to the bitten machine file: |
| 26 | |
| 27 | {{{ |
| 28 | [raspi] |
| 29 | version = 0 |
| 30 | }}} |