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

📄 c-fileaxs4.html

📁 vxworks相关论文
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    File Access Applications     </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="c-fileaxs.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-fileaxs.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-fileaxs3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-rlotln.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="90270">11.4  &nbsp;&nbsp;TFTP</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90272"> </a>The Trivial File Transfer Protocol (TFTP) is implemented on top of the Internet User Datagram Protocol (UDP).  VxWorks provides both a TFTP client and a TFTP server.  The TFTP client is useful at boot time, when you can use it to download a VxWorks image from the boot host. The TFTP server is useful if you want to boot an X-Terminal from VxWorks. It is also useful if you want to boot another VxWorks system from a local disk. </p><dd><p class="Body"><a name="90274"> </a>Unlike FTP and RSH, TFTP requires no authentication; that is, the remote system does not require an account or password.  The TFTP server allows only publicly readable files to be accessed.  Files can be written only if they already exist and are publicly writable.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="90275">11.4.1  &nbsp;&nbsp;Host TFTP Server</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90276"> </a>Typically, the host-resident Internet daemon starts the TFTP server. For added security, some hosts (for example, Sun hosts) default to starting the TFTP server with the secure (<b class="command">-s</b>) option enabled.  If <b class="command">-s</b> is specified, the server restricts host access by rooting all TFTP requests into the directory specified (for example, <b class="file">/tftpboot</b>). </p><dd><p class="Body"><a name="90278"> </a>For example, if the secure option was set with<i class="i"> -</i><b class="command">s /tftpboot</b>, a TFTP request for the file <b class="file">/vxBoot/vxWorks</b> is satisfied by the file <b class="file">/tftpboot/vxBoot/vxWorks</b> rather than the expected file<b class="file"> /vxBoot/vxWorks</b>. </p><dd><p class="Body"><a name="90279"> </a>To disable the secure option on the TFTP server, edit<b class="file"> /etc/inetd.conf</b> and remove the <b class="command">-s</b> option from the <b class="command">tftpd</b> entry. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="90280">11.4.2  &nbsp;&nbsp;VxWorks<i class="i"> </i>TFTP Server</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90283"> </a>The TFTP server daemon is initialized by default when VxWorks is appropriately configured.  The relevant configuration macro is  <b class="symbol_UC">INCLUDE_TFTP_SERVER</b>.  See the reference entry for <b class="library">tftpdLib</b>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="90284">11.4.3  &nbsp;&nbsp;VxWorks TFTP Client</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90287"> </a>Include the VxWorks TFTP client side by reconfiguring VxWorks.  The relevant configuration macro is <b class="symbol_UC">INCLUDE_TFTP_CLIENT</b>.  To boot using TFTP, specify 0x80 in the boot flags parameters.  To transfer files from the TFTP host and the VxWorks client, two high-level interfaces are provided, <b class="routine"><i class="routine">tftpXfer</i></b><b>(</b>&nbsp;<b>)</b> and <b class="routine"><i class="routine">tftpCopy</i></b><b>(</b>&nbsp;<b>)</b>.  See the reference entry for <b class="library">tftpLib</b>.</p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-fileaxs.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-fileaxs.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-fileaxs3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-rlotln.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

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