blob: c2676d1126f9e5181ef40827ad3f4ede8b463fe0 [file] [log] [blame]
briansa39ed322013-02-14 23:00:51 +00001This file contains instructions on how to set up a computer to build the code.
2
jerrym1e9e1802013-03-11 08:00:20 +00003[OS]
Brian Silverman9a76de02014-12-15 17:43:36 -05004Most of these instructions assume 64 bit Debian Wheezy.
jerrym1e9e1802013-03-11 08:00:20 +00005
briansa39ed322013-02-14 23:00:51 +00006[Install Packages]
7First, you have to download and follow the directions in
8 <http://robotics.mvla.net/files/frc971/packages/frc971.list>.
Brian Silverman9b7a6842014-05-05 16:19:11 -07009Then, run `apt-get install python3`.
10The build script will tell you what other packages to install when you run it.
11 It's pretty smart about not checking for things it doesn't need, so you might
12 want to build 'deploy all' to see everything it wants.
briansa39ed322013-02-14 23:00:51 +000013 You will have to accept the
Brian Silverman9b7a6842014-05-05 16:19:11 -070014 "WARNING: The following packages cannot be authenticated!" warning for
15 various packages downloaded from our package repository.
16 This works for amd64 Wheezy, no guarantees or support for anything else.
briansa39ed322013-02-14 23:00:51 +000017
18[Running Locally]
19If you want to be able to run the realtime code on your development machine
20 without just disabling the realtime part (set the AOS_NO_REALTIME environment
Brian Silverman9a76de02014-12-15 17:43:36 -050021 variable), follow the directions in //aos/config/aos.conf.
22If you want to run the clang or gcc_4.8 amd64 code, add /opt/clang-3.5/lib64/ to
23 LD_LIBRARY_PATH. Using the system gcc-compiled versions should just work.
michaela91ebd92013-02-23 06:01:00 +000024
25[Compiling and Downloading]
Brian Silverman9a76de02014-12-15 17:43:36 -050026Run //frc971/*/build.sh.
Brian Silverman9b7a6842014-05-05 16:19:11 -070027 Give it clean, tests, or deploy as a first argument to do something other
28 than just build.
29 Each action (build (the default), clean, tests, or deploy) has a different
30 default set of versions of the code it builds. You can change those by
31 passing another argument. Some popular ones are 'all' (build everything),
32 'clang-amd64-none' (the most basic one for local testing), and
Brian Silverman9a76de02014-12-15 17:43:36 -050033 'gcc_frc-arm-nodebug' (the one that gets downloaded). See its --help for
Brian Silverman9b7a6842014-05-05 16:19:11 -070034 more details.
michaela91ebd92013-02-23 06:01:00 +000035
36[Communicating with the cRIO]
Brian Silverman9b7a6842014-05-05 16:19:11 -070037Use netconsole (in the amd64 outputs directories) to communicate directly with
38 the cRIO.
michaela91ebd92013-02-23 06:01:00 +000039Use "reboot" from within netconsole.sh will reboot the cRIO. ^C will
Brian Silverman9b7a6842014-05-05 16:19:11 -070040 stop the netconsole program. "version" will tell you the the
41 VxWorks and WIND versions and "help" will give you a list of VxWorks
42 commands that you can use.
43Make sure your computer is on the right subnet first.