Copy this reposity to a writable directory. Build and run:

# cd src
# make
# cp bwio.a ../lib/libbwio.a
# cd ../test
# make

Then copy iotest.elf into TFTP directory /u/cs452/tftp/ARM/<YOUR UW USERNAME>

For the TFTP server to be able to access the file, add read permission for
'other':

# chmod o+r /u/cs452/tftp/ARM/<YOUR UW USERNAME>/iotest.elf

At the RedBoot prompt ('-h' parameter optional):
RedBoot> load -h 10.15.167.5 ARM/<YOUR UW USERNAME>/iotest.elf
RedBoot> go


GDB debugging

1) obtain ARM IP address via RedBoot
RedBoot> ip_address

2) ssh into linux.student.cs.uwaterloo.ca, and run gdb there
# /u/cs452/public/xdev/bin/arm-none-eabi-gdb /u/cs452/tftp/ARM/<YOUR UW USERNAME>/iotest.elf
(gdb) target remote <IP ADDRESS>:9000
(gdb) load
(gdb) cont

2a) OR: download binary to track PC
# tftp 10.15.167.5
tftp> get ARM/<YOUR UW USERNAME>/iotest.elf
tftp> quit

2b) invoke gdb on track PC, load and run
# gdb-multiarch iotest.elf
(gdb) target remote <IP ADDRESS>:9000
(gdb) load
(gdb) cont
