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

Subversion Repositories openrisc

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

Go to most recent revision | 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
>SPARClite Hardware Setup</TITLE
>SPARClite 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 Architectural Simulator Setup"
TITLE="PowerPC Architectural Simulator Setup"
HREF="setup-ppc-sim.html"><LINK
HREF="setup-ppc-sim.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="SPARClite Architectural Simulator Setup"
TITLE="SPARClite Architectural Simulator Setup"
HREF="setup-sparclite-sim.html"></HEAD
HREF="setup-sparclite-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-sim.html"
HREF="setup-ppc-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-sparclite-sim.html"
HREF="setup-sparclite-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-SPARCLITE-SLEB">SPARClite Hardware Setup</H1
NAME="SETUP-SPARCLITE-SLEB">SPARClite Hardware Setup</H1
><P
><P
>The eCos Developer&#8217;s Kit package comes with a ROM
>The eCos Developer&#8217;s Kit package comes with a ROM
which provides GDB support for the Fujitsu SPARClite Evaluation
which provides GDB support for the Fujitsu SPARClite Evaluation
Board by way of CygMon<SPAN
Board by way of CygMon<SPAN
CLASS="PRODUCTNAME"
CLASS="PRODUCTNAME"
>. </SPAN
>. </SPAN
></P
></P
><P
><P
>An image of this ROM is also provided at
>An image of this ROM is also provided at
          <TT
          <TT
CLASS="FILENAME"
CLASS="FILENAME"
>BASE_DIR/loaders/sparclite-sleb/cygmon.bin.</TT
>BASE_DIR/loaders/sparclite-sleb/cygmon.bin.</TT
> The
> The
ROM is installed in socket IC9 on the evaluation board. Attention
ROM is installed in socket IC9 on the evaluation board. Attention
should be paid to the correct orientation of the ROM during installation.</P
should be paid to the correct orientation of the ROM during installation.</P
><P
><P
>The GDB stub allows communication with GDB using a TCP channel
>The GDB stub allows communication with GDB using a TCP channel
via the ethernet port at connector J5.</P
via the ethernet port at connector J5.</P
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN3509">Ethernet Setup</H2
NAME="AEN3509">Ethernet Setup</H2
><P
><P
>The ethernet setup is described in the board&#8217;s manual,
>The ethernet setup is described in the board&#8217;s manual,
but here is a recapitulation.</P
but here is a recapitulation.</P
><P
><P
>Set the board&#8217;s ethernet address using SW1 on the
>Set the board&#8217;s ethernet address using SW1 on the
motherboard:</P
motherboard:</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"
>           SW1-4 SW1-3 SW1-2 SW1-1    Ethernet Address
>           SW1-4 SW1-3 SW1-2 SW1-1    Ethernet Address
            ----- ----- ----- -----    ----------------
            ----- ----- ----- -----    ----------------
            OFF   OFF   OFF   OFF     No ethernet, use serial
            OFF   OFF   OFF   OFF     No ethernet, use serial
            OFF   OFF   OFF    ON     00:00:0E:31:00:01
            OFF   OFF   OFF    ON     00:00:0E:31:00:01
            OFF   OFF    ON   OFF     00:00:0E:31:00:02
            OFF   OFF    ON   OFF     00:00:0E:31:00:02
            OFF   OFF    ON    ON     00:00:0E:31:00:03
            OFF   OFF    ON    ON     00:00:0E:31:00:03
            OFF    ON   OFF   OFF     00:00:0E:31:00:04
            OFF    ON   OFF   OFF     00:00:0E:31:00:04
            OFF    ON   OFF    ON     00:00:0E:31:00:05
            OFF    ON   OFF    ON     00:00:0E:31:00:05
            OFF    ON    ON   OFF     00:00:0E:31:00:06
            OFF    ON    ON   OFF     00:00:0E:31:00:06
            OFF    ON    ON    ON     00:00:0E:31:00:07
            OFF    ON    ON    ON     00:00:0E:31:00:07
            ON    OFF   OFF   OFF     00:00:0E:31:00:08
            ON    OFF   OFF   OFF     00:00:0E:31:00:08
            ON    OFF   OFF    ON     00:00:0E:31:00:09
            ON    OFF   OFF    ON     00:00:0E:31:00:09
            ON    OFF    ON   OFF     00:00:0E:31:00:0A
            ON    OFF    ON   OFF     00:00:0E:31:00:0A
            ON    OFF    ON    ON     00:00:0E:31:00:0B
            ON    OFF    ON    ON     00:00:0E:31:00:0B
            ON     ON   OFF   OFF     00:00:0E:31:00:0C
            ON     ON   OFF   OFF     00:00:0E:31:00:0C
            ON     ON   OFF    ON     00:00:0E:31:00:0D
            ON     ON   OFF    ON     00:00:0E:31:00:0D
            ON     ON    ON   OFF     00:00:0E:31:00:0E
            ON     ON    ON   OFF     00:00:0E:31:00:0E
            ON     ON    ON    ON     00:00:0E:31:00:0F</PRE
            ON     ON    ON    ON     00:00:0E:31:00:0F</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN3514">BOOTP/DHCP service on Linux</H3
