Mercurial > hg > beaglert
view projects/d-box/how_to_build_dbox.txt @ 287:4815ed0f21de prerelease
Makefile refactoring:
- avoids recursive call to build with/without main
- takes EXAMPLE parameter. Copies the examples/$(EXAMPLE) folder to projects/$(PROJECT) and $PROJECT defaults to exampleTestProject
- you can now `make run` (TODO: currently re-links, should instead run without linking)
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 18 May 2016 01:46:32 +0100 |
parents | 59edd5780fef |
children |
line wrap: on
line source
The D-Box code can be built on the board using the scripts included with BeagleRT. To build the code, do the following from the scripts/ directory: ./setup_board.sh # Only if BeagleRT is not already copied to the board ./build_project.sh -n ../projects/d-box # -n means don't run yet You will now need to copy the .dbx sound files to the box. These need to be in a directory: /root/d-box/sounds Log into the board via ssh to create the d-box directory, or run: ssh root@192.168.7.2 "mkdir /root/d-box" Now copy the .dbx files from a source of your choice to the board. Assuming they are in a directory called "sounds": scp -r sounds root@192.168.7.2:/root/d-box/ Now you can run the D-Box program to make sure it plays. You will need the sensors and matrix connected to the box (i.e. a complete hardware D-Box). From the scripts/ directory: ./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" If this plays properly, the D-Box can then be set to run automatically on boot: ./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" If at any time you want to stop the D-Box program running, you can run: ./stop_running.sh To turn off further autoboot, run: ./set_startup.sh -n