如何将ubuntu控制台输出到windows 串口控制台

在 上串口识别为ttyS0或ttyUSB0之类,在wine上识别不到,可用:
sudo ln -s /dev/ttyUSB0 ~/.wine/dosdevices/COM1
sudo chmod 777 ~/.wine/dosdevices/COM1
即可在wine的使用串口
版权声明:本文为博主原创,未经博主允许不得转载。怎么设置ubuntu系统的串口输出_百度知道
怎么设置ubuntu系统的串口输出
init/getty -L 115200 ttyS0 vt100linux@linux!2345]respawnexec &#47:将ttyS0;sbin&#47.start on stopped rc RUNLEVEL=[2345] and (not-container orcontainer CONTAINER=lxc orcontainer CONTAINER=lxc-libvirt)stop on runlevel [;ttyS0.conf # ttyS- getty## This service maintains a getty on tty1 from the point the system is# started until it is shut down again.conf改为如下内容;etc&#47:~$ cat &#47:linux@linux解决方法
其他类似问题
为您推荐:
ubuntu系统的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁先上个PP图,cutecom的主界面如下所示:
在WinXP下经常用的是minicom,或者是自己写的小工具,cutecom相对于minicom而言,多了一个输入命令历史列表,这个功能不错。下边说下安装,在ubuntu下比较简单,直接用新立得软件包管理器安装即可使用命令cutecom启动。这里额接的是usb转串口,pl2303,其名字叫ttyUSB0。ubuntu内已经集成了驱动,不需要再安装,插入usb转串口后,使用dmesg | grep usb,可以查看其安装情况。我这边输出显示有这样一句:[] usb 4-1: pl2303 converter now attached to ttyUSB0显示其已安装成功。本文来自:怎么设置ubuntu系统的串口输出(一) - 综合当前位置:& &&&怎么设置ubuntu系统的串口输出(一)怎么设置ubuntu系统的串口输出(一)&&网友分享于:&&浏览:0次如何设置ubuntu系统的串口输出(一)1. 平台:intel X86 baytrail平台
2. 由于开发模式需要查看内核串口输出,所以需要将linux系统从开机到系统引导起来的部分都定向到串口,那么如何设置呢?
安装ubuntu系统后(这里装的是14.10版本的ubuntu系统)
(1)首先设置grub参数:
修改/etc/default/grub文件:
修改如下内容为:
GRUB_CMDLINE_LINUX_DEFAULT=&text console=tty0 console=ttyS0,&
然后增加一行:
GRUB_SERIAL_COMMAND=&serial &--unit=0 --speed=115200 --word=8 --parity=no --stop=1&
然后执行update-grub,使配置生效
(2)然后在/etc/init/目录中创建ttyS0.conf,内容如下:
#ttyS0 &- getty
start on rc RUNLEVEL=[2345]
stop on runlevel [!2345]
exec /sbin/getty -L 115200 ttyS0 vt100
遗留问题:
系统起来后,在串口部分只显示到:
&* Starting regular background program processing daemon[ OK ]
&* Starting Signal sysvinit that alsa-utils tasks are complete[ OK ]
&* Starting CPU interrupts balancing daemon[ OK ]
&* Stopping save kernel messages[ OK ]
&* Stopping Restore Sound Card State[ OK ]
&* Starting cups-browsed - Bonjour remote printer browsing daemon[ OK ]
&* Starting automatic crash report generation[ OK ]
&* Starting configure virtual network devices[ OK ]
[ OK ]toring resolver state... & & & &
[ OK ]rting uuid generator uuidd & & & &
&* speech- edit /etc/default/speech-dispatcher
edit /etc/default/saned
&* Stopping System V runlevel compatibility[ OK ]
&* Stopping cold plug devices[ OK ]
&* Stopping log initial device creation[ OK ]
&* Starting save udev log and update rules[ OK ]
[ &150.593006] systemd-logind[947]: Failed to start unit : Unknown unit:
[ &150.602779] systemd-logind[947]: Failed to start user service: Unknown unit:
然后在VGA上有显示登录,但是串口上没有显示
这里需要进一步研究
不过总算将这一步做出来了,后面的问题就是开机脚本配置的问题了
另外也说明了,之前购买的baytrail主板确实串口硬件有问题,小厂自己做的主板不如品牌主板给力
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有

我要回帖

更多关于 windows 串口控制台 的文章

 

随机推荐