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

📄 gettingstarted3.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>    Getting Started    </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><a href="gettingStarted.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="gettingStarted2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="gettingStarted4.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="89656">2.3  &nbsp;&nbsp;BSP-Specific Examples of Using TrueFFS </a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85780"> </a>The following subsections give examples of how to set up TrueFFS for Tornado on each of the non-x86 BSPs that now ship with a WRS-supplied <b class="file">sysTffs.c</b>.<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup></p><dd><p class="Body"><a name="95208"> </a>The examples given are meant to be illustrative, but they do not show all the configurations possible for each BSP. For example, only the ads860, the iq960rp, and the pid7t examples use a TrueFFS format offset (to leave room on the medium for a boot image). However, all BSPs support the use of this formatting feature. </p></dl></dl><dl class="margin"><dd><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><a name="96164"><br></a><img border="0" alt="*" src="icons/note.gif">&nbsp;&nbsp;&nbsp;</td><td><div class="Note"><hr><b class="symbol_UC">NOTE: </b>The instructions below do not modify the define statements in <b class="file">sysTffs.c</b> that are used to determine which MTDs are included in TrueFFS. As a result, all MTDs are included. In your deployed system, you might want to trim the list of included MTDs. For more information on how to do this, see <a href="gettingStarted2.html#89447"><i class="title">Choosing MTDs</i></a>. <hr></div></td></tr></table></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="96168">2.3.1  &nbsp;&nbsp;ads860 with a Board-Resident Flash Array and a PCMCIA Slot </a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90992"> </a>The following instructions show you how to setup two TrueFFS devices for a target using the ads860 BSP. The first flash device, the board-resident flash array, is formatted using <b class="routine"><i class="routine">sysTffsFormat</i></b><b>(&nbsp;)</b>. This leaves room for a boot image. The second device, the flash card in the PCMCIA slot, is dedicated entirely to TrueFFS and so is formatted using <b class="routine"><i class="routine">tffsDevFormat</i></b><b>(&nbsp;)</b>. </p></dl><dl class="margin"><p><ol class="List"><li value="1."><a name="84707"> </a>To <b class="file">config.h</b>, add the lines: </li></ol></p><dl class="margin"><dl class="margin"><dd><pre class="Code3"><b><a name="84708">#define&nbsp;INCLUDE_TFFS #define&nbsp;INCLUDE_SHOW_ROUTINES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;optional&nbsp;*/ #define&nbsp;INCLUDE_DOSFS&nbsp;</a></b></pre></dl></dl><p><ol class="List"><li value="2."><a name="84712"> </a>In <b class="file">config.h</b>, change the value of <b class="symbol_UC">ROM_SIZE</b> from 1MB to 2MB: </li></ol></p><dl class="margin"><dl class="margin"><dd><pre class="Code3"><b><a name="84716">#define&nbsp;ROM_SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00200000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;2M&nbsp;ROM&nbsp;space&nbsp;*/</a></b></pre></dl></dl><p><ol class="List"><li value="3."><a name="84719"> </a>Define the following addresses in <b class="file">ads860.h</b>: </li></ol></p><dl class="margin"><dl class="margin"><dd><pre class="Code3"><b><a name="84720">#define&nbsp;&nbsp;&nbsp;&nbsp;PC_BASE_ADRS_0&nbsp;&nbsp;0x02000000&nbsp; #define&nbsp;&nbsp;&nbsp;&nbsp;PC_SIZE_0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00100000 #define&nbsp;&nbsp;&nbsp;&nbsp;PC_BASE_ADRS_1&nbsp;&nbsp;0x04000000 #define&nbsp;&nbsp;&nbsp;&nbsp;PC_SIZE_1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x02000000</a></b></pre></dl></dl><p><ol class="List"><li value="4."><a name="84725"> </a>In <b class="file">sysLib.c</b>, edit <b class="symbol_lc">sysPhysMemDesc[&nbsp;] </b>to<b class="symbol_lc"> </b>add the following two entries: </li></ol></p><dl class="margin"><dl class="margin"><dd><pre class="Code3"><b><a name="84728">{ (void&nbsp;*)&nbsp;PC_BASE_ADRS_0, (void&nbsp;*)&nbsp;PC_BASE_ADRS_0, PC_SIZE_0,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;1&nbsp;m&nbsp;-&nbsp;PCMCIA&nbsp;window&nbsp;0&nbsp;*/ VM_STATE_MASK_VALID&nbsp;|&nbsp;VM_STATE_MASK_WRITABLE|VM_STATE_MASK_CACHEABLE, VM_STATE_VALID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;VM_STATE_WRITABLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|VM_STATE_CACHEABLE_NOT } </a></b></pre></dl><dl class="margin"><dd><div class="Indent2"><a name="96104"> </a>and</div><br></dl><dl class="margin"><dd><pre class="Code3"><b><a name="96103">{ (void&nbsp;*)&nbsp;PC_BASE_ADRS_1, (void&nbsp;*)&nbsp;PC_BASE_ADRS_1, PC_SIZE_1,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;32&nbsp;m&nbsp;-&nbsp;PCMCIA&nbsp;window&nbsp;1&nbsp;*/ VM_STATE_MASK_VALID&nbsp;|&nbsp;VM_STATE_MASK_WRITABLE|VM_STATE_MASK_CACHEABLE, VM_STATE_VALID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;VM_STATE_WRITABLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|VM_STATE_CACHEABLE_NOT }</a></b></pre></dl></dl><p><ol class="List"><li value="5."><a name="86831"> </a>Change the <b class="file">Makefile</b> as specified in <a href="gettingStarted2.html#85369"><i class="title">Changing the Makefile</i></a>. </li></ol></p><p><ol class="List"><li value="6."><a name="84744"> </a>Remake VxWorks. </li></ol></p><p><ol class="List"><li value="7."><a name="84746"> </a>Reboot the target. </li></ol></p><p><ol class="List"><li value="8."><a name="86713"> </a>Insert a flash card in the PCMCIA socket. </li></ol></p><p><ol class="List"><li value="9."><a name="84748"> </a>At the target shell prompt, enter the following commands: </li></ol></p><dl class="margin"><dd><pre class="Code2"><b><a name="90872"></b><tt class="output">-&gt;&nbsp;</tt><b>sysTffsFormat </b><tt class="output">-&gt;&nbsp;</tt><b>tffsDevFormat&nbsp;1,0 </b><tt class="output">-&gt;&nbsp;</tt><b>usrTffsConfig&nbsp;0,0,"/RFA/" </b><tt class="output">-&gt;&nbsp;</tt><b>usrTffsConfig&nbsp;1,1,"/PCMCIA1/"</a></b></pre></dl><dl class="margin"><dd><div class="Indent"><a name="91955"> </a>RFA stands for "resident flash array."</div><br></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="90880">2.3.2  &nbsp;&nbsp;hkbaja47 a Board-Resident Flash Array</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90921"> </a>The following instructions show you how to setup and instantiate a single TrueFFS device for a target using the hkbaja47 BSP. This flash device, a board-resident flash array, is dedicated entirely to TrueFFS and so is formatted using <b class="routine"><i class="routine">tffsDevFormat</i></b><b>(&nbsp;)</b>. </p></dl><dl class="margin"><p><ol class="List"><li value="1."><a name="90385"> </a>To <b class="file">config.h</b>, add the lines: </li></ol></p><dl class="margin"><dl class="margin"><dd><pre class="Code3"><b><a name="90386">#define INCLUDE_TFFS #define INCLUDE_SHOW_ROUTINES       /* optional */ #define INCLUDE_DOSFS</a></b></pre></dl></dl><p><ol class="List"><li value="2."><a name="90390"> </a>Change the <b class="file">Makefile</b> as specified in <a href="gettingStarted2.html#85369"><i class="title">Changing the Makefile</i></a>. </li></ol></p><p><ol class="List"><li value="3."><a name="90391"> </a>Remake VxWorks. </li></ol></p><p><ol class="List"><li value="4."><a name="90392"> </a>Reboot the target. </li></ol></p><p><ol class="List"><li value="5."><a name="90393"> </a>At the target shell prompt, enter the following commands: </li></ol></p><dl class="margin"><dl class="margin"><dd><pre class="Code3"><b><a name="91890"></b><tt class="output">-&gt; </tt><b>tffsDevFormat 0, 0 </b><tt class="output">-&gt; </tt><b>usrTffsConfig 0,0,"/RFA/"</a></b></pre></dl></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="91891">2.3.3  &nbsp;&nbsp;iq960rp with a Board-Resident Flash Array </a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="91892"> </a>The following instructions show you how to setup and instantiate a single TrueFFS device for a target using the iq960rp BSP. This flash device, a board-resident flash array, is formatted using <b class="routine"><i class="routine">sysTffsFormat</i></b><b>(&nbsp;)</b> to leave room for a boot image. </p></dl></dl><dl class="margin"><dd><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40">

⌨️ 快捷键说明

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