Chinaunix首页 | 论坛 | 博客
  • 博客访问: 444516
  • 博文数量: 293
  • 博客积分: 4204
  • 博客等级: 上校
  • 技术积分: 3060
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-21 10:27
个人简介

nobody

文章分类

全部博文(293)

文章存档

2014年(27)

2013年(105)

2012年(41)

2011年(109)

2010年(11)

分类:

2011-03-24 22:12:08


1 virtualbox manager中选中guestOS , setting ==> serial ports ==> port1 :enable serial port ;port number COM1(此后在
guestOS 中操作的就是/dev/ttyS0);port mode: host pipe ;选中 create pipe; port/file path: /tmp/vbox;

2 在hostOS fedora  ; vim  /etc/mini.dfl
内容为
# Machine-generated file - use "minicom -s" to change parameters.
pu port             unix#/tmp/vbox

3 配置好后,启动guestOS,并执行stty ispeed 115200 ospeed 115200 -F /dev/ttyS0;
在主机上面启动minicom -s 同样配置为115200 8N1 ;

4
 在guestOS 中,echo "hello world" > /dev/ttyS0;
在fedora中minicom一个可以看到hello world输出。

阅读(1080) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~