NAME="AEN3514">BOOTP/DHCP service on Linux</H3
><P
><P
>Configure the BOOTP or DHCP server on the network to recognize
>Configure the BOOTP or DHCP server on the network to recognize
the evaluation board&#8217;s ethernet address so it can assign
the evaluation board&#8217;s ethernet address so it can assign
the board an IP address. Below is a sample DHCP server configuration
the board an IP address. Below is a sample DHCP server configuration
from a Linux system (<TT
from a Linux system (<TT
CLASS="FILENAME"
CLASS="FILENAME"
>/etc/dhcpd.conf</TT
>/etc/dhcpd.conf</TT
>).
>).
It shows a setup for three evaluation boards.</P
It shows a setup for three evaluation boards.</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"
>#
>#
# DHCP server configuration.
# DHCP server configuration.
#
#
allow bootp;
allow bootp;
 
 
subnet 192.168.1.0 netmask 255.255.255.0 {
subnet 192.168.1.0 netmask 255.255.255.0 {
  host mb831evb {
  host mb831evb {
    hardware ethernet 00:00:0e:31:00:01;
    hardware ethernet 00:00:0e:31:00:01;
    fixed-address mb831evb;
    fixed-address mb831evb;
  }
  }
  host mb832evb {
  host mb832evb {
    hardware ethernet 00:00:0e:31:00:02;
    hardware ethernet 00:00:0e:31:00:02;
    fixed-address mb832evb;
    fixed-address mb832evb;
  }
  }
  host mb833evb {
  host mb833evb {
    hardware ethernet 00:00:0e:31:00:03;
    hardware ethernet 00:00:0e:31:00:03;
    fixed-address mb833evb;
    fixed-address mb833evb;
  }
  }
} </PRE
} </PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN3519">BOOTP/DHCP boot process</H3
NAME="AEN3519">BOOTP/DHCP boot process</H3
><P
><P
>Even when configured to use a TCP channel, CygMon will still
>Even when configured to use a TCP channel, CygMon will still
print a boot message to the serial channel. If the BOOTP process
print a boot message to the serial channel. If the BOOTP process
was successful and an IP address was found, a message &#8220;BOOTP
was successful and an IP address was found, a message &#8220;BOOTP
found xxx.xxx.xxx.xxx&#8221; will be printed where xxx.xxx.xxx.xxx
found xxx.xxx.xxx.xxx&#8221; will be printed where xxx.xxx.xxx.xxx
is the IP address assigned by the BOOTP or DHCP server. If the BOOTP
is the IP address assigned by the BOOTP or DHCP server. If the BOOTP
process fails, a message indicating failure will be printed and
process fails, a message indicating failure will be printed and
the serial port will be used as the debug channel.</P
the serial port will be used as the debug channel.</P
><P
><P
>Once the board finds an IP address it will respond to ICMP
>Once the board finds an IP address it will respond to ICMP
echo request packets (ping). This gives a simple means to test the
echo request packets (ping). This gives a simple means to test the
health of the board.</P
health of the board.</P
><P
><P
>As described in &#8220;Ethernet Setup&#8221; on&nbsp;page&nbsp;72,
>As described in &#8220;Ethernet Setup&#8221; on&nbsp;page&nbsp;72,
it should now be possible to connect to the SPARClite board from
it should now be possible to connect to the SPARClite board from
within GDB by using the command:</P
within GDB by using 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"
>(gdb) target remote &lt;host&#62;:1000</PRE
>(gdb) target remote &lt;host&#62;:1000</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN3525">Serial Setup</H2
NAME="AEN3525">Serial Setup</H2
><P
><P
>The CygMon stubs also allow communication with GDB by way
>The CygMon stubs also allow communication with GDB by way
of the serial port at connector CON1. The communication parameters
of the serial port at connector CON1. The communication parameters
are fixed at 19200 baud, 8 data bits, no parity bit and 1 stop bit
are fixed at 19200 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 null modem cable. A gender changer may also
should be made using a null modem cable. A gender changer may also
be required.</P
be required.</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-ppc-sim.html"
HREF="setup-ppc-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-sparclite-sim.html"
HREF="setup-sparclite-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 Architectural Simulator Setup</TD
>PowerPC 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"
>SPARClite Architectural Simulator Setup</TD
>SPARClite 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.