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

📄 loading_dxes_via_the_serial_port.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="clear"><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#loading_files_via_the_serial_port" class="toc">Loading Files via the Serial Port</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#c-kermit" class="toc">C-Kermit</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#hyper_terminal" class="toc">Hyper Terminal</a></span></div></li></ul></li></ul></li></ul></div></div><h2><a name="loading_files_via_the_serial_port" id="loading_files_via_the_serial_port">Loading Files via the Serial Port</a></h2><div class="level2"><p>When a network load is not possible a memory image can be loaded via the serial port.  For this type of file transfer the Kermit protocol is used.  There are several terminal programs available which implement the Kermit protocol.  Instructions on transferring a file with C-Kermit for Linux and HyperTerminal for Windows are given below.</p></div><!-- SECTION [1-384] --><h3><a name="c-kermit" id="c-kermit">C-Kermit</a></h3><div class="level3"><p>A common Linux program which implements the Kermit protocol is C-Kermit.  Instructions on using this program with U-Boot are given in this section.  You may have to install the C-Kermit program if it is not already installed on your system.</p><p>  </p><p>First, connect the target&rsquo;s serial port to the host computer&rsquo;s serial port.  Now enter the command:</p><pre class="code">bash$ kermit</pre><p>After C-Kermit has loaded you need to set some variables to establish communication.  To set the necessary variables type the following commands:</p><pre class="code">Linux Kermit&gt; set line /dev/ttyS0(assumes target is connected to ttyS0) Linux Kermit&gt; set speed 57600Linux Kermit&gt; set carrier-watch offLinux Kermit&gt; set handshake noneLinux Kermit&gt; set flow-control noneLinux Kermit&gt; set stop-bits 1Linux Kermit&gt; robust</pre><p>After these settings have been established, connect to the target by typing the command:</p><pre class="code">Linux Kermit&gt; connect</pre><p>Now turn on the board so you see the U-Boot welcome screen.  Stop the board from auto booting by hitting any key.  Now from the U-Boot prompt run the command:</p><pre class="code">BOOT&gt; loadb</pre><p>This command connects the kermit shell running on the host computer to U-Boot.  Press  <em> &lsquo;Ctl&rsquo;</em><em>, &lsquo;\&rsquo;, </em>and<em> &lsquo;c&rsquo; </em>at the same time to return to the kermit shell prompt.  At the kermit prompt upload the image to the board by typing:</p><pre class="code">Linux Kermit&gt; send &lt;memory image filename&gt;	</pre><p>Text will appear giving you information about the progress of the upload.</p><p>  </p><p>After the upload has finished switch back to the U-Boot command line by issuing the following command:</p><pre class="code">Linux Kermit&gt; connect</pre><p>Now load the image by using the bootelf command:</p><pre class="code">BOOT&gt; bootelf 0x1000000</pre><p>The uClinux kernel should start now start to load on the target.</p></div><!-- SECTION [385-2405] --><h3><a name="hyper_terminal" id="hyper_terminal">Hyper Terminal</a></h3><div class="level3"><p>Besides establishing serial communication with U-Boot, HyperTerminal may also be used to transfer a file using the Kermit protocol.  HyperTerminal must first be setup to communicate with U-Boot.  For information on how to do this see <a href="terminal_programs.html#hyperterminal_windows_client" class="wikilink1" title="terminal_programs.html">HyperTerminal</a> under the Terminal Programs section.  Once HyperTerminal is setup to communicate with U-Boot, start a session with U-Boot.  When the U鈥態oot welcome screen is displayed stop the board from auto booting by hitting any key.  Now from the U鈥態oot prompt run the command:</p><pre class="code">BOOT&gt; loadb</pre><p>U鈥態oot is now waiting for a Kermit connection to be made.  Under the <strong>Transfer</strong> menu in HyperTerminal select <strong>Send File</strong>.  The Send File dialog should now appear:</p><p><a href="media/serialport1.png" class="media" target="_blank" title="serialport1.png"><img src="media/serialport1.png" class="media" alt="" /></a></p><p>In the <strong>Filename</strong> field select the file to load onto the target.</p><p>In the <strong>Protocol</strong> field select <strong>Kermit</strong>.</p><p>Click <strong>Send</strong>.</p><p>A dialog showing you the progress of the transfer should now be displayed:</p><p><a href="media/serialport2.png" class="media" target="_blank" title="serialport2.png"><img src="media/serialport2.png" class="media" alt="" /></a></p><p>  </p><p>Once the transfer is complete you should be returned to the main HyperTerminal window.  Now uClinux can be loaded by entering the following U-Boot command:</p><pre class="code">BOOT&gt; bootelf 0x1000000</pre><p>The uClinux kernel should now start to load on the target. </p></div><!-- SECTION [2406-] --></body></html>

⌨️ 快捷键说明

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