📄 dlether.htm
字号:
<title>Downloading Files via Ethernet</title><h1 align=center>Downloading Files via Ethernet</h1><!--INDEX "Downloading Files using Ethernet" ping --><!--INDEX arp ipaddr etheraddr tftp tftp-put /etc/hosts WINDOWS\HOSTS --><!--INDEX "MAC address" -->Downloading via Ethernet requires your target board to be equipped withan Ethernet controller and your <a href="mondef.htm">Monitor</a> tocontain Ethernet support.To download via Ethernet, perform the following steps:<p></dl><h2>UNIX Hosts</h2><dl><dd><ol><li>Choose an IP address and a host name for your target board and enter them in your UNIX host's /etc/hosts file. For example,<p><pre> 71.0.0.208 umeteor # IP address for LSI uMeteor board</pre><p><li> Use the <a href="c_set.htm">set</a> command to set the IPaddress of your target board:<p><pre> PMON> set ipaddr 71.0.0.208</pre><p>Note: It is no longer necessary to manually set the arp table, becausethe <a href="mondef.htm">Monitor</a> now responds to arp requests from thehost.<p><li> If you have more than one board on the network, the Ethernethardware (MAC) address can be changed using the set command. For example,<p><pre> PMON> set etheraddr aa:bb:cc:00:00:01</pre><p><li>Now set the environment variable hostport to ethernet:<p><pre> PMON> set hostport ethernet</pre><p><li> At this point you might want to use the set nvram command to make these new settings permanent:<p><pre> PMON> set nvram</pre><p><li> To download <a href="frec.htm">Fast-Format</a> or <ahref="srec.htm">S-record</a> files, enter the following commands:<p><dl><dd><table><tr><td width=300 nowrap valign=top><tt>PMON> <a href="c_load.htm">load</a></tt></td><td>Prepare for download.</td></tr><tr><td nowrap valign=top><tt>% tftp umeteor</tt></td><td>Invoke tftp for umeteor system.</td></tr><tr><td nowrap valign=top><tt>tftp> put game.rec</tt></td><td>Send file game.rec to umeteor.</td></tr><tr><td nowrap valign=top><tt>tftp> quit</tt></td><td>Exit to shell.</td></tr></table></dl><p>The transfer rate is approximately 134 Kbytes/second. <p><li> To download binary files, enter the following commands:<p><dl><dd><table><tr><td width=300 nowrap valign=top><tt>PMON> <a href="c_load.htm">load</a> -B</tt></td><td>Use binary format for tftp transfer.</td></tr><tr><td nowrap valign=top><tt>% tftp umeteor</tt></td><td>Invoke tftp for umeteor system.</td></tr><tr><td nowrap valign=top><tt>tftp> mode binary</tt></td><td>Put tftp in binary mode to prevent it from translating "\n" to "\r\n".</td></tr><tr><td nowrap valign=top><tt>tftp> put foobar 80040000</tt></td><td>Send foobar to umeteor starting at address.</td></tr><tr><td nowrap valign=top><tt>tftp> quit</tt></td><td>Exit to shell.</td></tr></table></dl><p>The transfer rate for binary files is approximately l50 Kbytes/second.<p>Because the <a href="mondef.htm">Monitor</a> uses only the UDPprotocol, you must use tftp's put command for downloading; the tftp getcommand is not supported. Note that we used PMON for this example, butthe procedure is exactly the same for the SerialICE Monitor.<p></ol></dl><h2>Windows95/NT Hosts</h2><dl><dd><ol><li>Install the Microsoft TCP/IP package or equivalent.<p><li> Choose an IP address and a host name for your host and your targetboard and enter them into the file \WINDOWS\HOSTS on your host. Forexample, if you host was named "ctx1" and your target "umeteor", youmight enter the following information. <p><pre> 71.0.0.208 umeteor 71.0.0.214 ctx1 loghost</pre>The keyword 'loghost' must be used to indicate which line contains thename of your host. If you are not using Microsoft's TCP/IPpackage, please refer to the vendor's documentation for the location ofthe HOSTS file. In that case you might need to modify the <ahref="perl.htm">Perl</a> script <ahref="tools/tftp-put.htm">tftp-put</a>.<p><li> Use the <a href="c_set.htm">set</a> command to set the IPaddress of your target board:<p><pre> PMON> <a href="c_set.htm">set</a> ipaddr 71.0.0.208</pre><p><li> If you have more than one board on the network, the Ethernethardware (MAC) address can be changed using the set command. For example,<p><pre> PMON> set etheraddr aa:bb:cc:00:00:01</pre><li>Now set the environment variable hostport to ethernet:<p><pre> PMON> set hostport ethernet</pre><li> At this point you might want to use the set nvram command to make these new settings permanent:<p><pre> PMON> set nvram</pre><li> To download <a href="frec.htm">Fast-Format</a> or <ahref="srec.htm">S-record</a> files, enter the following commands:<p><dl><dd><table><tr><td width=300 nowrap valign=top><tt>PMON> <a href="c_load.htm">load</a></tt></td><td>Prepare for download.</td></tr><tr><td nowrap valign=top><tt>C><a href="perl.htm">perl</a> <ahref="tools/tftp-put.htm">tftp-put</a> umeteor game.rec</tt></td><td>Send file game.rec to umeteor.</td></tr></table></dl><p>The transfer rate is approximately 134 Kbytes/second. <p></ul></dl><h2>Notes</h2><dl><dd><ul><li>If you already have a permanant arp entry for your board, you neednot set the ipaddr variable. This is only used when responding to arprequests from the host.<p><li>Once you have typed 'load', the <a href="mondef.htm">Monitor</a>will respond to <a href="pingdef.htm">ping</a> requests from the host.However, do not issue ping requests while the tftp transfer isrunning. The Monitor will not respond to ping requests once controlhas returned to the PMON prompt. <p></ul></ol></dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -