1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >TX49 Hardware Setup</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos User Guide"
20 HREF="ecos-user-guide.html"><LINK
23 HREF="appendix-target-setup.html"><LINK
25 TITLE="TX39 Architectural Simulator Setup"
26 HREF="setup-tx39-sim.html"><LINK
28 TITLE="VR4300 Hardware Setup"
29 HREF="setup-vr4300-vrc4373.html"></HEAD
40 SUMMARY="Header navigation table"
57 HREF="setup-tx39-sim.html"
65 >Appendix A. Target Setup</TD
71 HREF="setup-vr4300-vrc4373.html"
85 NAME="SETUP-TX49-REF4955">TX49 Hardware Setup</H1
87 >The eCos installation CD contains a copy of the eCos GDB stubs
88 in SREC format which must be programmed into the board’s
95 NAME="AEN3296">Preparing the GDB stubs</H2
97 >These stub preparation steps are not strictly necessary as
98 the eCos distribution ships with pre-compiled stubs in the directory <TT
100 >loaders/tx49-ref4955</TT
102 to the installation root.</P
108 NAME="AEN3300">Building the GDB stub image with the eCos Configuration Tool</H3
115 > Start with a new document - selecting the
123 menu item if necessary to do this.</P
132 >Build->Templates</I
135 menu item, and then select the TX49 REF4955 hardware.</P
139 >While still displaying the
144 >Build->Templates</I
147 dialog box, select the stubs package template to build a GDB stub.
159 >Build eCos stubs using
164 >Build->Library</I
170 >When the build completes, the image files can be found
171 in the bin/ subdirectory of the install tree. GDB stub
172 images have the prefix gdb_module.</P
181 NAME="AEN3318">Building the GDB stub image with ecosconfig</H3
188 > Make an empty directory to contain the build tree,
193 >To build a GDB stub ROM image, enter the command:</P
201 CLASS="PROGRAMLISTING"
202 >$ ecosconfig new ref4955 stubs </PRE
209 >Enter the commands:</P
217 CLASS="PROGRAMLISTING"
226 >When the build completes, the image files can be found
227 in the bin/ subdirectory of the install tree. GDB stub
228 images have the prefix gdb_module.</P
238 NAME="AEN3331">Installing GDB stubs into FLASH</H2
240 >Boot into the board’s firmware in little-endian mode:</P
242 >Set the switches like this: </P
244 >SW1: 10000000 (first lever up, the rest down)
247 >Connect serial cable on the lower connector, configure terminal
248 emulator for 38400, 8-N-1.</P
250 >When booting the board, you should get this prompt:</P
258 CLASS="PROGRAMLISTING"
265 >Select o (option), a (FLASH) and b (boot write). You should
274 CLASS="PROGRAMLISTING"
276 ROM address-ffffffffbd000000, Boot Bus-[32bit]
277 ID2 0 4 ffffffffa002ad40
278 zzz SS-40000 IV-1 CS-20000 CC-2
279 Flash ROM-[28F640J5], [16bit chip] * 2 * 1
280 Block size-00040000 count-64
281 ROM adr ffffffffbd000000-ffffffffbe000000 mask-00fc0000
282 Send Srecord file sa=00000000 size=ffffffffffffffff
289 >Now send the stub SREC data down to the board using the terminal
290 emulator’s ‘send ASCII’ (or similar)
293 >Red Hat has experienced some sensitivity to how fast the data
294 is written to the board. Under Windows you should configure Minicom
295 to use a line delay of 100 milliseconds. Under Linux, use the slow_cat.tcl
304 CLASS="PROGRAMLISTING"
305 >% cd BASE_DIR/packages/hal/mips/ref4955/<TT
308 ><version></I
311 % slow_cat.tcl < [path]/gdb_module.srec > /dev/ttyS0</PRE
316 >Power off the board, and change it to boot the GDB stubs in
317 big-endian mode by setting the switches like this:</P
319 >SW1: 00000000 (all levers down)
322 >The GDB stubs allow communication with GDB using the serial
323 port at connector PJ7A (lower connector). The communication parameters
324 are fixed at 38400 baud, 8 data bits, no parity bit and 1 stop
325 bit (8-N-1). No flow control is employed. Connection to the host
326 computer should be made using a straight through serial cable.</P
334 SUMMARY="Footer navigation table"
345 HREF="setup-tx39-sim.html"
354 HREF="ecos-user-guide.html"
363 HREF="setup-vr4300-vrc4373.html"
373 >TX39 Architectural Simulator Setup</TD
379 HREF="appendix-target-setup.html"
387 >VR4300 Hardware Setup</TD