Chinaunix首页 | 论坛 | 博客
  • 博客访问: 568224
  • 博文数量: 99
  • 博客积分: 3976
  • 博客等级: 中校
  • 技术积分: 1041
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-15 15:48
文章分类
文章存档

2009年(1)

2008年(5)

2007年(31)

2006年(58)

2005年(4)

分类: LINUX

2007-05-25 21:07:03

[root@1jjk liuqi]# ls /dev/tty
tty tty16 tty24 tty32 tty40 tty49 tty57 tty8
tty0 tty17 tty25 tty33 tty41 tty5 tty58 tty9
tty1 tty18 tty26 tty34 tty42 tty50 tty59 ttyS0
tty10 tty19 tty27 tty35 tty43 tty51 tty6 ttyS1
tty11 tty2 tty28 tty36 tty44 tty52 tty60 ttyS2
tty12 tty20 tty29 tty37 tty45 tty53 tty61 ttyS3
tty13 tty21 tty3 tty38 tty46 tty54 tty62 ttyUSB0
tty14 tty22 tty30 tty39 tty47 tty55 tty63
tty15 tty23 tty31 tty4 tty48 tty56 tty7
[root@
1jjk liuqi]# ls /dev/tty

[root@1jjk liuqi]# minicom -s

时会出现配置界面:



            ┌─────[configuration]──────┐
            │ Filenames and paths      │
            │ File transfer protocols  │
            │ Serial port setup        │
            │ Modem and dialing        │
            │ Screen and keyboard      │
            │ Save setup as dfl        │
            │ Save setup as..          │
            │ Exit                     │
            │ Exit from Minicom        │
            └──────────────────────────┘

我的配置是这样的:

[root@1jjk liuqi]# cat /etc/minirc.dfl
# Machine-generated file - use "minicom -s" to change parameters.
pr port             /dev/ttyUSB0
pu baudrate         115200
pu bits             8
pu stopbits         1
pu rtscts           No
pu xonxoff          No
pu askdndir         No
[root@bogon liuqi]#


接着可以试一试:

[root@1jjk liuqi]# minicom


Welcome to minicom 2.1

OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Jul 26 2006, 06:38:09.

Press CTRL-A Z for help on special keys
                                                    
                                                    
                                                    
U-Boot 1.1.1---- (Jan 30 2007 - 04:19:25)
                                                    
U-Boot code: 0C700000 -> 0C721304  BSS: -> 0C755C50
RAM Configuration:
Bank #0: 0c000000  8 MB
Flash:  2 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 00050000 ...
   Image Name:   uClinux_hfrk_
   Created:      2005-03-11   5:25:14 UTC
   Image Type:   ARM Linux Kernel Image (gzip compressed)                      
   Data Size:    1233255 Bytes =  1.2 MB                                       
   Load Address: 0c008000                                                      
   Entry Point:  0c008000                                                      
   Verifying Checksum ... OK                                                   
   Uncompressing Kernel Image ... OK                                           
                                                                               
Starting kernel ...                                                            
                                                                               
Linux version 2.4.24-uc0 (root@localhost) (gcc version 2.95.3 20010315 (release5
Processor: Samsung S3C44B0X revision 0                                         
Architecture: S3C44B0X                                                         
On node 0 totalpages: 2048                                                     
zone(0): 0 pages.                                                              
zone(1): 2048 pages.                                                           
zone(2): 0 pages.                                                              
Kernel command line: root=/dev/rom0 init=/linuxrc                              
Calibrating delay loop... 23.85 BogoMIPS                                       
Memory: 8MB = 8MB total                                                        
Memory: 5188KB available (2659K code, 165K data, 44K init)                     
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)                   
Inode cache hash table entries: 512 (order: 0, 4096 bytes)                     
Mount cache hash table entries: 512 (order: 0, 4096 bytes)                     
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)                   
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)                     
POSIX conformance testing by UNIFIX                                            
Linux NET4.0 for Linux 2.4                                                     
Based upon Swansea University Computer Society NET3.039                        
Initializing RT netlink socket                                                 
Starting kswapd                                                                
ttyS0 at I/O 0x1d00000 (irq = 3) is a S3C44B0                                  
ttyS1 at I/O 0x1d04000 (irq = 2) is a S3C44B0                                  
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)                            
Last modified Nov 1, 2000 by Paul Gortmaker                                    
NE*000 ethercard probe at 0x6000000:NE2000 driver modified by
 00 49 34 00 00 00                                                             
