📄 x-ix865.html
字号:
<td colspan=1 rowspan=1><p class="BodyLeft"><a name="89151"> </a>removable flash media, such as a Flash PC Card </p></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="89080"> </a>If your <b class="file">vxWorks</b> and <b class="file">vxWorks.sym</b> files are in the root directory of your TFFS (Disk On Chip) drive <b class="file">E:</b> as the file <b class="file">E:\vxWorks</b> and <b class="file">E:\vxWorks.sym</b>, and the mount point for your TFFS drive is <b class="file">/tffs0</b>, then enter the following:</p><dl class="margin"><dd><pre class="Code2"><b><a name="89084"></b><tt class="output">boot device:</tt><b> tffs=0,0 ... </b><tt class="output">file name:</tt><b> /tffs0/vxWorks</a></b></pre></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85632">Mounting a DOS File System</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85633"> </a>You can mount a DOS file system from a diskette, an ATA/IDE disk, a PC card (SRAM or ATA), or a flash file system to your VxWorks target.</p></dl></dl><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="88633">Diskette</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="89289"> </a>Use the routine <b class="routine"><i class="routine">usrFdConfig</i></b><b>( )</b>to mount the file system from a diskette. It takes the following parameters:</p></dl><dl class="margin"><dd><div class="Item"><a name="86964"> </a><i class="textVariable">drive number</i> </div><dl class="margin"><dd><div class="Indent"><a name="86968"> </a>the drive that contains the diskette: MS-DOS drive <b class="file">A:</b> is 0; drive <b class="file">B:</b> is 1.</div><br></dl><dd><div class="Item"><a name="86965"> </a><i class="textVariable">diskette type</i> </div><dl class="margin"><dd><div class="Indent"><a name="85639"> </a>0 (3.5" 2HD) or 1 (5.25" 2HD).</div><br></dl><dd><div class="Item"><a name="85640"> </a><i class="textVariable">mount point</i> </div><dl class="margin"><dd><div class="Indent"><a name="85641"> </a>from where on the file system to mount, for example, <b class="file">/fd0/</b>.</div><br></dl></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/caution.gif"></td><td><hr><div class="CalloutCell"><a name="87774"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION: </font></b></a>Because the boot program uses <b class="routine"><i class="routine">usrFdConfig</i></b><b>( )</b> for floppy diskettes, and because <b class="routine"><i class="routine">usrFdConfig</i></b><b>( )</b> does not provide the <b class="symbol_UC">DOS_VOL_CONFIG</b> structure required to use <b class="routine"><i class="routine">dosFsVolUnmount</i></b><b>( )</b>, you must instead use <b class="routine"><i class="routine">ioctl</i></b><b>( )</b> with <b class="symbol_UC">FIOUNMOUNT</b> before removing the floppy diskette.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="85643">ATA/IDE Hard Drive</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="89290"> </a>Use the routine <b class="routine"><i class="routine">usrAtaConfig</i></b><b>( )</b>to mount the file system from an ATA/IDE disk. It takes the following parameters:</p></dl><dl class="margin"><dd><div class="Item"><a name="85644"> </a><i class="term">controller number</i><i class="textVariable"> </i></div><dl class="margin"><dd><div class="Indent"><a name="85645"> </a>the controller: a controller described in the first entry of the <b class="symbol_lc">ataResources[]</b> table is 0; a controller described in the second entry is 1. In the default configuration, the local IDE disk is 0; the PCMCIA ATA drive is 1.</div><br></dl><dd><div class="Item"><a name="85646"> </a><i class="textVariable">drive number</i> </div><dl class="margin"><dd><div class="Indent"><a name="85647"> </a>the drive: the first drive of the controller is 0; the second drive of the controller is 1. In the default configuration, MS-DOS drive <b class="file">C:</b> is 0; drive <b class="file">D:</b> is 1.</div><br></dl><dd><div class="Item"><a name="85648"> </a><i class="textVariable">mount point</i> </div><dl class="margin"><dd><div class="Indent"><a name="85649"> </a>from where on the file system to mount, for example, <b class="file">/ata0/</b>.</div><br></dl></dl><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="85651">PCMCIA Card</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="89291"> </a>Use <b class="routine"><i class="routine">pccardMount</i></b><b>( )</b> to mount the file system from a PC card (SRAM or ATA). This routine differs from <b class="routine"><i class="routine">usrPcmciaConfig</i></b><b>( )</b> in that <b class="routine"><i class="routine">pccardMount</i></b><b>( )</b> uses the default device. A default device is created by the enabler routine when the PC card is initialized. The default device is removed automatically when the PC card is removed. <b class="routine"><i class="routine">pccardMount</i></b><b>( )</b> takes the following parameters:</p></dl><dl class="margin"><dd><div class="Item"><a name="85652"> </a><i class="textVariable">socket number</i> </div><dl class="margin"><dd><div class="Indent"><a name="85653"> </a>the socket that contains the PC card; the first socket is 0.</div><br></dl><dd><div class="Item"><a name="85654"> </a><i class="textVariable">mount point</i> </div><dl class="margin"><dd><div class="Indent"><a name="85655"> </a>from where on the file system to mount, for example, /<b class="file">pc0</b>/.</div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="85657"> </a>Use <b class="routine"><i class="routine">pccardMkfs</i></b><b>( )</b> to initialize a PC card and mount the file system from a PC card (SRAM or ATA). It takes the following parameters:</p></dl><dl class="margin"><dd><div class="Item"><a name="85658"> </a><i class="textVariable">socket number</i> </div><dl class="margin"><dd><div class="Indent"><a name="85659"> </a>the socket that contains the PC card; the first socket is 0.</div><br></dl><dd><div class="Item"><a name="85660"> </a><i class="textVariable">mount point</i> </div><dl class="margin"><dd><div class="Indent"><a name="85661"> </a>from where on the file system to mount, for example, /<b class="file">pc0</b>/.</div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="85662"> </a>The <b class="routine"><i class="routine">pccardMount</i></b><b>( )</b> and <b class="routine"><i class="routine">pccardMkfs</i></b><b>( )</b> routines are provided in source form in <b class="library">src/drv/pcmcia/pccardLib.c</b>. </p></dl><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="88691">TFFS Drive</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="89292"> </a>Use the routine <b class="routine"><i class="routine">usrTffsConfig</i></b><b>( )</b> to mount the file system from an TFFS drive. It takes the following parameters:</p></dl><dl class="margin"><dd><div class="Item"><a name="89170"> </a><i class="textVariable">drive number</i> </div><dl class="margin"><dd><div class="Indent"><a name="89171"> </a>the drive number in the range of 0 to (<b class="symbol_lc">noOfDrives</b> - 1). The global variable <b class="symbol_lc">noOfDrives</b> holds a number of registered drives that is initialized in <b class="routine"><i class="routine">sysTffsInit</i></b><b>( )</b> in <b class="library">tffsDrv</b>.</div><br></dl><dd><div class="Item"><a name="89175"> </a><i class="textVariable">removable bit</i> </div><dl class="margin"><dd><div class="Indent"><a name="89176"> </a>the removable bit of the drive is 0 for non-removable flash media and 1 for removable flash media.</div><br></dl><dd><div class="Item"><a name="89179"> </a><i class="textVariable">mount point</i> </div><dl class="margin"><dd><div class="Indent"><a name="89180"> </a>from where on the file system to mount, for example, <b class="file">/tffs0/</b>. </div><br></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85666"><b class="library"></b>DMA Buffer Alignment and <b class="library">cacheLib</b> </a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85667"> </a>If you write your own device drivers that use direct memory access into buffers obtained from <b class="file">cacheLib</b>, the buffer must be aligned on a 64KB boundary.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85668">Support for Third-Party BSPs</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85671"> </a>To support third party pc386 and pc486 BSPs, the global variable <b class="symbol_lc"></b><b class="keyword">sysCodeSelector</b> and the routines <b class="routine"><i class="routine">sysIntVecSetEnt</i></b><b>( )</b> and<b class="routine"><i class="routine"></i></b> <b class="routine"><i class="routine">sysIntVecSetExit</i></b><b>( )</b> are defined in <b class="library">sysLib.c</b>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85675">VxWorks Images</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85680"> </a>The executable target <b class="file">bootrom_uncmp</b> uses lower memory (0x0 - 0xa0000), while <b class="file">vxWorks</b> and <b class="file">vxWorks.st</b> use upper memory (0x100000 - <i class="textVariable">pcMemSize</i>). A minimum of 1MB of memory in upper memory is required for <b class="file">vxWorks</b> and <b class="file">vxWorks.st</b>.</p><dd><p class="Body"><a name="85681"> </a>The VxWorks makefile targets listed below are supported in these BSPs. They should be placed on a bootable diskette by <b class="command">mkboot</b> (a DOS utility) or by <b class="routine"><i class="routine">mkbootFd</i></b><b>( )</b> or <b class="routine"><i class="routine">mkbootAta</i></b><b>( )</b> or <b class="routine"><i class="routine">mkbootTffs</i></b><b>( )</b> (VxWorks utilities). The makefile target <b class="file">vxWorks_rom</b> should be downloaded by the <b class="file">bootrom_high</b> bootROM image; for information on all VxWorks makefile targets, see <i class="title"><a href="c-config6.html#86079">8.6.2 Executing VxWorks from ROM</i><i class="title"></a></i>:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85692"> </a><b class="file">vxWorks_rom</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85694"> </a>bootable VxWorks: </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85696"> </a>upper memory</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85699"> </a><b class="file">vxWorks_rom_low</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85701"> </a>bootable VxWorks: </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85703"> </a>lower memory</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85706"> </a><b class="file">vxWorks.st_rom</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="85708"> </a>bootable VxWorks.st (compressed): </p></td><td colspan=1 rowspan=1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -