/*
 * (C) Copyright 2006 Tundra Semiconductor Corp.
 * Applications Engineering, www.tundra.com).
 *
 * This is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */

Any questions should be directed to http://www.tundra.com/Support/SupportForm.cfm

HISTORY:
Jan 26, 2006  Tim Fairfield, Senior Applications Engineer Tundra Semiconductor Conductor Corp.



The Tundra uboot release supports IBM 750GX + Tundra TSI108. Tested using ELDK 3.1.1 cross compile tools.
 
NOTE: saveenv command will only work if I2c EEPROM (MICROCHIP 24lc16B) is installed. It is recommended to overwrite defaults with custom MAC and ip addresses.
 

To install:


-Unzip this tree
tar -xjvf u-boot1.1.4_tun.tar.bz2

-Configure ELDK 3.1.1 cross compile tools

export CROSS_COMPILE=ppc_7xx-
PATH=/tools/eldk/3.1.1/usr/bin:/tools/eldk/3.1.1/bin:$PATH (your path will be different)
ARCH=ppc


- to build you nead to clean, configure and make:
make distclean
make tsi108evb_config  
make all




Below is an example build session:


bash-2.05b$  make distclean
find . -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o'  -o -name '*.a'  \) -print \
| xargs rm -f
rm -f examples/hello_world examples/timer \
      examples/eepro100_eeprom examples/sched \
      examples/mem_to_mem_idma2intr examples/82559_eeprom \
      examples/test_burst
rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
rm -f tools/mpc86x_clk tools/ncb
rm -f tools/easylogo/easylogo tools/bmp_logo
rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
rm -f tools/env/fw_printenv tools/env/fw_setenv
rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
rm -f board/trab/trab_fkt board/voiceblue/eeprom
rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
find . -type f \( -name .depend \
-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
-print0 \
| xargs -0 rm -f
rm -f cpu/74xx_7xx/start.o *.bak tags TAGS
rm -fr *.*~
rm -f u-boot u-boot.map u-boot.hex u-boot.srec u-boot.bin System.map
rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
rm -f include/asm/proc include/asm/arch include/asm
bash-2.05b$
bash-2.05b$
bash-2.05b$  make tsi108evb_config
Configuring for tsi108evb board...
bash-2.05b$
bash-2.05b$ make all

<<you should see  build process which will take under a minute to complete>>
... ...
...ppc_74xx-objcopy --gap-fill=0xff -O srec u-boot u-boot.srec
ppc_74xx-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin
bash-2.05b$


Your u-boot images are in the root

bash-2.05b$ ls u* -als
 860 -rwxrwxr-x    1 timf     tun        875784 Mar 29 13:22 u-boot
 180 -rwxrwxr-x    1 timf     tun        178924 Mar 29 13:22 u-boot.bin
 116 -rw-rw-r--    1 timf     tun        113233 Mar 29 13:22 u-boot.map
 532 -rwxrwxr-x    1 timf     tun        536858 Mar 29 13:22 u-boot.srec
bash-2.05b$

The above output will confirm you have successfully built your image. 
Because of the many configuration/ system variables your build process may be different. this is meant as a guide only.

