These stub preparation steps are not strictly necessary as
the eCos distribution ships with pre-compiled stubs in the directory loaders/tx49-ref4955 relative
to the installation root.
Now send the stub SREC data down to the board using the terminal
emulator’s ‘send ASCII’ (or similar)
functionality.
Red Hat has experienced some sensitivity to how fast the data
is written to the board. Under Windows you should configure Minicom
to use a line delay of 100 milliseconds. Under Linux, use the slow_cat.tcl
script:
% cd BASE_DIR/packages/hal/mips/ref4955/<version>/misc
% slow_cat.tcl < [path]/gdb_module.srec > /dev/ttyS0
Power off the board, and change it to boot the GDB stubs in
big-endian mode by setting the switches like this:
SW1: 00000000 (all levers down)
SW2: 10001010
The GDB stubs allow communication with GDB using the serial
port at connector PJ7A (lower connector). The communication parameters
are fixed at 38400 baud, 8 data bits, no parity bit and 1 stop
bit (8-N-1). No flow control is employed. Connection to the host
computer should be made using a straight through serial cable.