=======================
Introduction
=======================
The following document describes how to run the "helloworld" MBR code
for the TS-7400.  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-7400.
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
   * make
      -- See "Example 'make' Output" below

2.) Use 'dd' to copy the binary to the partition where the kernel resides.  For example, to
    write to the first partition of an SD card (assuming /dev/sdb1 is where the device node
    was enumerated; use fdisk -l to verify):
   * dd if=mbrapp.bin of=/dev/sdb1

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 (TS-7500)
===============================
[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-7500)
================================
>> TS-BOOTROM - built Jul 30 2009 13:41:34
>> Copyright (c) 2009, Technologic Systems
>> Booting from microSD card...
.
.
.
Hello World

