Mercurial > hg > beaglert
comparison projects/d-box/how_to_build_dbox.txt @ 68:59edd5780fef
Changed d-box code to run cleanly when built on board. Updated Makefile to add ne10 include path on board. Some extra docs in Utilities.h
author | andrewm |
---|---|
date | Fri, 17 Jul 2015 16:57:08 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:472e892c6e41 | 68:59edd5780fef |
---|---|
1 The D-Box code can be built on the board using the scripts included with | |
2 BeagleRT. To build the code, do the following from the scripts/ directory: | |
3 | |
4 ./setup_board.sh # Only if BeagleRT is not already copied to the board | |
5 ./build_project.sh -n ../projects/d-box # -n means don't run yet | |
6 | |
7 You will now need to copy the .dbx sound files to the box. These need to | |
8 be in a directory: /root/d-box/sounds | |
9 | |
10 Log into the board via ssh to create the d-box directory, or run: | |
11 | |
12 ssh root@192.168.7.2 "mkdir /root/d-box" | |
13 | |
14 Now copy the .dbx files from a source of your choice to the board. Assuming | |
15 they are in a directory called "sounds": | |
16 | |
17 scp -r sounds root@192.168.7.2:/root/d-box/ | |
18 | |
19 Now you can run the D-Box program to make sure it plays. You will need the | |
20 sensors and matrix connected to the box (i.e. a complete hardware D-Box). | |
21 From the scripts/ directory: | |
22 | |
23 ./run_project.sh -f -c "-q 24 -r 25 -t 2 -s -p 2 -l 0 -u 0 -i 1 -n f -g 3 -v" | |
24 | |
25 If this plays properly, the D-Box can then be set to run automatically on boot: | |
26 | |
27 ./set_startup.sh -l -c "-q 24 -r 25 -t 2 -s -p 2 -l 0 -u 0 -i 1 -n f -g 3 -v" | |
28 | |
29 If at any time you want to stop the D-Box program running, you can run: | |
30 | |
31 ./stop_running.sh | |
32 | |
33 To turn off further autoboot, run: | |
34 | |
35 ./set_startup.sh -n |