Difference between revisions of "ARM"

From CSCWiki
Jump to navigation Jump to search
(Initial page)
 
Line 1: Line 1:
 +
== Prerequisites ==
 +
 +
* Email syscom@csclub.uwaterloo.ca asking to be added to the board group.
 +
* An ARM compiler and build environment. If you do your development on corn-syrup this is already set up for you.
 +
* Basic working knowledge of [http://www.gnu.org/software/screen/ GNU screen].
 +
 
== Compiling and Running Your First Program ==
 
== Compiling and Running Your First Program ==
  
* Contact syscom to have yourself added to the board group.
+
We have modified the busy-wait I/O library used by CS 452 to work with the TS-7800. The following steps explain how to compile and run the test application on the TS-7800. These steps should be completed on corn-syrup.
* Log into corn-syrup, it has the necessary toolchain for building programs to run on the TS-7800.
+
 
* Clone the bwio git repository from [http://git.csclub.uwaterloo.ca/?p=arm/ts7800-bwio.git csclub.uwaterloo.ca:/srv/git/arm/ts7800-bwio.git]:
+
* Clone the test git repository from [http://git.csclub.uwaterloo.ca/?p=arm/ts7800-bwio.git csclub.uwaterloo.ca:/srv/git/arm/ts7800-bwio.git]:
  
 
  git clone csclub.uwaterloo.ca:/srv/git/arm/ts7800-bwio.git
 
  git clone csclub.uwaterloo.ca:/srv/git/arm/ts7800-bwio.git
 +
cd ts7800-bwio
  
* Build bwio.:
+
* Build the test application:
  
 
  make CC=arm-linux-gnueabi-gcc
 
  make CC=arm-linux-gnueabi-gcc
  
* Log in to caffeine and create a directory for yourself in /srv/tftp/ARM.:
+
* Create yourself a directory on our TFTP server (caffeine):
  
  mkdir /srv/tftp/ARM/$USER
+
  ssh caffeine mkdir -p /srv/tftp/ARM/$USER
  
* Copy bin/iotest from your clone of the bwio git repository to your newly created directory in
+
* Copy the test application (bin/iotest) to your directory on the TFTP server.
caffeine:/srv/tftp/ARM.:
 
  
  scp bin/iotest caffeine:/srv/tftp/ARM/$USER
+
  scp bin/iotest caffeine:/srv/tftp/ARM/$USER/
  
 
* Run become_board to attach to the TS-7800 screen session.
 
* Run become_board to attach to the TS-7800 screen session.
Line 24: Line 30:
 
  become_board
 
  become_board
  
* Reboot the board by switching to screen window 1 and pressing Enter.
+
* Reboot the board from the radreboot window. Press C-a 1 (control-A, then 1) to switch windows, then press enter to reboot.
* Switch to screen window 0. At the TS-8000> boot prompt enter:
+
 
 +
* Execute your test program on the board. Press C-a 0 (control-A, then 0) to switch windows. Replace $USER by your user name.
  
 
  tftp ARM/$USER/iotest
 
  tftp ARM/$USER/iotest
 
  bootelf
 
  bootelf
 +
 +
If all goes well, you should see the following output:
 +
 +
Hello
 +
***Hello
 +
Hello world.
 +
Well, hello world23.
 +
-23 worlds for 1 person.
 +
ffffffe9 worlds for 723 people.
 +
 +
If you press any key the board will reboot.

Revision as of 23:40, 13 March 2011

Prerequisites

  • Email syscom@csclub.uwaterloo.ca asking to be added to the board group.
  • An ARM compiler and build environment. If you do your development on corn-syrup this is already set up for you.
  • Basic working knowledge of GNU screen.

Compiling and Running Your First Program

We have modified the busy-wait I/O library used by CS 452 to work with the TS-7800. The following steps explain how to compile and run the test application on the TS-7800. These steps should be completed on corn-syrup.

git clone csclub.uwaterloo.ca:/srv/git/arm/ts7800-bwio.git
cd ts7800-bwio
  • Build the test application:
make CC=arm-linux-gnueabi-gcc
  • Create yourself a directory on our TFTP server (caffeine):
ssh caffeine mkdir -p /srv/tftp/ARM/$USER
  • Copy the test application (bin/iotest) to your directory on the TFTP server.
scp bin/iotest caffeine:/srv/tftp/ARM/$USER/
  • Run become_board to attach to the TS-7800 screen session.
become_board
  • Reboot the board from the radreboot window. Press C-a 1 (control-A, then 1) to switch windows, then press enter to reboot.
  • Execute your test program on the board. Press C-a 0 (control-A, then 0) to switch windows. Replace $USER by your user name.
tftp ARM/$USER/iotest
bootelf

If all goes well, you should see the following output:

Hello
***Hello
Hello world.
Well, hello world23.
-23 worlds for 1 person.
ffffffe9 worlds for 723 people.

If you press any key the board will reboot.