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

📄 terminal_programs.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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="#terminal_programs" class="toc">Terminal Programs</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#linux_packages" class="toc">Linux Packages</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#kermit" class="toc">Kermit</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#minicom_linux_client" class="toc">Minicom (Linux Client)</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#telnet" class="toc">Telnet</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#remote_shell_and_remote_file_copy" class="toc">Remote Shell and Remote File Copy</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#windows_clients" class="toc">Windows Clients</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#hyperterminal" class="toc">HyperTerminal</a></span></div></li></ul></li></ul></li></ul></div></div><h2><a name="terminal_programs" id="terminal_programs">Terminal Programs</a></h2><div class="level2"><p> One of the first things that needs to be done before U-Boot or uClinux can be used, is to setup a terminal program to communicate with the target device.</p><p>Communication between a host computer and the UART(s) on the Blackfin device is achieved through the use of a terminal program.  A serial cable is connected between the host computer and the development board, data is then transferred between the host computer and the development board via a terminal program.  The STAMP board has a DB9 serial connector for this purpose, connectors on other development hardware may vary.  For more information consult the documentation for your particular development hardware.</p><p>To get started with U-Boot and uClinux a terminal program and a serial connection to the development board are required as U-Boot and uClinux both use this serial link for standard input and output.  There are several terminal programs available for a number of platforms.  Two common terminal programs, one for Windows and one for Linux, and the methods used to configure them for use with a STAMP board running U-Boot / uClinux are described below.  Before preforming the procedures described below a serial cable should be connected between the host computer and the target system.</p></div><!-- SECTION [1-1287] --><h2><a name="linux_packages" id="linux_packages">Linux Packages</a></h2><div class="level2"><p></p><p>The two main GNU/Linux communication programs are <code>kermit</code> and <code>minicom</code>. Before you can run either, (or any other serial program in Linux) you must ensure that you have read/write access to the serial port. Do you this look at <code>/dev/ttyS0</code>:</p><pre class="code">rgetz@home:~&gt; ls -l /dev/ttyS0crw-rw----  1 root uucp 4, 64 2005-03-19 17:01 /dev/ttyS0</pre><p>You can see here that only the user <code>root</code> and the members of the group <code>uucp</code> have read/write access. To determine if you are in the group <code>uucp</code> check with the <code>groups</code> command:</p><pre class="code">rgetz@home:~&gt; groupsusers dialout video</pre><p>The <code>root</code> user must add you to the <code>uucp</code> group either by editing the <code>/etc/group</code> file, or by using the distributions graphical interface. Before the new group will take affect, you must log out, and log back in.</p></div><!-- SECTION [1288-2258] --><h3><a name="kermit" id="kermit">Kermit</a></h3><div class="level3"><p> Kermit is very easy to set up. Edit or create a <code>~/.kermrc</code> file, to look something like this:</p><pre class="code">set line /dev/ttyS0set speed 57600set carrier-watch offset prefixing allset parity noneset stop-bits 1set modem noneset file type binset file name litset prompt Linux Kermit</pre><p>Then you can just evoke <code>kermit</code> by:</p><pre class="code">rgetz@home:~&gt; kermitC-Kermit 8.0.211, 10 Apr 2004, for Linux Copyright (C) 1985, 2004,  Trustees of Columbia University in the City of New York.Type ? or HELP for help.Linux Kermit&gt;</pre><p>To connect to the target, type <code>connect</code>: </p><pre class="code">Linux Kermit&gt;connectConnecting to /dev/ttyS0, speed 57600 Escape character: Ctrl-\ (ASCII 28, FS): enabledType the escape character followed by C to get back,or followed by ? to see other options.----------------------------------------------------</pre><p></p></div><!-- SECTION [2259-3299] --><h3><a name="minicom_linux_client" id="minicom_linux_client">Minicom (Linux Client)</a></h3><div class="level3"><p> This terminal program is available for the Linux platform.  You may have to install this program if it is not included with your particular distribution of Linux.  The first time Minicom is run you will have to initialize the settings.  To do this preform the following steps:</p><p>As <code>root</code> enter the following command: </p><pre class="code">bash# minicom -s</pre><p>The Minicom Setup screen will now appear:</p><p><a href="media/minicom1.png" class="media" target="_blank" title="minicom1.png"><img src="media/minicom1.png" class="media" alt="" /></a></p><p>Down arrow to <code><strong>Serial port setup</strong></code> and hit enter.</p><p>The Serial port setup window should now appear:</p><p><a href="media/minicom2.png" class="media" target="_blank" title="minicom2.png"><img src="media/minicom2.png" class="media" alt="" /></a></p><p>In this menu type the letter of the option you want to choose (e.g. &lsquo;A&rsquo; would be Serial Device) and then edit the configuration for that option.  The following settings should be entered:</p><p><code><strong>Serial Device:  &lt;choose the device the serial cable is connected to&gt;</strong></code></p><p>(usually <code>/dev/ttyS0</code>)</p><p><code><strong>Lockfile</strong></code><code><strong> Location:</strong></code><code> </code><code><strong>&lt;blank&gt;</strong></code></p><p>(to prevent the serial port from ever being locked)</p><p><code><strong>Callin</strong></code><code><strong>: &lt;blank&gt;</strong></code> <br/> <code><strong>Callout</strong></code><code><strong>: &lt;blank&gt;</strong></code> <br/> <code><strong>Bps/Par/Bits:</strong></code><code> </code><code><strong>57600 8N1</strong></code> <br/> (baud rate (57600), parity (N for none), stop bits (1)) <br/> <code><strong>Hardware Flow Control: No</strong></code> <br/> <code><strong>Software Flow Control: No</strong></code> <br/></p><p>Hit <strong>Esc</strong> to return to the main menu.</p><p>   </p><p><a href="media/minicom3.png" class="media" target="_blank" title="minicom3.png"><img src="media/minicom3.png" class="media" alt="" /></a></p><p>Next the modem features must be disabled.  This needs to be done because Minicom is normally used for modem communication and the default settings will be looking to establish communication through a modem.</p><p>Back at the Minicom setup screen:</p><p><a href="media/minicom4.png" class="media" target="_blank" title="minicom4.png"><img src="media/minicom4.png" class="media" alt="" /></a></p><p>Down arrow to <strong>Modem and Dialing</strong> and hit enter.</p><p>The modem and dialing setup screen should now appear:</p><p><a href="media/minicom5.png" class="media" target="_blank" title="minicom5.png"><img src="media/minicom5.png" class="media" alt="" /></a></p><p> In this menu hit the letter of the option you want to choose (e.g. &lsquo;A&rsquo; would be Init string) and then edit the configuration for that option.  The following settings should be entered:</p><p><code><strong>Init string:  &lt;blank&gt;</strong></code> <br/> <code><strong>Reset string:  &lt;blank&gt;</strong></code> <br/> <code><strong>Dialing prefix #1:  &lt;blank&gt;</strong></code> <br/> <code><strong>Dialing suffix #1:  &lt;blank&gt;</strong></code> <br/> <code><strong>Dialing prefix #2:  &lt;blank&gt;</strong></code> <br/> <code><strong>Dialing suffix #2:  &lt;blank&gt;</strong></code> <br/> <code><strong>Dialing prefix #3:  &lt;blank&gt;</strong></code> <br/> <code><strong>Dialing suffix #3:  &lt;blank&gt;</strong></code> <br/> <code><strong>Connect string: &lt;blank&gt;</strong></code> <br/></p><p>Hit <strong>Esc</strong> to return to the main menu</p><p>Now that the configuration has been set it should be saved as the default configuration so that every time Minicom starts these settings will be restored.</p></div><!-- SECTION [3300-5860] --><h3><a name="telnet" id="telnet">Telnet</a></h3><div class="level3"><p> You can connect to the target system with <strong>telnet</strong>.</p><pre class="code">telnet 192.168.1.66Trying 192.168.1.66...Connected to 192.168.1.66.Escape character is '^]'.BusyBox v1.00 (2005.09.05-02:12+0000) Built-in shell (msh)Enter 'help' for a list of built-in commands.root:~&gt; cat /etc/motdWelcome to:       ____ _  _      /  __| ||_|             _  _ _   _| |  | | _ ____  _   _ \ \/ /| | | | |  | || |  _ \| | | | \  /| |_| | |__| || | | | | |_| | /  \|  ___\____|_||_|_| |_|\____|/_/\_\|_|For further information see:http://www.uclinux.org/http://blackfin.uclinux.org/root:~&gt;</pre><p>For telnet to work you must have the <strong>telnet</strong> user package enabled. For a quick test use <strong>grep</strong> to  look for <strong>TELNET</strong> in the user config file (config/.config)</p><pre class="code">grep TELNET config/.configCONFIG_USER_TELNETD_TELNETD=yCONFIG_USER_TELNETD_DOES_NOT_USE_OPENPTY=yCONFIG_USER_TELNET_TELNET=y# CONFIG_USER_BUSYBOX_TELNET is not set# CONFIG_USER_BUSYBOX_TELNETD is not set</pre><p>Once this is confirmed also confirm that <strong>romfs/bin/telnetd</strong> has also been created.</p>

⌨️ 快捷键说明

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