📄 configuring-and-building-ecos-from-source.html
字号:
<!-- 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>Configuring and Building eCos from Source</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos User Guide"HREF="ecos-user-guide.html"><LINKREL="UP"TITLE="Programming With eCos"HREF="user-guide-programming.html"><LINKREL="PREVIOUS"TITLE="Programming With eCos"HREF="programming-with-ecos.html"><LINKREL="NEXT"TITLE="Configuration Tool on Windows and Linux Quick Start"HREF="using-configtool-windows-linux.html"></HEAD><BODYCLASS="CHAPTER"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos User Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="programming-with-ecos.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="using-configtool-windows-linux.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="CONFIGURING-AND-BUILDING-ECOS-FROM-SOURCE">Chapter 11. Configuring and Building <SPANCLASS="PRODUCTNAME">eCos</SPAN> from Source</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="configuring-and-building-ecos-from-source.html#ECOS-STARTUP-CONFIGS"><SPANCLASS="PRODUCTNAME">eCos</SPAN> Start-up Configurations</A></DT><DT><AHREF="using-configtool-windows-linux.html">Configuration Tool on Windows and Linux Quick Start</A></DT><DT><AHREF="using-ecosconfig-on-linux.html">Ecosconfig on Windows and Linux Quick Start</A></DT></DL></DIV><P>This chapter documents the configuration of <SPANCLASS="PRODUCTNAME">eCos</SPAN>. The process isthe same for any of the supported targets: you may select ahardware target (if you have a board available), any one of thesimulators, or a synthetic target (if your host platform has synthetictarget support).</P><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="ECOS-STARTUP-CONFIGS"><SPANCLASS="PRODUCTNAME">eCos</SPAN> Start-up Configurations</H1><P>There are various ways to download an executable image to atarget board, and these involve different ways of preparing theexecutable image. In the <SPANCLASS="PRODUCTNAME">eCos</SPAN> Hardware Abstraction Layer (HAL package)there are configuration options to support the different downloadmethods. <AHREF="configuring-and-building-ecos-from-source.html#USER-GUIDE-DOWNLOAD-METHODS">Table 11-1</A> summarizes theways in which an <SPANCLASS="PRODUCTNAME">eCos</SPAN> image can be prepared for different types ofdownload. This is not an exhaustive list, some targets defineadditional start-up types of their own. Where a ROM Monitor ismentioned, this will usually be RedBoot, although on some older, orlow resource, targets you may need to use CygMon or the GDB stubs ROM,see the target documentation for details.</P><DIVCLASS="TABLE"><ANAME="USER-GUIDE-DOWNLOAD-METHODS"><P><B>Table 11-1. Configuration for various download methods</B></P><TABLEBORDER="1"CLASS="CALSTABLE"><THEAD><TR><THALIGN="LEFT"VALIGN="TOP">Download method</TH><THALIGN="LEFT"VALIGN="TOP">HAL configuration</TH></TR></THEAD><TBODY><TR><TDALIGN="LEFT"VALIGN="TOP">Burn hardware ROM</TD><TDALIGN="LEFT"VALIGN="TOP"> ROM or ROMRAM start-up</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">Download to ROM emulator</TD><TDALIGN="LEFT"VALIGN="TOP"> ROM or ROMRAM start-up</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">Download to board with ROM Monitor</TD><TDALIGN="LEFT"VALIGN="TOP"> RAM start-up</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">Download to simulator without ROM Monitor</TD><TDALIGN="LEFT"VALIGN="TOP"> ROM start-up</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">Download to simulator with ROM Monitor</TD><TDALIGN="LEFT"VALIGN="TOP"> RAM start-up</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">Download to simulator ignoring devices</TD><TDALIGN="LEFT"VALIGN="TOP"> SIM configuration</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">Run synthetic target</TD><TDALIGN="LEFT"VALIGN="TOP"> RAM start-up</TD></TR></TBODY></TABLE></DIV><DIVCLASS="CAUTION"><P></P><TABLECLASS="CAUTION"BORDER="1"WIDTH="100%"><TR><TDALIGN="CENTER"><B>Caution</B></TD></TR><TR><TDALIGN="LEFT"><P>You cannot run an application configured for RAM start-upon the simulator directly: it will fail during start-up. You canonly download it to the simulator ifyou are already running RedBoot in the simulator,as described in the toolchain documentationor you load through the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">SID </I></SPAN>GDB debugging component. This is not the same as the simulatedstub, since it does not require a target program to be running toget GDB to talk to it. It can be done before letting the simulatorrunor you use the ELF loader component to get a program into memory.</P></TD></TR></TABLE></DIV><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>Note: </B>Configuring <SPANCLASS="PRODUCTNAME">eCos</SPAN>' HAL package for simulation shouldrarely be needed for real development; binaries built with sucha kernel will not run on target boards at all,and the MN10300 andTX39 simulators can run binaries built for stdeval1 and jmr3904target boards.The main use for a ``simulation'' configurationis if you are trying to work around problems with the device driversor with the simulator. Also note that when using a TX39 system configuredfor simulator start-up you should then invoke the simulator with the <TTCLASS="OPTION">--board=jmr3904pal</TT>option instead of <TTCLASS="OPTION">--board=jmr3904</TT></P></BLOCKQUOTE></DIV><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>Note: </B>If your chosen architecture does not have simulator support,then the combinations above that refer to the simulator do not apply.Similarly, if your chosen platform does not have RedBootROM support, the combinations listed above that use RedBoot do not apply.</P></BLOCKQUOTE></DIV><P>The debugging environment for most developers will be eithera hardware board or the simulator, in which case they will be ableto select a single HAL configuration.</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="programming-with-ecos.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-user-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="using-configtool-windows-linux.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Programming With <SPANCLASS="PRODUCTNAME">eCos</SPAN></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="user-guide-programming.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Configuration Tool on Windows and Linux Quick Start</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -