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

📄 tcpip-openbsd-building-the-network-stack.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>Building the Network Stack</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="OpenBSD TCP/IP stack port"HREF="tcpip-openbsd-stack-port.html"><LINKREL="PREVIOUS"TITLE="OpenBSD TCP/IP stack port"HREF="tcpip-openbsd-stack-port.html"><LINKREL="NEXT"TITLE="APIs"HREF="tcpip-openbsd-tcpip-apis.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 Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="tcpip-openbsd-stack-port.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 43. OpenBSD TCP/IP stack port</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="tcpip-openbsd-tcpip-apis.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="TCPIP-OPENBSD-BUILDING-THE-NETWORK-STACK">Building the Network Stack</H1><P>Using the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&gt;Packages</I></SPAN> dialog,add the packages &#8220;Networking&#8221;,&#8220;OpenBSD TCP/IP Stack&#8221;and &#8220;Common Ethernet Support&#8221;to your configuration.  Their package namesare CYGPKG_NET, CYGPKG_NET_OPENBSD_STACK and CYGPKG_NET_ETH_DRIVERSrespectively.</P><P>A short-cut way to do this is byusing the &#8220;net&#8221; <SPANCLASS="emphasis"><ICLASS="EMPHASIS">template</I></SPAN>if it is available for your platform.</P><P>The platform-specific ethernet device driver for your platformwill be added as part of the target selection (in the<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&gt;Templates</I></SPAN> &#8220;Hardware&#8221; item),along with the PCI I/O subsystem (if relevent) and the appropriate serial device driver.</P><P>For example, the PowerPC MBX target selection adds the packagePKG_NET_QUICC_ETH_DRIVERS,and the Cirrus Logic EDB7xxx target selection adds the packageCYGPKG_NET_EDB7XXX_ETH_DRIVERS.After this, eCos and its tests can be built exactly as usual.</P><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>Note: </B>By default, most of the network tests are not built.  Thisis because some of them require manual intervention, i.e. they areto be run &#8220;by hand&#8221;, and are not suitable forautomated testing.  To build the full set of network tests, setthe configuration option CYGPKG_NET_BUILD_TESTS &#8220;Buildnetworking tests (demo programs)&#8221; within &#8220;Networkingsupport build options&#8221;.</P></BLOCKQUOTE></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="tcpip-openbsd-stack-port.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="tcpip-openbsd-tcpip-apis.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">OpenBSD TCP/IP stack port</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="tcpip-openbsd-stack-port.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">APIs</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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