<!-- 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
|
>PowerPC Cogent Hardware Setup</TITLE
|
>PowerPC Cogent 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="Atlas/Malta Hardware Setup"
|
TITLE="Atlas/Malta Hardware Setup"
|
HREF="setup-mips-atlasmalta.html"><LINK
|
HREF="setup-mips-atlasmalta.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="PowerPC MBX860 Hardware Setup"
|
TITLE="PowerPC MBX860 Hardware Setup"
|
HREF="setup-ppc-mbx860.html"></HEAD
|
HREF="setup-ppc-mbx860.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-mips-atlasmalta.html"
|
HREF="setup-mips-atlasmalta.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-ppc-mbx860.html"
|
HREF="setup-ppc-mbx860.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-PPC-COGENT">PowerPC Cogent Hardware Setup</H1
|
NAME="SETUP-PPC-COGENT">PowerPC Cogent Hardware Setup</H1
|
><P
|
><P
|
>The eCos Developer’s Kit package comes with an EPROM
|
>The eCos Developer’s Kit package comes with an EPROM
|
which provides GDB support for the Cogent
|
which provides GDB support for the Cogent
|
evaluation board. An image of this EPROM is also provided at
|
evaluation board. An image of this EPROM is also provided at
|
<TT
|
<TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>loaders/powerpc-cogent/gdbload.bin</TT
|
>loaders/powerpc-cogent/gdbload.bin</TT
|
> under
|
> under
|
the root of your eCos installation. The same EPROM and image can
|
the root of your eCos installation. The same EPROM and image can
|
be used on all three supported daughterboards: CMA287-23 (MPC823),
|
be used on all three supported daughterboards: CMA287-23 (MPC823),
|
CMA287-50 (MPC850), and CMA286-60 (MPC860).</P
|
CMA287-50 (MPC850), and CMA286-60 (MPC860).</P
|
><P
|
><P
|
>The EPROM is installed to socket U4 on the board. Attention
|
>The EPROM is installed to socket U4 on the board. Attention
|
should be paid to the correct orientation of the EPROM during installation. </P
|
should be paid to the correct orientation of the EPROM during installation. </P
|
><P
|
><P
|
>If you are going to burn a new EPROM using the binary image,
|
>If you are going to burn a new EPROM using the binary image,
|
be careful to get the byte order correct. It needs to be big-endian.
|
be careful to get the byte order correct. It needs to be big-endian.
|
If the EPROM burner software has a hex-editor, check that the first
|
If the EPROM burner software has a hex-editor, check that the first
|
few bytes of the image look like: </P
|
few bytes of the image look like: </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"
|
>00000000: 3c60 fff0 6063 2000 7c68 03a6 4e80 0020 <`..`c.|h..N.. </PRE
|
>00000000: 3c60 fff0 6063 2000 7c68 03a6 4e80 0020 <`..`c.|h..N.. </PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><P
|
><P
|
>If the byte order is wrong you will see 603c instead of 3c60
|
>If the byte order is wrong you will see 603c instead of 3c60
|
etc. Use the EPROM burner software to make a byte-swap before you
|
etc. Use the EPROM burner software to make a byte-swap before you
|
burn to image to the EPROM. </P
|
burn to image to the EPROM. </P
|
><P
|
><P
|
>If the GDB stub EPROM you burn does not work, try reversing
|
>If the GDB stub EPROM you burn does not work, try reversing
|
the byte-order, even if you think you have it the right way around.
|
the byte-order, even if you think you have it the right way around.
|
At least one DOS-based EPROM burner program is known to have the
|
At least one DOS-based EPROM burner program is known to have the
|
byte-order upside down.</P
|
byte-order upside down.</P
|
><P
|
><P
|
>The GDB stub in the EPROM allows communication with GDB using
|
>The GDB stub in the EPROM allows communication with GDB using
|
the serial port at connector P12 (CMA101) or P3 (CMA102). The communication parameters
|
the serial port at connector P12 (CMA101) or P3 (CMA102). The communication parameters
|
are fixed at 38400 baud, 8 data bits, no parity bit and 1 stop bit
|
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
|
(8-N-1). No flow control is employed. Connection to the host computer
|
should be made using a dedicated serial cable as specified in the
|
should be made using a dedicated serial cable as specified in the
|
Cogent CMA manual.</P
|
Cogent CMA manual.</P
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN3370">Installing the Stubs into ROM</H2
|
NAME="AEN3370">Installing the Stubs into ROM</H2
|
><DIV
|
><DIV
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><H3
|
><H3
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><A
|
><A
|
NAME="AEN3372">Preparing the Binaries</H3
|
NAME="AEN3372">Preparing the Binaries</H3
|
><P
|
><P
|
>These two binary preparation steps are not strictly necessary
|
>These two binary preparation steps are not strictly necessary
|
as the eCos distribution ships with pre-compiled binaries in the
|
as the eCos distribution ships with pre-compiled binaries in the
|
directory <TT
|
directory <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>loaders/powerpc-cogent</TT
|
>loaders/powerpc-cogent</TT
|
> relative to the installation
|
> relative to the installation
|
root.</P
|
root.</P
|
><DIV
|
><DIV
|
CLASS="SECT4"
|
CLASS="SECT4"
|
><H4
|
><H4
|
CLASS="SECT4"
|
CLASS="SECT4"
|
><A
|
><A
|
NAME="AEN3376">Building the ROM images with the eCos Configuration Tool</H4
|
NAME="AEN3376">Building the ROM images with the eCos Configuration Tool</H4
|
><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 PowerPC CMA28x hardware.</P
|
menu item, and then select the PowerPC CMA28x 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
|
dialog box, select the “stubs” package template
|
to build a GDB stub. Click
|
to build a GDB stub. 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 using
|
>Build eCos 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
|
ROM images have the prefix “gdb_module”.</P
|
ROM images have the prefix “gdb_module”.</P
|
></LI
|
></LI
|
></OL
|
></OL
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT4"
|
CLASS="SECT4"
|
><H4
|
><H4
|
CLASS="SECT4"
|
CLASS="SECT4"
|
><A
|
><A
|
NAME="AEN3394">Building the ROM images with ecosconfig</H4
|
NAME="AEN3394">Building the ROM images with ecosconfig</H4
|
><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:
|
>To build a GDB stub ROM image, enter the command:
|
|
|
<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 cma28x stubs </PRE
|
>$ ecosconfig new cma28x stubs </PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></P
|
></P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Enter the commands:
|
>Enter the commands:
|
|
|
<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
|
>
|
>
|
</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
|
ROM images have the prefix “gdb_module”.</P
|
ROM images have the prefix “gdb_module”.</P
|
></LI
|
></LI
|
></OL
|
></OL
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><H3
|
><H3
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><A
|
><A
|
NAME="AEN3407">Installing the Stubs into ROM or FLASH</H3
|
NAME="AEN3407">Installing the Stubs into ROM or FLASH</H3
|
><P
|
><P
|
></P
|
></P
|
><OL
|
><OL
|
TYPE="1"
|
TYPE="1"
|
><LI
|
><LI
|
><P
|
><P
|
>Program the binary image file gdb_module.bin
|
>Program the binary image file gdb_module.bin
|
into ROM or FLASH referring to the instructions of your ROM programmer.</P
|
into ROM or FLASH referring to the instructions of your ROM programmer.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
> Plug the ROM/FLASH into socket U4 as described
|
> Plug the ROM/FLASH into socket U4 as described
|
at the beginning of this <SPAN
|
at the beginning of this <SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>Hardware Setup</I
|
>Hardware Setup</I
|
></SPAN
|
></SPAN
|
> section.</P
|
> section.</P
|
></LI
|
></LI
|
></OL
|
></OL
|
></DIV
|
></DIV
|
></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-mips-atlasmalta.html"
|
HREF="setup-mips-atlasmalta.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-ppc-mbx860.html"
|
HREF="setup-ppc-mbx860.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"
|
>Atlas/Malta Hardware Setup</TD
|
>Atlas/Malta Hardware 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"
|
>PowerPC MBX860 Hardware Setup</TD
|
>PowerPC MBX860 Hardware Setup</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|