c-start5.html

来自「vxworks相关论文」· HTML 代码 · 共 984 行 · 第 1/3 页

HTML
984
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Setup and Startup   </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-start.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-start4.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-start6.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="92648">2.5  &nbsp;&nbsp;Booting VxWorks</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84776"> </a>Once you have configured your host software and target hardware, you are ready to start a terminal emulator and boot VxWorks. </p><dd><p class="Body"><a name="91356"> </a>Select either <b>VxWorks COM1</b> or <b>VxWorks COM2</b> from the same program folder as other Tornado programs, according to whether the serial connection from your target is to COM1 or COM2 of your host PC. (See <a href="c-start3.html#84767"><i class="title">Connecting a Serial Cable for Terminal Emulator</i></a>.)</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="92672"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>If you are using a VxWorks image configured for a network connection (the default), you must have an FTP server running on the host where the VxWorks system image is stored. See <a href="c-start3.html#84612"><i class="title">Initializing the Host Network Software</i></a> for more information.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="89670">2.5.1  &nbsp;&nbsp;Default Boot Process</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89716"> </a>When you boot VxWorks with the default boot program (from ROM, diskette, or other medium), you must use the VxWorks command line to provide the boot program with information that allows it to find the VxWorks image on the host and load it onto the target. The default boot program is designed for a networked target, and needs to have the correct host and target network addresses, the full path and name of the file to be booted, the user name, and so on.<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup></p><dd><p class="Body"><a name="89797"> </a>When you power on the target hardware (and each time you reset it), the target system executes the boot program from ROM; during the boot process, the target uses its serial port to communicate with your terminal or workstation. The boot program first displays a banner page, and then starts a seven-second countdown, visible on the screen as shown in <a href="c-start5.html#95268">Figure&nbsp;2-7</a>. Unless you press any key on the keyboard within that seven-second period, the boot loader will attempt to proceed with a default configuration, and will not be able to boot the target with VxWorks.<div class="frame"><h4 class="EntityTitle"><a name="95268"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 2-7:&nbsp;&nbsp;Boot Program: Communication and Boot Banner Display</font></a></h4><dl class="margin"><div class="Anchor"><a name="95298"> </a><img class="figure" border="0" src="images/c-start11.gif"></div></dl></div> </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="84882">2.5.2  &nbsp;&nbsp;Entering New Boot Parameters</a></i></h4></font><dl class="margin"><dl class="margin"><dd><div class="Item"><a name="95197"> </a><div class="frame"><h4 class="EntityTitle"><a name="84881"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 2-8:&nbsp;&nbsp;Boot Configuration Example</font></a></h4><dl class="margin"><div class="Anchor"><a name="84878"> </a><img class="figure" border="0" src="images/c-start12.gif"></div></dl></div></div></dl><dl class="margin"><dd><p class="Body"><a name="89723"> </a>To interrupt the boot process and provide the correct boot parameters, first power on (or reset) the target; then stop the boot sequence by pressing any key during the seven-second countdown. The boot program displays the VxWorks boot prompt, as follows:</p><dl class="margin"><dd><pre class="Code2"><b><a name="89724"></b><tt class="output">[VxWorks Boot]:</tt><b></a></b></pre></dl><dd><p class="Body"><a name="84886"> </a>To display the current (default) boot parameters, type <b class="command">p</b> at the boot prompt, as follows:</p><dl class="margin"><dd><pre class="Code2"><b><a name="84887"></b><tt class="output">[VxWorks Boot]:</tt><b> p </a></b></pre></dl><dd><p class="Body"><a name="84888"> </a>A display similar to the following appears; the meaning of each of these parameters is described in the next section. This example corresponds to the configuration shown in <a href="c-start5.html#84881">Figure&nbsp;2-8</a>. (The <b class="command">p</b> command does not actually display the lines with blank fields, although this example shows them for completeness.) </p><dl class="margin"><dd><pre class="Code2"><b><a name="84892"></b><tt class="output">boot device&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ln processor number&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0 host name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: mars file name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: c:\tornado\target\config\</tt><b><i class="textVariable">bspname</i></b><tt class="output">\vxWorks inet on ethernet (e)&nbsp;&nbsp;&nbsp;: 90.0.0.50 inet on backplane (b)&nbsp;&nbsp;: host inet (h)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 90.0.0.1 gateway inet (g)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: user (u)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: fred ftp password (pw)(blank=use rsh) :secret flags (f)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0x0 target name (tn)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: phobos startup script (s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: other (o)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </tt><b></a></b></pre></dl><dd><p class="Body"><a name="84894"> </a>To change the boot parameters, type <b class="command">c</b> at the boot prompt, as follows:</p><dl class="margin"><dd><pre class="Code2"><b><a name="84895"></b><tt class="output">[VxWorks Boot]:</tt><b> c </a></b></pre></dl><dd><p class="Body"><a name="84896"> </a>In response, the boot program prompts you for each parameter. If a particular field has the correct value already, press <kbd>ENTER</kbd>. To clear a field, enter a period (&nbsp;<b class="command">.</b>&nbsp;), then press <kbd>ENTER</kbd>. If you want to quit before completing all the parameters, type <kbd>CTRL+D</kbd>.</p><dd><p class="Body"><a name="84897"> </a>Network information <i class="emphasis">must</i> be entered to match your particular system configuration. The Internet addresses must match those in your system's <b class="file">hosts</b> file (or those known to your Domain Name Server), as described in <a href="c-start3.html#84626"><i class="title">Establishing the VxWorks Target Name and IP Address</i></a>. </p><dd><p class="Body"><a name="84901"> </a>If your target has nonvolatile RAM (NVRAM), the boot parameters are stored there and retained even if power is turned off. For each subsequent power-on or system reset, the boot program uses these stored parameters for the automatic boot configuration.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="84903">2.5.3  &nbsp;&nbsp;Boot Program Commands</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84905"> </a>The VxWorks boot program provides a limited set of commands. To see a list of available commands, type the help command (<b class="command">h</b> or <b class="command">?</b>) followed by <kbd>ENTER</kbd>:</p></dl><dl class="margin"><dd><pre class="Code"><b><a name="84906"></b><tt class="output">[VxWorks Boot]:</tt><b> ?</a></b></pre></dl><dl class="margin"><dd><p class="Body"><a name="88439"> </a><a href="c-start5.html#88769">Table&nbsp;2-1</a> describes each of the VxWorks boot commands and their arguments.<p class="table"><h4 class="EntityTitle"><a name="88769"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 2-1:&nbsp;&nbsp;VxWorks Boot Commands</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="88775"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Command</font></b></div></th><td width="10">&nbsp;</td><th rowspan="1" colspan="2"><div class="CellHeading"><b><a name="88777"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b></div></th><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88781"> </a><b class="command">h</b></div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88783"> </a>Help command--print a list of available boot commands.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88787"> </a><b class="command">?</b></div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88789"> </a>Same as <b class="command">h</b>.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88793"> </a><b class="command">@</b></div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88795"> </a>Boot (load and execute the file) using the current boot parameters.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88799"> </a><b class="command">p</b></div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88801"> </a>Print the current boot parameter values.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88805"> </a><b class="command">c</b></div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88807"> </a>Change the boot parameter values.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88811"> </a><b class="command">l</b></div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88813"> </a>Load the file using current boot parameters, but without executing.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88817"> </a><b class="command">g</b> <i class="textVariable">adrs</i></div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88819"> </a>Go to (execute at) hex address <i class="textVariable">adrs</i>.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88823"> </a><b class="command">d</b> <i class="textVariable">adrs</i>[<b class="command">,</b> <i class="textVariable">n</i>]</div></td><td width="10">&nbsp;</td><td colspan=2 rowspan=1><div class="CellBody"><a name="88825"> </a>Display <i class="textVariable">n</i> words of memory starting at hex address <i class="textVariable">adrs</i>. If <i class="textVariable">n</i> is omitted, the default is 64.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="88829"> </a><b class="command">m</b> <i class="textVariable">adrs</i></div>

⌨️ 快捷键说明

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