ubuntu虚拟机下配置minicom

1.配置虚拟机com口,打开虚拟机,不要进入ubuntu系统。选择VM->Settings->Hardware->Add->Serial Port,选择pc机上连接的串口点击Ok确定。

2.进入ubuntu系统,sudo apt-get install minicom

3.sudo minicom -s,选择 Serial port setup回车,我是用了com1口所以用/dev/ttyS0,COM2对应ttyS1(注意选择)。

Serial port setup [Enter]
+-------------------------------------------------------------+
| A -    Serial Device      : /dev/ttyS0                    |
| B - Lockfile Location     : /var/lock                       |
| C -   Callin Program      :                                 |
| D - Callout Program      -:                                 |
| E -    Bps/Par/Bits       : 115200 8N1                      |
| F - Hardware Flow Control : No                              |
| G - Software Flow Control : No                              |
|                                                             |
|    Change which setting?                                    |
+-------------------------------------------------------------+

可键入回车返回上级配置界面

4.选择Modem and dialing 回车,分别按a,b,k把内容清空。最后回车,并 将其保存为默认配置(即save setup as dfl)。最后,选择"Exit from Minicom"命令退出。

5.关闭终端,重新打开sudo minicom 连接串口线,给开发板上电源就可以看到不一样的效果了。

你可能感兴趣的:(ubuntu,职场,休闲,minicom,虚拟机配置)