URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-ppc-cogent.html] - Rev 227
Go to most recent revision | Compare with Previous | Blame | View Log
<!-- Copyright (C) 2003 Red Hat, Inc. --> <!-- This material may be distributed only subject to the terms --> <!-- and conditions set forth in the Open Publication License, v1.0 --> <!-- or later (the latest version is presently available at --> <!-- http://www.opencontent.org/openpub/). --> <!-- Distribution of the work or derivative of the work in any --> <!-- standard (paper) book form is prohibited unless prior --> <!-- permission is obtained from the copyright holder. --> <HTML ><HEAD ><TITLE >PowerPC Cogent Hardware Setup</TITLE ><meta name="MSSmartTagsPreventParsing" content="TRUE"> <META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ "><LINK REL="HOME" TITLE="eCos User Guide" HREF="ecos-user-guide.html"><LINK REL="UP" TITLE="Target Setup" HREF="appendix-target-setup.html"><LINK REL="PREVIOUS" TITLE="Atlas/Malta Hardware Setup" HREF="setup-mips-atlasmalta.html"><LINK REL="NEXT" TITLE="PowerPC MBX860 Hardware Setup" HREF="setup-ppc-mbx860.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >eCos User Guide</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="setup-mips-atlasmalta.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Appendix A. Target Setup</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="setup-ppc-mbx860.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="SETUP-PPC-COGENT">PowerPC Cogent Hardware Setup</H1 ><P >The eCos Developer’s Kit package comes with an EPROM which provides GDB support for the Cogent evaluation board. An image of this EPROM is also provided at <TT CLASS="FILENAME" >loaders/powerpc-cogent/gdbload.bin</TT > under the root of your eCos installation. The same EPROM and image can be used on all three supported daughterboards: CMA287-23 (MPC823), CMA287-50 (MPC850), and CMA286-60 (MPC860).</P ><P >The EPROM is installed to socket U4 on the board. Attention should be paid to the correct orientation of the EPROM during installation. </P ><P >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. If the EPROM burner software has a hex-editor, check that the first few bytes of the image look like: </P ><TABLE BORDER="5" BGCOLOR="#E0E0F0" WIDTH="70%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >00000000: 3c60 fff0 6063 2000 7c68 03a6 4e80 0020 <`..`c.|h..N.. </PRE ></TD ></TR ></TABLE ><P >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 burn to image to the EPROM. </P ><P >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. At least one DOS-based EPROM burner program is known to have the byte-order upside down.</P ><P >The GDB stub in the EPROM allows communication with GDB using 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 (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 Cogent CMA manual.</P ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="AEN3370">Installing the Stubs into ROM</H2 ><DIV CLASS="SECT3" ><H3 CLASS="SECT3" ><A NAME="AEN3372">Preparing the Binaries</H3 ><P >These two binary preparation steps are not strictly necessary as the eCos distribution ships with pre-compiled binaries in the directory <TT CLASS="FILENAME" >loaders/powerpc-cogent</TT > relative to the installation root.</P ><DIV CLASS="SECT4" ><H4 CLASS="SECT4" ><A NAME="AEN3376">Building the ROM images with the eCos Configuration Tool</H4 ><P ></P ><OL TYPE="1" ><LI ><P >Start with a new document - selecting the <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >File->New</I ></SPAN > menu item if necessary to do this.</P ></LI ><LI ><P >Choose the <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >Build->Templates</I ></SPAN > menu item, and then select the PowerPC CMA28x hardware.</P ></LI ><LI ><P >While still displaying the <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >Build->Templates</I ></SPAN > dialog box, select the “stubs” package template to build a GDB stub. Click <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >OK</I ></SPAN >.</P ></LI ><LI ><P >Build eCos using <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >Build->Library</I ></SPAN >.</P ></LI ><LI ><P >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”.</P ></LI ></OL ></DIV ><DIV CLASS="SECT4" ><H4 CLASS="SECT4" ><A NAME="AEN3394">Building the ROM images with ecosconfig</H4 ><P ></P ><OL TYPE="1" ><LI ><P >Make an empty directory to contain the build tree, and cd into it.</P ></LI ><LI ><P >To build a GDB stub ROM image, enter the command: <TABLE BORDER="5" BGCOLOR="#E0E0F0" WIDTH="70%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >$ ecosconfig new cma28x stubs </PRE ></TD ></TR ></TABLE ></P ></LI ><LI ><P >Enter the commands: <TABLE BORDER="5" BGCOLOR="#E0E0F0" WIDTH="70%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >$ ecosconfig tree $ make</PRE ></TD ></TR ></TABLE > </P ></LI ><LI ><P >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”.</P ></LI ></OL ></DIV ></DIV ><DIV CLASS="SECT3" ><H3 CLASS="SECT3" ><A NAME="AEN3407">Installing the Stubs into ROM or FLASH</H3 ><P ></P ><OL TYPE="1" ><LI ><P >Program the binary image file gdb_module.bin into ROM or FLASH referring to the instructions of your ROM programmer.</P ></LI ><LI ><P > Plug the ROM/FLASH into socket U4 as described at the beginning of this <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >Hardware Setup</I ></SPAN > section.</P ></LI ></OL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="setup-mips-atlasmalta.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ecos-user-guide.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="setup-ppc-mbx860.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Atlas/Malta Hardware Setup</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="appendix-target-setup.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >PowerPC MBX860 Hardware Setup</TD ></TR ></TABLE ></DIV ></BODY ></HTML >
Go to most recent revision | Compare with Previous | Blame | View Log