Terastation Pro v1

Mipsel-based boxes

TODO: Add info about the JTAG cable that works on the
+ needed info about Flash structure

LS2

Arm-based boxes

Tampakuro/kuroguy discovered the layout of the JTAG Port on LS Pro v1 and an early KuroPro by tracing the wiring. The account of his work and early efforts is here : JTAG for the LS Pro and LS Live. He found that the v1 had a non-standard pinout. The v2 LS Live has a standard ARM 20 pin layout. mdfirefighter and others discovered that Dominic Rath's OpenOCD software was the key to opening the LS Pro to JTAG - this is detailed in the same thread linked to above.

Background and Equipment

INCOMPLETE - Do Not Attempt At This Time

These directions have been tested and checked on a LSProV2, with a Ubuntu 7.10 box (x86) and an Olimex ARM-USB-TINY jtag/usb programmer/debugger. Parallel port debuggers are certainly an option, but will probably yield lower speeds.

Setting Up OpenOCD

Compiling

See

Configuring and Starting OpenOCD

Available Commands in OpenOCD

While in OpenOCD, entering the command help will yield a list of available commands and summary of help.

Starting OpenOCD and Connecting with Telnet

You will need to do both of the following as root:

In a terminal window, cd to your OpenOCD config file and start it. From this window you will see only diagnostic information, mainly. Change directory to the docs/configs in the openocd directory. Then start openocd, directing it to use the config file that you have set up previously.

The error seems commonplace to most of us that have used it. Until we know otherwise, most of us are assuming it is not a huge problem.
OpenOCD is now running.

In a second terminal window, start telnet pointed to loopback, port 4444. This window is where you will control the communication and commands to your device via the jtag interface. You will have to halt your processor, verify the flash banks, and probe them (so that they are recognized properly).

Once this is done, you have verified that you have proper access to the flash. Now erase it, check your erase and then write the u-boot.bin file to flash. This may take anywhere from about an hour up to 5 or 6 hours. Do not interrupt the process.

Verifying Flash and Flashing

Notes and Special Situations

At least a handful of us have flashed once or twice, and then been able to proceed with a third flash. Presumably, the processor was in a state that allowed us to do the first flash(es) but for some unknown reason comes to be in some less manageable state.

Terastation Pro v2/Terastation Live (arm9)

Similar to the other arm9-based boxes from buffalo these 2 only have uboot in flash. everything else is read and executed from harddisc.