|
1 | 1 | ON RASPBERRY
|
2 | 2 | --------------
|
3 |
| -sudo apt-get install libprotobuf-dev libQt4-dev libusb-1.0-0-dev python-dev rsync |
| 3 | +sudo apt-get install libQt4-dev libusb-1.0-0-dev python-dev rsync |
4 | 4 |
|
5 | 5 | ON HOST
|
6 | 6 | ---------
|
7 | 7 | export RASPI=192.168.1.17
|
8 | 8 | export RASCROSS_DIR="$HOME/raspberrypi"
|
9 | 9 | export HYPERION_DIR="$HOME/hyperion"
|
10 | 10 |
|
11 |
| -sudo apt-get install git rsync cmake ia32-libs protobuf-compiler |
| 11 | +# install required packages |
| 12 | +sudo apt-get install git rsync cmake build-essential libQt4-dev libusb-1.0-0-dev python-dev |
12 | 13 |
|
| 14 | +# create the rootfs by copying it from an rpi running for example raspbmc |
13 | 15 | mkdir -p "$RASCROSS_DIR/rootfs"
|
14 |
| -git clone git://github.com/raspberrypi/tools.git "$RASCROSS_DIR/tools" |
| 16 | +rsync -rl --delete-after --safe-links pi@$RASPI:/{lib,usr} "$RASCROSS_DIR/rootfs" |
15 | 17 |
|
| 18 | +# get the raspberry pi firmware and add it to the rootfs |
16 | 19 | git clone https://github.com/raspberrypi/firmware.git "$RASCROSS_DIR/firmware"
|
17 |
| -ln -s "$RASCROSS_DIR/firmware/opt" "$RASCROSS_DIR/rootfs/opt" |
| 20 | +ln -s "$RASCROSS_DIR/firmware/hardfp/opt" "$RASCROSS_DIR/rootfs/opt" |
18 | 21 |
|
19 |
| -rsync -rl --delete-after --safe-links pi@$RASPI:/{lib,usr} "$RASCROSS_DIR/rootfs" |
| 22 | +# get the compile tools |
| 23 | +git clone git://github.com/raspberrypi/tools.git "$RASCROSS_DIR/tools" |
20 | 24 |
|
21 |
| -git clone https://github.com/tvdzwan/hyperion.git "$HYPERION_DIR" |
22 |
| -mkdir "$HYPERION_DIR/build" |
23 |
| -cmake -DCMAKE_TOOLCHAIN_FILE="$HYPERION_DIR/Toolchain-RaspberryPi.cmake" --build "$HYPERION_DIR/build" "$HYPERION_DIR" |
| 25 | +# get the Hyperion sources |
| 26 | +git clone --recursive https://github.com/tvdzwan/hyperion.git "$HYPERION_DIR" |
24 | 27 |
|
| 28 | +# do a native build (to build the protobuf compiler for the native platform) |
| 29 | +mkdir "$HYPERION_DIR/build" |
| 30 | +cmake -DENABLE_DISPMANX=OFF --build "$HYPERION_DIR/build" "$HYPERION_DIR" |
25 | 31 |
|
| 32 | +# do the rpi build |
| 33 | +# specify the protoc export file to import the protobuf compiler from the native build |
| 34 | +mkdir "$HYPERION_DIR/build-rpi" |
| 35 | +cmake -DCMAKE_TOOLCHAIN_FILE="$HYPERION_DIR/Toolchain-RaspberryPi.cmake" -DIMPORT_PROTOC=$HYPERION_DIR/build/protoc_export.cmake --build "$HYPERION_DIR/build-rpi" "$HYPERION_DIR" |
26 | 36 |
|
27 | 37 | ------------------------------------------------------------------------------
|
28 | 38 | These instructions are based on the guide given by:
|
|
0 commit comments