⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coarse-grained-configuration.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 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>Coarse-grained Configuration</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="Manual Configuration"HREF="manual-configuration.html"><LINKREL="PREVIOUS"TITLE="Packages"HREF="ecos-packages.html"><LINKREL="NEXT"TITLE="Fine-grained Configuration"HREF="fine-grained-configuration.html"></HEAD><BODYCLASS="SECT1"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="ecos-packages.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 28. Manual Configuration</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="fine-grained-configuration.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="COARSE-GRAINED-CONFIGURATION">Coarse-grained Configuration</H1><P>Coarse-grained configuration of	  an <SPANCLASS="PRODUCTNAME">eCos</SPAN> system means making configuration changes using the	  <BCLASS="COMMAND">ecosconfig</B> tool. These changes	  include: </P><P></P><OLTYPE="1"><LI><P>switching to different target hardware</P></LI><LI><P>switching to a different template</P></LI><LI><P>adding or removing a package</P></LI><LI><P>changing the version of a package</P></LI></OL><P>Whenever <BCLASS="COMMAND">ecosconfig</B> generates or	  updates an <SPANCLASS="PRODUCTNAME">eCos</SPAN> configuration, it generates a configuration	  save file.</P><P>Suppose that the configuration was first created using	  the following command line: </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig new stdeval1</PRE></TD></TR></TABLE><P>To change the target hardware to the Cogent CMA28x	  PowerPC board, the following command would be needed:	</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig target cma28x</PRE></TD></TR></TABLE><P>To switch to the PowerPC simulator instead: </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig target psim</PRE></TD></TR></TABLE><P>As the hardware changes, hardware-related packages such asthe HAL packages and device drivers will be added to and removedfrom the configuration as appropriate. </P><P>To remove any package from the current configuration, usethe <BCLASS="COMMAND">remove</B> command: </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig remove uitron</PRE></TD></TR></TABLE><P>You can disable multiple packages using multiple arguments,for example: </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig remove uitron libm</PRE></TD></TR></TABLE><P>If this turns out to have been a mistake then you can	  re-enable one or more packages with the	  <BCLASS="COMMAND">add</B> command: </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig add libm</PRE></TD></TR></TABLE><P>Changing the desired version for a package is also	  straightforward:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig version v2_1 kernel</PRE></TD></TR></TABLE><P>It is necessary to regenerate the build tree and header	  files following any changes to the configuration before	  rebuilding <SPANCLASS="PRODUCTNAME">eCos</SPAN>:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ ecosconfig tree</PRE></TD></TR></TABLE></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="ecos-packages.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="fine-grained-configuration.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Packages</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="manual-configuration.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Fine-grained Configuration</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -