<!-- 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
|
>i386/Linux Synthetic Target Setup</TITLE
|
>i386/Linux Synthetic Target 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="i386 PC Hardware Setup"
|
TITLE="i386 PC Hardware Setup"
|
HREF="setup-i386-pc.html"><LINK
|
HREF="setup-i386-pc.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="Real-time characterization"
|
TITLE="Real-time characterization"
|
HREF="real-time-characterization.html"></HEAD
|
HREF="real-time-characterization.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-i386-pc.html"
|
HREF="setup-i386-pc.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="real-time-characterization.html"
|
HREF="real-time-characterization.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-SYNTH-I386LINUX">i386/Linux Synthetic Target Setup</H1
|
NAME="SETUP-SYNTH-I386LINUX">i386/Linux Synthetic Target Setup</H1
|
><P
|
><P
|
>When building for the synthetic Linux target, the resulting
|
>When building for the synthetic Linux target, the resulting
|
binaries are native Linux applications with the HAL providing suitable
|
binaries are native Linux applications with the HAL providing suitable
|
bindings between the eCos kernel and the Linux kernel.</P
|
bindings between the eCos kernel and the Linux kernel.</P
|
><DIV
|
><DIV
|
CLASS="NOTE"
|
CLASS="NOTE"
|
><BLOCKQUOTE
|
><BLOCKQUOTE
|
CLASS="NOTE"
|
CLASS="NOTE"
|
><P
|
><P
|
><B
|
><B
|
>Note: </B
|
>Note: </B
|
>Please be aware that the current implementation of the Linux
|
>Please be aware that the current implementation of the Linux
|
synthetic target does not allow thread-aware debugging.</P
|
synthetic target does not allow thread-aware debugging.</P
|
></BLOCKQUOTE
|
></BLOCKQUOTE
|
></DIV
|
></DIV
|
><P
|
><P
|
>These Linux applications cannot be run on a Windows system.
|
>These Linux applications cannot be run on a Windows system.
|
However, it is possible to write a similar HAL emulation for the
|
However, it is possible to write a similar HAL emulation for the
|
Windows kernel if such a testing target is desired.</P
|
Windows kernel if such a testing target is desired.</P
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN4471">Tools</H2
|
NAME="AEN4471">Tools</H2
|
><P
|
><P
|
>For the synthetic target, eCos relies on features not available
|
>For the synthetic target, eCos relies on features not available
|
in native compilers earlier than gcc-2.95.1. It also requires version
|
in native compilers earlier than gcc-2.95.1. It also requires version
|
2.9.5 or later of the GNU linker. If you have gcc-2.95.1 or later
|
2.9.5 or later of the GNU linker. If you have gcc-2.95.1 or later
|
and ld version 2.9.5 or later, then you do not need to build new
|
and ld version 2.9.5 or later, then you do not need to build new
|
tools. eCos does not support earlier versions. You can check the compiler
|
tools. eCos does not support earlier versions. You can check the compiler
|
version using <B
|
version using <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>gcc -v</B
|
>gcc -v</B
|
>
|
>
|
and the linker version using <B
|
and the linker version using <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>ld
|
>ld
|
-v</B
|
-v</B
|
>.</P
|
>.</P
|
><P
|
><P
|
>If you have native tools that are sufficiently recent for
|
>If you have native tools that are sufficiently recent for
|
use with eCos, you should be aware that by default eCos assumes
|
use with eCos, you should be aware that by default eCos assumes
|
that the tools <B
|
that the tools <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>i686-pc-linux-gnu-gcc</B
|
>i686-pc-linux-gnu-gcc</B
|
>, <B
|
>, <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>i686-pc-linux-gnu-ar</B
|
>i686-pc-linux-gnu-ar</B
|
>,
|
>,
|
<B
|
<B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>i686-pc-linux-gnu-ld</B
|
>i686-pc-linux-gnu-ld</B
|
>, and <B
|
>, and <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>i686-pc-linux-gnu-objcopy</B
|
>i686-pc-linux-gnu-objcopy</B
|
> are
|
> are
|
on your system and are the correct versions for use with eCos. But
|
on your system and are the correct versions for use with eCos. But
|
instead, you can tell eCos to use your native tools by editing the
|
instead, you can tell eCos to use your native tools by editing the
|
configuration value "Global command prefix" (CYGBLD_GLOBAL_COMMAND_PREFIX)
|
configuration value "Global command prefix" (CYGBLD_GLOBAL_COMMAND_PREFIX)
|
in your eCos configuration. If left empty (i.e. set to the empty
|
in your eCos configuration. If left empty (i.e. set to the empty
|
string) eCos will use your native tools when building.</P
|
string) eCos will use your native tools when building.</P
|
><P
|
><P
|
>If you have any difficulties, it is almost certainly easiest
|
>If you have any difficulties, it is almost certainly easiest
|
overall to rebuild the tools as described on: <A
|
overall to rebuild the tools as described on: <A
|
HREF="http://sources.redhat.com/ecos/getstart.html"
|
HREF="http://sources.redhat.com/ecos/getstart.html"
|
TARGET="_top"
|
TARGET="_top"
|
>http://sources.redhat.com/ecos/getstart.html</A
|
>http://sources.redhat.com/ecos/getstart.html</A
|
></P
|
></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-i386-pc.html"
|
HREF="setup-i386-pc.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="real-time-characterization.html"
|
HREF="real-time-characterization.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"
|
>i386 PC Hardware Setup</TD
|
>i386 PC 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"
|
>Real-time characterization</TD
|
>Real-time characterization</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|