IS200EXCSG1A输出卡件,模块卡件
打开一个终端窗口,以root用户身份登录并键入:minicom-s minicom在程序第一次运行时向您显示一个设置菜单。以下步骤将正确配置程序以与目标进行通信:1。选择串行端口设置2。将串行设备设置为所需的串行端口(例如/dev/ttyS0)3。将Bps/Par/Bits设置为9600 8N1 4。按F将硬件流量控制设置为NO 5。按Enter 6。选择调制解调器和拨号7。清除初始化字符串、重置字符串和挂起字符串8。按Enter 9。选择将设置另存为dfl NRC_Dev_Env_setup_Guide_v1.0状态:已发布22 10。选择退出以便从用户帐户使用minicom,需要更多配置。第一步是将用户帐户添加到uucp和锁定组:1。从系统设置菜单2中选择用户和组。输入root密码3。突出显示您的用户帐户并选择属性4。在“组”选项卡中,检查uucp和锁定组5。退出系统设置菜单最后一步是更改/dev/ttyS0串行设备的权限:-|打开终端窗口,以root身份登录-|键入chmod 660/dev/ttyS0-|关闭终端您需要从用户帐户注销,然后再次登录。登录后,minicom就可以使用了。3.7.2.Telnet登录除了使用minicom通过串行链接登录外,还可以远程登录到目标。例如:telnet 192.168.1.10您应该看到登录提示并要求输入密码。NRC_Dev_Env_Setup_Guide_v1.0状态:已发布23 4。创建自定义映像自定义映像需要一个Linux内核和许多其他组件集成到根文件系统中。此项目的基线文件系统包括以下组件:表4-1:软件组件组件描述Linux内核Linux内核版本2.4.27 glibc GNU C库版本2.3.3 BSP包VMIC BusyBox提供的驱动程序嵌入式系统通常需要的Linux命令子集libcli库,用于构建类似Cisco的CLI TinyLogin登录程序gdbserver远程调试服务器脚本rcS、fstab和mtab以下部分描述了根文件系统和自定义映像的基线版本中包含的所有软件组件。4.1.根文件系统嵌入式系统的基本文件系统包括下表所示的目录。该表还描述了根文件系统中每个顶级目录的内容。表4-2:目录结构目录内容bin用户命令二进制文件dev设备等系统配置文件lib基本库mnt装载点proc内核虚拟文件系统sbin基本系统管理二进制文件tmp临时文件NRC_dev_Env_Setup_Guide_v1.0状态:已发布24目录内容usr应用程序var守护程序存储的变量数据目标目录结构包括根文件系统的两个目录:baselinefs目录和workingfs目录。
Open a terminal window, login as root and type: minicom -s Minicom presents you with a setup menu the first time the program is run. The following steps will correctly configure the program for communication with the target: 1. Select Serial port setup 2. Set serial device to the desired serial port (for example /dev/ttyS0) 3. Set Bps/Par/Bits to 9600 8N1 4. Press F to set hardware flow control to NO 5. Press Enter 6. Select Modem and Dialing 7. Clear the Init string, Reset string, and Hang-up string 8. Press Enter 9. Select Save setup as dfl NRC_Dev_Env_Setup_Guide_v1.0 Status: Released 22 10.Select Exit In order to use minicom from your user account some more configuration is required. The first step is to add your user account to uucp and lock groups: 1. Choose Users and Groups from System settings menu 2. Enter root password 3. Highlight your user account and select Properties 4. From the Groups tab check the uucp and lock groups 5. Exit the systems settings menu The last step is to change permissions on the /dev/ttyS0 serial device: -| Open a terminal window, login as root -| Type chmod 660 /dev/ttyS0 -| Close a terminal You will need to logout from your user account and login again. Once you login, minicom is ready for use. 3.7.2. Telnet login Beside login through serial link using minicom, it is possible to telnet into the target. For example: telnet 192.168.1.10 You should be presented with login prompt and asked for password. NRC_Dev_Env_Setup_Guide_v1.0 Status: Released 23 4. Creating a Custom Image A custom image requires a Linux kernel and a number of other components integrated onto a root filesystem. The baseline filesystem for this projects includes the following components: Table 4-1: Software components Component Description Linux kernel Linux kernel version 2.4.27 glibc GNU C library version 2.3.3 BSP package Drivers provided by VMIC BusyBox Subset of Linux commands typically required for embedded systems libcli Library for building a Cisco-like CLI TinyLogin Login program gdbserver Remote debugging server scripts rcS, fstab and mtab The following sections describe the root filesystem and all of the software components included in the baseline version of the custom image. 4.1. Root Filesystem The basic filesystem for an embedded system includes the directories shown in the table below. The table also describes the contents of each of the top-level directories in the root filesystem. Table 4-2: Directory structure Directory Content bin User command binaries dev Devices etc System configuration files lib Essential libraries mnt Mount point proc Virtual filesystem for kernel sbin Essential system administration binaries tmp Temporary files NRC_Dev_Env_Setup_Guide_v1.0 Status: Released 24 Directory Content usr Applications var Variable data stored by daemons The target directory structure includes two directories for the root filesystem – the baselinefs directory and the workingfs directory.