wiki:avila/redboot

Version 1 (modified by trac, 3 months ago) (diff)

--

Building Redboot for the Gateworks Avila GW2348

The redboot bootloader is used on the Gateworks IXP4xx (xscale) based products

Pre-Requisites

To build redboot you first need the following pre-requesites:

  • xscale cross toolchain
  • tcl (ecosconfig tool is dynamically linked to it)
    sudo apt-get install tcl8.4
    
  • Note that you may need to create a symlink to libtcl8.4.so if ecosconfig fails to find it such as:
    sudo ln -s libtcl8.4.so.0 /usr/lib/libtcl8.4.so
    

Step-by-Step Instructions for building redboot

  1. Download redboot from Gateworks SVN
    svn co http://svn.gateworks.com/avila/redboot
    
  1. Configure Path of Toolchain (change the below such that it points to the directory you untarred the toolchain to above:
    export PATH=$PWD/H-i686-pc-linux-gnulibc2.2/bin:$PATH
    
  1. Build redboot
    cd redboot
    make
    

Note: If you are using a 64bit linux host you need to copy the pre-built 64bit ecosconfig tool over:

cp bin/ecosconfig64 bin/ecosconfig
  1. Use a Gateworks jtag adapter to flash the appropriate bootloader binary from the images directory to your target:
    • rb-526.bin - bootloader that sets machine id to 526 - AVILA (this is most likely what you want)
    • rb-245.bin - bootloader that sets machine id to 245 - IXDP425 (some people use this for historical reasons)

See http://trac.gateworks.com/browser/avila/redboot/README.Gateworks README.Gateworks for information about customizing redboot for your needs