Telsey MAGIC EJTAG Debrick Utility

Telsey MAGIC EJTAG Debrick Utility v0.9beta2

============================================
Telsey MAGIC EJTAG Debrick Utility v0.9beta2
============================================

 ABOUT: This program is a hacked version of WRT54G/GS debrick utility.
        It's able to read/write flash memory on the Telsey MAGIC and
        compatible routers via EJTAG using either DMA Access routines
        or PrAcc routines (slower/more compatible).


 USAGE: ./Telsey PARAMETER [option]...

            Required Parameter
            ------------------
            -backup:<cfe|cfe_nvram|bootimg1|bootimg2|wholeflash|custom>
            -erase:<cfe|cfe_nvram|bootimg1|bootimg2|wholeflash|custom>
            -flash:<cfe|cfe_nvram|bootimg1|bootimg2|wholeflash|custom>
            -probeonly
            -show:fc

            Optional Switches
            -----------------
            /noreset ........... prevent Issuing EJTAG CPU reset
            /noemw ............. prevent Enabling Memory Writes
            /nocwd ............. prevent Clearing CPU Watchdog Timer
            /nobreak ........... prevent Issuing Debug Mode JTAGBRK
            /noerase ........... prevent Forced Erase before Flashing
            /notimestamp ....... prevent Timestamping of Backups
            /dma ............... force use of DMA routines
            /nodma ............. force use of PRACC routines (No DMA)
            /window:XXXXXXXX ... custom flash window base (in HEX)
            /start:XXXXXXXX .... custom start location (in HEX)
            /length:XXXXXXXX ... custom length (in HEX)
            /silent ............ prevent scrolling display of data
            /skipdetect ........ skip auto detection of CPU Chip ID
            /instrlen:XX ....... set instruction length manually
            /cable:XXXXXXXX .... set cable type (xilinx, jkeys, wiggler)

            /fc:XX = Optional (Manual) Flash Chip Selection
                     Use the parameter -show:/fc to see the
                     complete chip list
            -----------------------------------------------


 NOTES: 1) If 'flashing' - the source filename must exist as follows:
           CFE.BIN, NVRAM.BIN, BOOTIMG1.BIN<1|2>, WHOLEFLASH.BIN or CUSTOM.BIN

        2) As my knowldge, Telsey MAGIC is not provided with CPUs watchdogs
           bonded with the nTRST line. However it is best to make a power cicle
           before any backup, flash or restore.
 ******************************************************************************
 * Flashing the BOOTIMGes or WHOLEFLASH will take a very long time using JTAG *
 * via this utility.  You are better off flashing the CFE & NVRAM files       *
 * and then using the normal CFE, TFTP or Web method to flash the BOOTIMGes   *
 * via ethernet.                                                              *
 ******************************************************************************