OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-ppc-mbx860.html] - Diff between revs 28 and 174

Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- 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 MBX860 Hardware Setup</TITLE
>PowerPC MBX860 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="PowerPC Cogent Hardware Setup"
TITLE="PowerPC Cogent Hardware Setup"
HREF="setup-ppc-cogent.html"><LINK
HREF="setup-ppc-cogent.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="PowerPC Architectural Simulator Setup"
TITLE="PowerPC Architectural Simulator Setup"
HREF="setup-ppc-sim.html"></HEAD
HREF="setup-ppc-sim.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-ppc-cogent.html"
HREF="setup-ppc-cogent.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-sim.html"
HREF="setup-ppc-sim.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-MBX860">PowerPC MBX860 Hardware Setup</H1
NAME="SETUP-PPC-MBX860">PowerPC MBX860 Hardware Setup</H1
><P
><P
>The eCos Developer&#8217;s Kit package comes with an EPROM
>The eCos Developer&#8217;s Kit package comes with an EPROM
which provides GDB support for the Motorola
which provides GDB support for the Motorola
PowerPC MBX860 evaluation board. An image of this EPROM is also
PowerPC MBX860 evaluation board. An image of this EPROM is also
provided at <TT
provided at <TT
CLASS="FILENAME"
CLASS="FILENAME"
>loaders/powerpc-mbx/gdbload.bin</TT
>loaders/powerpc-mbx/gdbload.bin</TT
> under
> under
the root of your eCos installation.</P
the root of your eCos installation.</P
><P
><P
>The EPROM is installed to socket XU1 on the board. Attention
>The EPROM is installed to socket XU1 on the board. Attention
should be paid to the correct orientation of the EPROM during installation.
should be paid to the correct orientation of the EPROM during installation.
Only replace the board&quot;s existing ROM using a proper PLCC
Only replace the board&quot;s existing ROM using a proper PLCC
extraction tool, as the socket would otherwise risk getting damaged.</P
extraction tool, as the socket would otherwise risk getting damaged.</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 SMC1/COM1. The communication
the serial port at connector SMC1/COM1. The communication
parameters are fixed at 38400 baud, 8 data bits, no parity bit and
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
1 stop bit (8-N-1). No flow control is employed. Connection to the
host computer should be made using a suitable serial cable.</P
host computer should be made using a suitable serial cable.</P
><P
><P
>In order to make the board execute the EPROM that you just
>In order to make the board execute the EPROM that you just
installed (rather than the on-board FLASH memory), it may be necessary
installed (rather than the on-board FLASH memory), it may be necessary
move some links on the board. Specifically, ensure that link J4
move some links on the board. Specifically, ensure that link J4
is in position 1-2. If in doubt, refer to the MBX documentation
is in position 1-2. If in doubt, refer to the MBX documentation
from Motorola, ensuring that Boot Port Size=8 Bits/ROM
from Motorola, ensuring that Boot Port Size=8 Bits/ROM
for BOOT (CS#7), in their terminology.</P
for BOOT (CS#7), in their terminology.</P
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN3422">Installing the Stubs into FLASH</H2
NAME="AEN3422">Installing the Stubs into FLASH</H2
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN3424">Preparing the Binaries</H3
NAME="AEN3424">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-mbx</TT
>loaders/powerpc-mbx</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="AEN3428">Building the ROM images with the eCos Configuration Tool</H4
NAME="AEN3428">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-&#62;New</I
>File-&#62;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-&#62;Templates</I
>Build-&#62;Templates</I
></SPAN
></SPAN
>
>
 menu item, and then select the PowerPC    Motorola MBX860/821
 menu item, and then select the PowerPC    Motorola MBX860/821
hardware.</P
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-&#62;Templates</I
>Build-&#62;Templates</I
></SPAN
></SPAN
>
>
 dialog box, select the &#8220;stubs&#8221; package template
 dialog box, select the &#8220;stubs&#8221; 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-&#62;Library</I
>Build-&#62;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 &#8220;gdb_module&#8221;.</P
ROM images have the prefix &#8220;gdb_module&#8221;.</P
></LI
></LI
></OL
></OL
></DIV
></DIV
><DIV
><DIV
CLASS="SECT4"
CLASS="SECT4"
><H4
><H4
CLASS="SECT4"
CLASS="SECT4"
><A
><A
NAME="AEN3446">Building the ROM images with ecosconfig</H4
NAME="AEN3446">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 mbx stubs </PRE
>$ ecosconfig new mbx 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 &#8220;gdb_module&#8221;.</P
ROM images have the prefix &#8220;gdb_module&#8221;.</P
></LI
></LI
></OL
></OL
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN3459">Installing the Stubs into ROM</H3
NAME="AEN3459">Installing the Stubs into ROM</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 XU1 as described
> Plug the ROM/FLASH into socket XU1 as described
near the beginning of this <SPAN
near 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
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN3467">Installing the Stubs into FLASH</H3
NAME="AEN3467">Installing the Stubs into FLASH</H3
><P
><P
>This assumes you have EPPC-Bug in the on-board FLASH. This
>This assumes you have EPPC-Bug in the on-board FLASH. This
can be determined by setting up the board according to the below
can be determined by setting up the board according to the below
instructions and powering up the board. The EPPC-Bug prompt should
instructions and powering up the board. The EPPC-Bug prompt should
appear on the SMC1 connector at 9600 baud, 8N1.</P
appear on the SMC1 connector at 9600 baud, 8N1.</P
><P
><P
></P
></P
><OL
><OL
TYPE="1"
TYPE="1"
><LI
><LI
><P
><P
>Set jumper 3 to 2-3     [allow XU2 FLASH to
>Set jumper 3 to 2-3     [allow XU2 FLASH to
be programmed]</P
be programmed]</P
></LI
></LI
><LI
><LI
><P
><P
>Set jumper 4 to 2-3     [boot EPPC-Bug]</P
>Set jumper 4 to 2-3     [boot EPPC-Bug]</P
></LI
></LI
></OL
></OL
><DIV
><DIV
CLASS="SECT4"
CLASS="SECT4"
><H4
><H4
CLASS="SECT4"
CLASS="SECT4"
><A
><A
NAME="AEN3475">Program FLASH</H4
NAME="AEN3475">Program FLASH</H4
><P
><P
></P
></P
><OL
><OL
TYPE="1"
TYPE="1"
><LI
><LI
><P
><P
> Prepare EPPC-Bug for download:</P
> Prepare EPPC-Bug for download:</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"
>EPPC-Bug&#62;lo 0</PRE
>EPPC-Bug&#62;lo 0</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><P
><P
>At this point the monitor is ready for input. It will not return
>At this point the monitor is ready for input. It will not return
the prompt until the file has been downloaded.</P
the prompt until the file has been downloaded.</P
></LI
></LI
><LI
><LI
><P
><P
>Use the terminal emulator&#8217;s ASCII download feature
>Use the terminal emulator&#8217;s ASCII download feature
(or a simple clipboard     copy/paste operation) to download
(or a simple clipboard     copy/paste operation) to download
the gdb_module.srec data.
the gdb_module.srec data.
 
 
Note that on Linux, Minicom&#8217;s ASCII download feature seems
Note that on Linux, Minicom&#8217;s ASCII download feature seems
to be broken. A workaround is to load the file into Emacs (or another
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
editor) and copy the full contents to the clipboard. Then press
the mouse paste-button (usually the middle one) over the Minicom
the mouse paste-button (usually the middle one) over the Minicom
window.</P
window.</P
></LI
></LI
><LI
><LI
><P
><P
>Program the FLASH with the downloaded data:
>Program the FLASH with the downloaded data:
 
 
<TABLE
<TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>EPPC-Bug&#62;pflash 40000 60000 fc000000</PRE
>EPPC-Bug&#62;pflash 40000 60000 fc000000</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></P
></P
></LI
></LI
><LI
><LI
><P
><P
>Switch off the power, and change jumper 4 to 1-2. Turn
>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
on the power again. The board should now boot using the newly programmed
stubs.</P
stubs.</P
></LI
></LI
></OL
></OL
></DIV
></DIV
></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-ppc-cogent.html"
HREF="setup-ppc-cogent.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-sim.html"
HREF="setup-ppc-sim.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"
>PowerPC Cogent Hardware Setup</TD
>PowerPC Cogent 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 Architectural Simulator Setup</TD
>PowerPC Architectural Simulator Setup</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.