blob: 5d15e30a208a6bec7cafdd82c2ad03cf09a5fc47 [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]
4Most of these instructions assume 64 bit Debian Squeeze.
5
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>.
9You also have to follow the directions at
10 <http://backports-master.debian.org/Instructions/>.
11Then, run `apt-get install subversion git g++-multilib gcc-multilib ruby patch \
12 make openjdk-6-jdk lib32event-dev`
13 and `apt-get install -t squeeze-backports swig` (package lists correct for
14 amd64 Squeeze; you might be able to get it to build on other
15 versions/platforms/distributions (Ubuntu, Mint, ...) if you can find the
16 right packages.
17 You will have to accept the
18 "WARNING: The following packages cannot be authenticated!" warning for the
19 "libevent-2.0-5 lib32event-2.0-5 libevent-core-2.0-5 lib32event-core-2.0-5 \
20 libevent-extra-2.0-5 libevent-pthreads-2.0-5 libevent-openssl-2.0-5 \
21 libevent-dev lib32event-extra-2.0-5 lib32event-pthreads-2.0-5 \
22 lib32event-openssl-2.0-5 lib32event-dev" packages.
jerrym1e9e1802013-03-11 08:00:20 +000023
24(On 64-bit Ubuntu Precise Pangolin:
25`apt-get install subversion git g++-multilib gcc-multilib ruby patch \
26 make openjdk-6-jdk default-jdk libevent-dev:i386 libevent-2.0-5:i386`)
27
briansa39ed322013-02-14 23:00:51 +000028Also run `apt-get install powerpc-wrs-vxworks` if you want to be able to build
29 the cRIO code too.
jerrym1e9e1802013-03-11 08:00:20 +000030 NOTE: This is in *addition* to the above commands.
briansa39ed322013-02-14 23:00:51 +000031 You will have to accept the
32 "WARNING: The following packages cannot be authenticated!" warning for the
33 "powerpc-wrs-vxworks" package.
34If you want to actually download code to a robot (it will only work on amd64
michaela91ebd92013-02-23 06:01:00 +000035 Squeeze), then
36 (1) do `apt-get install ncftp rsync socat`.
37 socat is used for the netconsole.sh tool that is used to talk to the cRIO.
brians261847b2013-02-26 01:56:51 +000038 (2) Set the IP address of the downloading machine to be on the same subnet.
michaela91ebd92013-02-23 06:01:00 +000039 ifconfig eth0 10.9.71.22
40 This will need to be redone when the computer Ethernet connection is
41 reset. For example, it is reset by disconnecting and reconnecting
42 the Ethernet cable or power cycling the robot. Check it with
43 ifconfig eth0
briansa39ed322013-02-14 23:00:51 +000044
45[Running Locally]
46If you want to be able to run the realtime code on your development machine
47 without just disabling the realtime part (set the AOS_NO_REALTIME environment
48 variable), follow the directions in /src/aos/config/aos.conf.
michaela91ebd92013-02-23 06:01:00 +000049
50[Compiling and Downloading]
51Run `./build.sh` from src/frc971/atom_code/ and src/frc971/crio/.
52Use `./build.sh deploy` to download to a robot.
53
54[Communicating with the cRIO]
55Use netconsole.sh to communicate directly with the cRIO.
56frc971/2013/trunk/src/aos/crio/bin/netconsole.sh
57Use "reboot" from within netconsole.sh will reboot the cRIO. ^C will
58stop it the netconsole.sh command. "version" will tell you the the
59VxWorks and WIND versions and "help" will give you a list of VxWorks
60commands that you can use.