annotate projects/d-box/how_to_build_dbox.txt @ 151:e9c9404e3d1f ClockSync

Pff partially working. No PID. When setting the audio clock on the bbb to 44098 the master and slave clock keep diverging instead of converging ...
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 22 Sep 2015 04:10:07 +0100
parents 59edd5780fef
children
rev   line source
andrewm@68 1 The D-Box code can be built on the board using the scripts included with
andrewm@68 2 BeagleRT. To build the code, do the following from the scripts/ directory:
andrewm@68 3
andrewm@68 4 ./setup_board.sh # Only if BeagleRT is not already copied to the board
andrewm@68 5 ./build_project.sh -n ../projects/d-box # -n means don't run yet
andrewm@68 6
andrewm@68 7 You will now need to copy the .dbx sound files to the box. These need to
andrewm@68 8 be in a directory: /root/d-box/sounds
andrewm@68 9
andrewm@68 10 Log into the board via ssh to create the d-box directory, or run:
andrewm@68 11
andrewm@68 12 ssh root@192.168.7.2 "mkdir /root/d-box"
andrewm@68 13
andrewm@68 14 Now copy the .dbx files from a source of your choice to the board. Assuming
andrewm@68 15 they are in a directory called "sounds":
andrewm@68 16
andrewm@68 17 scp -r sounds root@192.168.7.2:/root/d-box/
andrewm@68 18
andrewm@68 19 Now you can run the D-Box program to make sure it plays. You will need the
andrewm@68 20 sensors and matrix connected to the box (i.e. a complete hardware D-Box).
andrewm@68 21 From the scripts/ directory:
andrewm@68 22
andrewm@68 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"
andrewm@68 24
andrewm@68 25 If this plays properly, the D-Box can then be set to run automatically on boot:
andrewm@68 26
andrewm@68 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"
andrewm@68 28
andrewm@68 29 If at any time you want to stop the D-Box program running, you can run:
andrewm@68 30
andrewm@68 31 ./stop_running.sh
andrewm@68 32
andrewm@68 33 To turn off further autoboot, run:
andrewm@68 34
andrewm@68 35 ./set_startup.sh -n