eCos User Guide
Prev | Appendix A. Target Setup | Next

# PowerPC MBX860 Hardware Setup

The eCos Developer’s Kit package comes with an EPROM which provides GDB support for the Motorola PowerPC MBX860 evaluation board. An image of this EPROM is also provided at `loaders/powerpc-mbx/gdbload.bin` under the root of your eCos installation.

The EPROM is installed to socket XU1 on the board. Attention should be paid to the correct orientation of the EPROM during installation. Only replace the board"s existing ROM using a proper PLCC extraction tool, as the socket would otherwise risk getting damaged.

The GDB stub in the EPROM allows communication with GDB using the serial port at connector SMC1/COM1. 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 suitable serial cable.

In order to make the board execute the EPROM that you just installed (rather than the on-board FLASH memory), it may be necessary move some links on the board. Specifically, ensure that link J4 is in position 1-2. If in doubt, refer to the MBX documentation from Motorola, ensuring that Boot Port Size=8 Bits/ROM for BOOT (CS#7), in their terminology.

## Installing the Stubs into FLASH

### Preparing the Binaries

These two binary preparation steps are not strictly necessary as the eCos distribution ships with pre-compiled binaries in the directory `loaders/powerpc-mbx` relative to the installation root.

#### Building the ROM images with the eCos Configuration Tool

1. Start with a new document - selecting the File->New menu item if necessary to do this.

2. Choose the Build->Templates menu item, and then select the PowerPC Motorola MBX860/821 hardware.

3. While still displaying the Build->Templates dialog box, select the “stubs” package template to build a GDB stub. Click OK.

4. Build eCos using Build->Library.

5. When the build completes, the image files can be found in the bin/ subdirectory of the install tree. GDB stub ROM images have the prefix “gdb_module”.

#### Building the ROM images with ecosconfig

1. Make an empty directory to contain the build tree, and cd into it.

2. To build a GDB stub ROM image, enter the command:

       $ ecosconfig new mbx stubs

3. Enter the commands:

       $ ecosconfig tree
       $ make

4. When the build completes, the image files can be found in the bin/ subdirectory of the install tree. GDB stub ROM images have the prefix “gdb_module”.

### Installing the Stubs into ROM

1. Program the binary image file gdb_module.bin into ROM or FLASH referring to the instructions of your ROM programmer.

2. Plug the ROM/FLASH into socket XU1 as described near the beginning of this Hardware Setup section.

### Installing the Stubs into FLASH

This assumes you have EPPC-Bug in the on-board FLASH. This can be determined by setting up the board according to the below instructions and powering up the board. The EPPC-Bug prompt should appear on the SMC1 connector at 9600 baud, 8N1.

1. Set jumper 3 to 2-3 [allow XU2 FLASH to be programmed]

2. Set jumper 4 to 2-3 [boot EPPC-Bug]

#### Program FLASH

1. Prepare EPPC-Bug for download:

       EPPC-Bug>lo 0

   At this point the monitor is ready for input. It will not return the prompt until the file has been downloaded.

2. Use the terminal emulator’s ASCII download feature (or a simple clipboard copy/paste operation) to download the gdb_module.srec data. Note that on Linux, Minicom’s ASCII download feature seems to be broken. A workaround is to load the file into Emacs (or another editor) and copy the full contents to the clipboard. Then press the mouse paste-button (usually the middle one) over the Minicom window.

3. Program the FLASH with the downloaded data:

       EPPC-Bug>pflash 40000 60000 fc000000

4. Switch off the power, and change jumper 4 to 1-2. Turn on the power again. The board should now boot using the newly programmed stubs.

Prev | Home | Next
PowerPC Cogent Hardware Setup | Up | PowerPC Architectural Simulator Setup