Ubuntu虚拟机开串口
虚拟机里启动指令加上console=ttyS0,115200
echo "任意一个字符串" >ttyS0
在虚拟机外面能看到字符打印出来
VirtualBox里面配置字符设备为主机管道
image.png
主机设备相当于串口直通
TCP在windows上基本不能用
参考:
http://pwn4.fun/2017/07/01/VirtualBox上调试Linux-Kernel/
Ubuntu虚拟机开串口
虚拟机里启动指令加上console=ttyS0,115200
echo "任意一个字符串" >ttyS0
在虚拟机外面能看到字符打印出来
VirtualBox里面配置字符设备为主机管道
image.png
主机设备相当于串口直通
TCP在windows上基本不能用
参考:
http://pwn4.fun/2017/07/01/VirtualBox上调试Linux-Kernel/
本文标题:Ubuntu虚拟机开串口
本文链接:https://www.haomeiwen.com/subject/lfzoqctx.html
网友评论