<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- permission is obtained from the copyright holder. -->
|
<!-- permission is obtained from the copyright holder. -->
|
<HTML
|
<HTML
|
><HEAD
|
><HEAD
|
><TITLE
|
><TITLE
|
>TX49 Hardware Setup</TITLE
|
>TX49 Hardware Setup</TITLE
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
<META
|
<META
|
NAME="GENERATOR"
|
NAME="GENERATOR"
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
"><LINK
|
"><LINK
|
REL="HOME"
|
REL="HOME"
|
TITLE="eCos User Guide"
|
TITLE="eCos User Guide"
|
HREF="ecos-user-guide.html"><LINK
|
HREF="ecos-user-guide.html"><LINK
|
REL="UP"
|
REL="UP"
|
TITLE="Target Setup"
|
TITLE="Target Setup"
|
HREF="appendix-target-setup.html"><LINK
|
HREF="appendix-target-setup.html"><LINK
|
REL="PREVIOUS"
|
REL="PREVIOUS"
|
TITLE="TX39 Architectural Simulator Setup"
|
TITLE="TX39 Architectural Simulator Setup"
|
HREF="setup-tx39-sim.html"><LINK
|
HREF="setup-tx39-sim.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="VR4300 Hardware Setup"
|
TITLE="VR4300 Hardware Setup"
|
HREF="setup-vr4300-vrc4373.html"></HEAD
|
HREF="setup-vr4300-vrc4373.html"></HEAD
|
><BODY
|
><BODY
|
CLASS="SECT1"
|
CLASS="SECT1"
|
BGCOLOR="#FFFFFF"
|
BGCOLOR="#FFFFFF"
|
TEXT="#000000"
|
TEXT="#000000"
|
LINK="#0000FF"
|
LINK="#0000FF"
|
VLINK="#840084"
|
VLINK="#840084"
|
ALINK="#0000FF"
|
ALINK="#0000FF"
|
><DIV
|
><DIV
|
CLASS="NAVHEADER"
|
CLASS="NAVHEADER"
|
><TABLE
|
><TABLE
|
SUMMARY="Header navigation table"
|
SUMMARY="Header navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TH
|
><TH
|
COLSPAN="3"
|
COLSPAN="3"
|
ALIGN="center"
|
ALIGN="center"
|
>eCos User Guide</TH
|
>eCos User Guide</TH
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="setup-tx39-sim.html"
|
HREF="setup-tx39-sim.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="80%"
|
WIDTH="80%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
>Appendix A. Target Setup</TD
|
>Appendix A. Target Setup</TD
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="setup-vr4300-vrc4373.html"
|
HREF="setup-vr4300-vrc4373.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"></DIV
|
WIDTH="100%"></DIV
|
><DIV
|
><DIV
|
CLASS="SECT1"
|
CLASS="SECT1"
|
><H1
|
><H1
|
CLASS="SECT1"
|
CLASS="SECT1"
|
><A
|
><A
|
NAME="SETUP-TX49-REF4955">TX49 Hardware Setup</H1
|
NAME="SETUP-TX49-REF4955">TX49 Hardware Setup</H1
|
><P
|
><P
|
>The eCos installation CD contains a copy of the eCos GDB stubs
|
>The eCos installation CD contains a copy of the eCos GDB stubs
|
in SREC format which must be programmed into the board’s
|
in SREC format which must be programmed into the board’s
|
FLASH memory.</P
|
FLASH memory.</P
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN3296">Preparing the GDB stubs</H2
|
NAME="AEN3296">Preparing the GDB stubs</H2
|
><P
|
><P
|
>These stub preparation steps are not strictly necessary as
|
>These stub preparation steps are not strictly necessary as
|
the eCos distribution ships with pre-compiled stubs in the directory <TT
|
the eCos distribution ships with pre-compiled stubs in the directory <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>loaders/tx49-ref4955</TT
|
>loaders/tx49-ref4955</TT
|
> relative
|
> relative
|
to the installation root.</P
|
to the installation root.</P
|
><DIV
|
><DIV
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><H3
|
><H3
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><A
|
><A
|
NAME="AEN3300">Building the GDB stub image with the eCos Configuration Tool</H3
|
NAME="AEN3300">Building the GDB stub image with the eCos Configuration Tool</H3
|
><P
|
><P
|
></P
|
></P
|
><OL
|
><OL
|
TYPE="1"
|
TYPE="1"
|
><LI
|
><LI
|
><P
|
><P
|
> Start with a new document - selecting the
|
> Start with a new document - selecting the
|
<SPAN
|
<SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>File->New</I
|
>File->New</I
|
></SPAN
|
></SPAN
|
>
|
>
|
menu item if necessary to do this.</P
|
menu item if necessary to do this.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Choose the
|
>Choose the
|
<SPAN
|
<SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>Build->Templates</I
|
>Build->Templates</I
|
></SPAN
|
></SPAN
|
>
|
>
|
menu item, and then select the TX49 REF4955 hardware.</P
|
menu item, and then select the TX49 REF4955 hardware.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>While still displaying the
|
>While still displaying the
|
<SPAN
|
<SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>Build->Templates</I
|
>Build->Templates</I
|
></SPAN
|
></SPAN
|
>
|
>
|
dialog box, select the stubs package template to build a GDB stub.
|
dialog box, select the stubs package template to build a GDB stub.
|
Click
|
Click
|
<SPAN
|
<SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>OK</I
|
>OK</I
|
></SPAN
|
></SPAN
|
>.</P
|
>.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Build eCos stubs using
|
>Build eCos stubs using
|
<SPAN
|
<SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>Build->Library</I
|
>Build->Library</I
|
></SPAN
|
></SPAN
|
>.</P
|
>.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>When the build completes, the image files can be found
|
>When the build completes, the image files can be found
|
in the bin/ subdirectory of the install tree. GDB stub
|
in the bin/ subdirectory of the install tree. GDB stub
|
images have the prefix gdb_module.</P
|
images have the prefix gdb_module.</P
|
></LI
|
></LI
|
></OL
|
></OL
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><H3
|
><H3
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><A
|
><A
|
NAME="AEN3318">Building the GDB stub image with ecosconfig</H3
|
NAME="AEN3318">Building the GDB stub image with ecosconfig</H3
|
><P
|
><P
|
></P
|
></P
|
><OL
|
><OL
|
TYPE="1"
|
TYPE="1"
|
><LI
|
><LI
|
><P
|
><P
|
> Make an empty directory to contain the build tree,
|
> Make an empty directory to contain the build tree,
|
and cd into it.</P
|
and cd into it.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>To build a GDB stub ROM image, enter the command:</P
|
>To build a GDB stub ROM image, enter the command:</P
|
><TABLE
|
><TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>$ ecosconfig new ref4955 stubs </PRE
|
>$ ecosconfig new ref4955 stubs </PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Enter the commands:</P
|
>Enter the commands:</P
|
><TABLE
|
><TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>$ ecosconfig tree
|
>$ ecosconfig tree
|
$ make</PRE
|
$ make</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>When the build completes, the image files can be found
|
>When the build completes, the image files can be found
|
in the bin/ subdirectory of the install tree. GDB stub
|
in the bin/ subdirectory of the install tree. GDB stub
|
images have the prefix gdb_module.</P
|
images have the prefix gdb_module.</P
|
></LI
|
></LI
|
></OL
|
></OL
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN3331">Installing GDB stubs into FLASH</H2
|
NAME="AEN3331">Installing GDB stubs into FLASH</H2
|
><P
|
><P
|
>Boot into the board’s firmware in little-endian mode:</P
|
>Boot into the board’s firmware in little-endian mode:</P
|
><P
|
><P
|
>Set the switches like this: </P
|
>Set the switches like this: </P
|
><P
|
><P
|
>SW1: 10000000 (first lever up, the rest down)
|
>SW1: 10000000 (first lever up, the rest down)
|
SW2: 10000010</P
|
SW2: 10000010</P
|
><P
|
><P
|
>Connect serial cable on the lower connector, configure terminal
|
>Connect serial cable on the lower connector, configure terminal
|
emulator for 38400, 8-N-1.</P
|
emulator for 38400, 8-N-1.</P
|
><P
|
><P
|
>When booting the board, you should get this prompt:</P
|
>When booting the board, you should get this prompt:</P
|
><TABLE
|
><TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>HCP5 rev 0.9B .
|
>HCP5 rev 0.9B .
|
HCP5?</PRE
|
HCP5?</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><P
|
><P
|
>Select o (option), a (FLASH) and b (boot write). You should
|
>Select o (option), a (FLASH) and b (boot write). You should
|
see this:</P
|
see this:</P
|
><TABLE
|
><TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>Boot ROM Write
|
>Boot ROM Write
|
ROM address-ffffffffbd000000, Boot Bus-[32bit]
|
ROM address-ffffffffbd000000, Boot Bus-[32bit]
|
ID2 0 4 ffffffffa002ad40
|
ID2 0 4 ffffffffa002ad40
|
zzz SS-40000 IV-1 CS-20000 CC-2
|
zzz SS-40000 IV-1 CS-20000 CC-2
|
Flash ROM-[28F640J5], [16bit chip] * 2 * 1
|
Flash ROM-[28F640J5], [16bit chip] * 2 * 1
|
Block size-00040000 count-64
|
Block size-00040000 count-64
|
ROM adr ffffffffbd000000-ffffffffbe000000 mask-00fc0000
|
ROM adr ffffffffbd000000-ffffffffbe000000 mask-00fc0000
|
Send Srecord file sa=00000000 size=ffffffffffffffff
|
Send Srecord file sa=00000000 size=ffffffffffffffff
|
ra=fffffffffe000000
|
ra=fffffffffe000000
|
</PRE
|
</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><P
|
><P
|
>Now send the stub SREC data down to the board using the terminal
|
>Now send the stub SREC data down to the board using the terminal
|
emulator’s ‘send ASCII’ (or similar)
|
emulator’s ‘send ASCII’ (or similar)
|
functionality. </P
|
functionality. </P
|
><P
|
><P
|
>Red Hat has experienced some sensitivity to how fast the data
|
>Red Hat has experienced some sensitivity to how fast the data
|
is written to the board. Under Windows you should configure Minicom
|
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
|
to use a line delay of 100 milliseconds. Under Linux, use the slow_cat.tcl
|
script:</P
|
script:</P
|
><TABLE
|
><TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>% cd BASE_DIR/packages/hal/mips/ref4955/<TT
|
>% cd BASE_DIR/packages/hal/mips/ref4955/<TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
><version></I
|
><version></I
|
></TT
|
></TT
|
>/misc
|
>/misc
|
% slow_cat.tcl < [path]/gdb_module.srec > /dev/ttyS0</PRE
|
% slow_cat.tcl < [path]/gdb_module.srec > /dev/ttyS0</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><P
|
><P
|
>Power off the board, and change it to boot the GDB stubs in
|
>Power off the board, and change it to boot the GDB stubs in
|
big-endian mode by setting the switches like this:</P
|
big-endian mode by setting the switches like this:</P
|
><P
|
><P
|
>SW1: 00000000 (all levers down)
|
>SW1: 00000000 (all levers down)
|
SW2: 10001010</P
|
SW2: 10001010</P
|
><P
|
><P
|
>The GDB stubs allow communication with GDB using the serial
|
>The GDB stubs allow communication with GDB using the serial
|
port at connector PJ7A (lower connector). The communication parameters
|
port at connector PJ7A (lower connector). The communication parameters
|
are fixed at 38400 baud, 8 data bits, no parity bit and 1 stop
|
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
|
bit (8-N-1). No flow control is employed. Connection to the host
|
computer should be made using a straight through serial cable.</P
|
computer should be made using a straight through serial cable.</P
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="NAVFOOTER"
|
CLASS="NAVFOOTER"
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"><TABLE
|
WIDTH="100%"><TABLE
|
SUMMARY="Footer navigation table"
|
SUMMARY="Footer navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="setup-tx39-sim.html"
|
HREF="setup-tx39-sim.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="ecos-user-guide.html"
|
HREF="ecos-user-guide.html"
|
ACCESSKEY="H"
|
ACCESSKEY="H"
|
>Home</A
|
>Home</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="setup-vr4300-vrc4373.html"
|
HREF="setup-vr4300-vrc4373.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
>TX39 Architectural Simulator Setup</TD
|
>TX39 Architectural Simulator Setup</TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="appendix-target-setup.html"
|
HREF="appendix-target-setup.html"
|
ACCESSKEY="U"
|
ACCESSKEY="U"
|
>Up</A
|
>Up</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
>VR4300 Hardware Setup</TD
|
>VR4300 Hardware Setup</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|