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

📄 c-config7.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Configuration and Build   </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-config.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-config6.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-config8.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="86335">8.7  &nbsp;&nbsp;Building a VxWorks System Image</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86337"> </a>You can redefine the VxWorks configuration in two ways: interactively, as described in this manual in the <i class="title">Tornado User's Guide: Projects</i>, or by editing VxWorks configuration files as described in <i class="title"><a href="c-config5.html#85532">8.5&nbsp;Configuring VxWorks</i><i class="title"></a>.</i> In either case, after you alter the configuration, VxWorks must be rebuilt to incorporate the changes. This includes recompiling certain modules and re-linking the system image. This section explains the procedures for rebuilding the VxWorks system image using manual techniques.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="86341">8.7.1  &nbsp;&nbsp;Available VxWorks Images</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89857"> </a>There are three types of VxWorks images.</p></dl><dl class="margin"><ul class="BulletSingle" type="disc"><li><a name="89860"> </a>Boot ROM images</li></ul><ul class="BulletSingle" type="disc"><li><a name="89861"> </a>Downloaded VxWorks images</li></ul><ul class="BulletSingle" type="disc"><li><a name="89862"> </a>ROMmed VxWorks images</li></ul></dl><dl class="margin"><dd><p class="Body"><a name="89864"> </a>Boot ROM images come in 3 flavors: compressed, uncompressed, and ROM-resident.<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89931"> </a><b class="symbol_lc">bootrom</b>      </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89933"> </a> normal compressed boot ROM</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89935"> </a><b class="symbol_lc">bootrom_uncmp</b>   </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89937"> </a> uncompressed boot ROM</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89939"> </a><b class="symbol_lc">bootrom_res</b>   </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89941"> </a> ROM-resident boot ROM</p></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="90063"> </a>Downloaded VxWorks images come in two basic varieties, Tornado and standalone. (Here "Tornado" is a Vxworks image that uses the host-based tools and symbol table.)<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89969"> </a><b class="symbol_lc">vxWorks</b>      </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89971"> </a> basic Tornado</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89973"> </a> uses host shell and symbol table</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89975"> </a><b class="symbol_lc">vxWorks.st</b>     </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89977"> </a> standalone image</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="89979"> </a> has target shell and symbol table</p></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="89878"> </a>ROMmed VxWorks images:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90039"> </a><b class="symbol_lc">vxWorks_rom</b>    </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90041"> </a> Tornado in ROM (uncompressed)</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90043"> </a><b class="symbol_lc">vxWorks.st_rom</b>    </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90045"> </a> <b class="symbol_lc">vxWorks.st</b> in ROM (compressed)</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90047"> </a><b class="symbol_lc">vxWorks.res_rom</b>     </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90049"> </a> <b class="symbol_lc">vxWorks.st</b> ROM-resident</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90051"> </a><b class="symbol_lc">vxWorks.res_rom_nosym</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="90053"> </a> Tornado, ROM-resident </p></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="89886"> </a>Note that there are variations in available targets for the x86 architecture. See <a href="x-ix86.html#84368"><i class="title">D.&nbsp;Intel x86</i></a> for details.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="89856">8.7.2  &nbsp;&nbsp;Rebuilding VxWorks with <b class="command">make</b></a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86343"> </a>VxWorks uses the GNU <b class="command">make</b> facility to recompile and relink modules. A file called <b class="file">Makefile</b> in each VxWorks target directory contains the directives for rebuilding VxWorks for that target. See <i class="title">GNU ToolKit User's Guide: GNU Make</i> for a detailed description of GNU <b class="command">make</b> and of how to write makefiles.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="86345">Making on UNIX Hosts</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86347"> </a>With a UNIX host, you can use either the GNU version of <b class="command">make</b> included with Tornado or the version included with your UNIX system. If you choose that version, see your host system's reference for <b class="command">make</b> for information about the version of <b class="command">make</b> supplied in that system.</p><dd><p class="Body"><a name="86348"> </a>To rebuild VxWorks on a UNIX host, first change to the VxWorks target directory for the desired target, and invoke <b class="command">make</b> as follows:</p><dl class="margin"><dd><pre class="Code2"><b><a name="86349"></b><tt class="output">% </tt><b>cd ${WIND_BASE}/target/config/<i class="textVariable">bspname </i></b><tt class="output">% </tt><b>make</a></b></pre></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="86350">Making on Windows Hosts</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86351"> </a>If you choose to use manual techniques on Windows hosts, you must use the command line for building individual application modules. You can use either the command line or the project facility in Tornado 1.0.1 compatibility mode to rebuild BSPs. For information on how to implement Tornado 1.0.1 compatibility mode, see the <i class="title">Tornado User's Guide: Customization</i>.</p></dl></dl><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="86352">Rebuilding BSP Components</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="86354"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Project</font></b> menu includes entries for rebuilding every BSP installed on your system as a part of Tornado. These entries all have the form <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Make</font></b> <i class="textVariable">bspname</i>. <a href="c-config7.html#86362">Figure&nbsp;8-2</a> illustrates the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Project</font></b> menu in a Tornado system that has a family of i386/i486 BSPs installed.<div class="frame"><h4 class="EntityTitle"><a name="86362"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 8-2:&nbsp;&nbsp;Rebuilding VxWorks from the Project Menu</font></a></h4><dl class="margin"><div class="Anchor"><a name="86367"> </a><img class="figure" border="0" src="images/c-configa1.gif"></div></dl></div></p><dd><p class="Body"><a name="86369"> </a>When you select any <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Make</font></b> <i class="textVariable">bspname</i> menu entry, the <b class="command">make</b> targets available are grouped into the following categories (also illustrated in <a href="c-config7.html#86362">Figure&nbsp;8-2</a>):</p></dl><dl class="margin"><dd><div class="Item"><a name="86373"> </a>Common Targets</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="86375"> </a>The BSP <b class="command">make</b> targets needed most often. Two of them also appear in the next two categories: <b class="file">vxWorks</b>, the VxWorks system image, and <b class="file">bootrom.hex</b>, the simplest form of the boot-program object code. </div><br><dd><div class="Indent2"><a name="86376"> </a>The standard make target <b class="command">clean</b> (which erases all objects that can be built by the BSP makefile) is also in this category.</div><br></dl></dl><dd><div class="Item"><a name="86377"> </a>VxWorks Targets</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="86378"> </a>Alternate forms of the VxWorks run-time image, as described in <a href="c-config7.html#86335"><i class="title">8.7&nbsp;Building a VxWorks System Image</i></a> and <a href="c-config9.html#86670"><i class="title">8.9&nbsp;Creating Bootable Applications</i></a>.</div><br></dl>

⌨️ 快捷键说明

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