如何将ubuntu控制台输出到串口?
2014-07-11 13:45
218 查看
操作步骤:
1、修改/etc/default/grub
## Modify this line by leekwenGRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
## Modify this line by leekwen
GRUB_TERMINAL=serial
## Add this line by leekwen
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
2、运行update-grub命令
3、增加配置文件/etc/init.d/ttyS0.conf
leekwen@leekwen:/etc/default$ cat /etc/init/ttyS0.conf# Add those lines
# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345] and (
not-container or
container CONTAINER=lxc or
container CONTAINER=lxc-libvirt)
stop on runlevel [!2345]
respawn
exec /sbin/getty -L 115200 ttyS0 vt100
# Add those lines End
参考地址:
https://help.ubuntu.com/community/SerialConsoleHowtohttps://help.ubuntu.com/community/Grub2
相关文章推荐
- 如何将ubuntu控制台输出到串口?
- 如何将ubuntu控制台输出到串口?
- ubuntu 控制台输出到串口
- 如何让控制台信息输出到LCD上
- 如何在Win32窗口程序中发命令打开一个控制台,往里面打印(printf())输出一些数据
- 在Qt控制台程序中如何实现输入和输出
- .NET C# 如何监控并及时的显示另一个控制台Console的输出
- C#中请问如何在串口通讯中接收输出HEX格式数据
- 如何在Ubuntu的Terminal中查看更多历史输出
- 如何把用VB进行控制台命令的输入和输出.
- 如何将tomcat控制台输出的内容直播用日志文件保存起来
- glibc中的printf如何输出到串口
- [ZT]如何在图形界面中实时捕获控制台程序的标准输出,让图形界面程序向控制台程序输入特定的命令行指令
- 如何以二进制形式向控制台输出文件内容
- 如何将Ubuntu系统下编译过程中的警告信息输出成英文显示
- GUI程序如何使用控制台输出调试信息[zz][MFC调用win32窗口显示调试信息,使用AllocConsole 函数 ]
- 如何减少Jboss控制台和日志的信息输出 4.2版
- 如何将控制台命令输出的内容显示在CEdit中
- gcc中如何使用串口输出float double型数据
- Ubuntu下如何用ABD logcat 重定向Log输出