=======================
Introduction
=======================
The following document describes how to run the "helloworld" MBR code
for the TS-7500.  The TS-BOOTROM will basically look for the very first
partition with type "0xda" and then jumps to that location to start
executing code.

=======================
Files
=======================
Makefile
  This is the Makefile that will be used to create a suitable mbrapp.bin
  binary for running on the TS-7500.
mbrapp.c
  Main application
mbrapp.ld
  Linker file
start.S
  Assembly code

=======================
Procedure
=======================
1.) Compile the binary using the 'make' command after setting up the "CROSS_COMPILE" variable
   * vi Makefile
      -- The "crosstool-linux-gcc-4.0.1-glibc-2.3.5/bin/arm-unknown-linux-gnu-"
         crosstool has been proven to work.
   * make
      -- See "Example 'make' Output" below

2.) Use 'dd' to transfer the binary to the second partition of the microSD card.
   * dd if=mbrapp.bin of=/dev/sdb2

Note: The watchdog timer will be starved and the board will reboot.
Since this program is only provided in hopes that it will be useful,
no effort has ben made to make it more robust or functional.

=======================
Example 'make' Output
=======================
[root@linux mbrapp-ts7500]# make
/tscrosstool/crosstool-linux-gcc-4.0.1-glibc-2.3.5/bin/arm-unknown-linux-gnu-gcc
-Wall -march=armv4 -marm -mno-thumb-interwork -Os -mno-apcs-frame
-fomit-frame-pointer -ffunction-sections -fdata-sections -c mbrapp.c
mbrapp.c:22: warning: return type of 'main' is not 'int'
/tscrosstool/crosstool-linux-gcc-4.0.1-glibc-2.3.5/bin/arm-unknown-linux-gnu-gcc
-Wall -ffunction-sections -fdata-sections -fno-pic -c start.S
/tscrosstool/crosstool-linux-gcc-4.0.1-glibc-2.3.5/bin/arm-unknown-linux-gnu-gcc
-Wl,--gc-sections -Wl,-static -o mbrapp.elf -nostdlib -Tmbrapp.ld -fno-pic
mbrapp.o
size mbrapp.elf
   text	   data	    bss	    dec	    hex	filename
     78	      0	      0	     78	     4e	mbrapp.elf
/tscrosstool/crosstool-linux-gcc-4.0.1-glibc-2.3.5/bin/arm-unknown-linux-gnu-objcopy
-S -O binary mbrapp.elf mbrapp.bin

=======================
Example Console Output
=======================
>> TS-BOOTROM - built Jul 30 2009 13:41:34
>> Copyright (c) 2009, Technologic Systems
>> Booting from microSD card...
.
.
.
Hello World