eth0: NE2000 found at 0x6000000, using IRQ 24                                  
Blkmem copyright 1998,1999 D. Jeff Dionne                                      
Blkmem copyright 1998 Kenneth Albanowski                                       
Blkmem 1 disk images:                                                          
0: C0F4FE8-C2ABFE7 [VIRTUAL C0F4FE8-C2ABFE7] (RO)                              
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize          
ipddp.c:v0.01 8/28/97 Bradford W. Johnson          
ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson
NET4: Linux TCP/IP 1.0 for NET4.0                                              
IP Protocols: ICMP, UDP, TCP, IGMP                                             
IP: routing cache hash table of 512 buckets, 4Kbytes                           
TCP: Hash tables configured (established 512 bind 512)                         
IPv4 over IPv4 tunneling driver                                                
GRE over IPv4 tunneling driver                                                 
Linux IP multicast router 0.06 plus PIM-SM                                     
NET4: Linux IPX 0.47 for NET4.0                                                
IPX Portions Copyright (c) 1995 Caldera, Inc.                                  
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.                          
NET4: AppleTalk 0.18a for Linux NET4.0                                         
802.1Q VLAN Support v1.8 Ben Greear                   
Other stuff added by David S. Miller                         
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com                
VFS: Mounted root (romfs filesystem) readonly.                                 
Freeing init memory: 44K                                                       
Shell invoked to run file: /etc/rc                                             
Command: hostname Samsung                                                      
Command: /bin/expand /etc/ramfs.img /dev/ram0                                  
Command: /bin/expand /etc/ramfs2048.img /dev/ram1                              
Command: mount -t proc proc /proc                                              
mount: /etc/mtab: Read-only file system                                        
Command: mount -t ext2 /dev/ram0 /var                                          
mount: /etc/mtab: Read-only file system                                        
Command: mount -t ext2 /dev/ram1 /ramdisk                                      
mount: Mounting /dev/ram1 on /ramdisk failed: No such file or directory        
pid 13: failed 256                                                             
Command: chmod 777 /ramdisk                                                    
/ramdisk: No such file or directory                                            
Command: mkdir /var/config                                                     
Command: mkdir /var/tmp                                                        
Command: mkdir /var/log                                                        
Command: mkdir /var/run                                                        
Command: mkdir /var/lock                                                       
Command: mkdir /var/empty                                                      
Command: ifconfig eth0 192.168.0.28 netmask 255.255.255.0 up                   
Command: cat /etc/motd                                                         
Welcome to                                                                     
          ____ _  _                                                            
         /  __| ||_|                                                           
    _   _| |  | | _ ____  _   _  _  _                                          
   | | | | |  | || |  _ \| | | |\ \/ /                                         
   | |_| | |__| || | | | | |_| |/    \                                         
   |  ___\____|_||_|_| |_|\____|\_/\_/                                         
   | |                                                                         
   |_|                                                                         
                                                                               
For further information check:                                                 

                                                                               
Command:                                                                       
Execution Finished, Exiting                                                    
init: exec rc failed                                                           
init: /bin/firewall failed!init: exec rc failed                                
                                                                               
Sash command shell (version 1.1.1)                                             
/>

目标板可以接收到我们键盘发送的信号:

Welcome to                                                                     
          ____ _  _                                                            
         /  __| ||_|                                                           
    _   _| |  | | _ ____  _   _  _  _                                          
   | | | | |  | || |  _ \| | | |\ \/ /                                         
   | |_| | |__| || | | | | |_| |/    \                                         
   |  ___\____|_||_|_| |_|\____|\_/\_/                                         
   | |                                                                         
   |_|                                                                         
                                                                               
For further information check:                                                 

                                                                               
Command:                                                                       
Execution Finished, Exiting                                                    
init: exec rc failed                                                           
init: /bin/firewall failed!init: exec rc failed                                
                                                                               
Sash command shell (version 1.1.1)                                             
/>                                                                             
\/>                                                                            
/> ls                                                                          
bin   dev   etc   home  lib   mnt   proc  sbin  tmp   usr   var                
/> ls bin                                                                      
agetty     busybox    cat        chgrp      chmod      chown      cmp          
cp         date       dd         dhcpcd     expand     ftp        ftpd         
gdbserver  grep       hostname   httpd      ifconfig   init       l            
lcd        ln         login      ls         mkdir      mkfifo     mknod        
more       mount      mv         ping       reboot     rm         rmdir        
route      sh         sync       telnet     telnetd    tftp       tinylogin    
touch      version                                                             
/>

关于usbtors232或者说USB转换COM(串口)在IBMt40下Linux下的解决办法就这样了。

阅读(1786) | 评论(0) | 转发(0) |
0

上一篇:交叉编译glibc

下一篇:今天毕业了

给主人留下些什么吧!~~