虚拟机VMware8.0.3
Linux版本
Ubuntu1204 和Ubuntu1010
更新软件源
yijun@ubuntu:~$ sudo apt-get update
安装minicom
yijun@ubuntu:~$ sudo apt-get install minicom
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
lrzsz
The following NEW packages will be installed:
lrzsz minicom
0 upgraded, 2 newly installed, 0 to remove and 497 not upgraded.
Need to get 392 kB of archives.
After this operation, 1,483 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
lrzsz minicom
Install these packages without verification [y/N]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe lrzsz i386 0.12.21-5 [99.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe minicom i386 2.5-2 [292 kB]
Fetched 392 kB in 1min 27s (4,470 B/s)
Selecting previously unselected package lrzsz.
(Reading database ... 154839 files and directories currently installed.)
Unpacking lrzsz (from .../lrzsz_0.12.21-5_i386.deb) ...
Selecting previously unselected package minicom.
Unpacking minicom (from .../minicom_2.5-2_i386.deb) ...
Processing triggers for man-db ...
Setting up lrzsz (0.12.21-5) ...
Setting up minicom (2.5-2) ...
yijun@ubuntu:~$
将虚拟机内的操作系统关机。
为Vmware添加串口支持:
Vmware菜单栏 "VM"->"Settings"->"Hardware"->"Add"->"Serial Port"->"Next"->"Next"->"Finish"->"OK",
然后运行虚拟机内操作系统
yijun@ubuntu:~$ sudo minicom -s
[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom
选Serial port setup项
| A - Serial Device : /dev/tty8 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : Yes |
| G - Software Flow Control : No |
| |
| Change which setting?
在键盘上按a
把tty8改为ttyS1 (这边很奇怪,COM1对应的是ttyS1,我试着配置成ttyS0不可以通信)
键入“回车”回到“Change which setting”中。
按f把Hardware Flow Control 改为NO
其他选项为默认设置。
如下所示
A - Serial Device : /dev/ttyS1 |
| 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?
键入“回车”,退到 [configuration]界面,选择 Save setup as dfl,保存为系统默认配置
选择Exit退出
打开开发板就可以收到数据了
U-Boot 2010.03 (Oct 03 2013 - 19:31:26) for SMDKC100
CPU: S5PC100@666MHz
Board: SMDKC100
DRAM: 256 MB
hello yijun >>>>>>>>>>>>>>>>>>>>>>>>>>>>booting
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: dm9000
dm9000 i/o: 0x88000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 11:22:33:44:55:2e
operating at 100M full duplex mode
。。。。。。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。。。。。。
Ubuntu1010也是用同样的方法,只不过装的minicom版本不同而已,都可以用
Ubuntu1010装的minicom是2.4版本的
Ubuntu1204装的minicom是2.5版本的
Linux版本
Ubuntu1204 和Ubuntu1010
更新软件源
yijun@ubuntu:~$ sudo apt-get update
安装minicom
yijun@ubuntu:~$ sudo apt-get install minicom
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
lrzsz
The following NEW packages will be installed:
lrzsz minicom
0 upgraded, 2 newly installed, 0 to remove and 497 not upgraded.
Need to get 392 kB of archives.
After this operation, 1,483 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
lrzsz minicom
Install these packages without verification [y/N]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe lrzsz i386 0.12.21-5 [99.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe minicom i386 2.5-2 [292 kB]
Fetched 392 kB in 1min 27s (4,470 B/s)
Selecting previously unselected package lrzsz.
(Reading database ... 154839 files and directories currently installed.)
Unpacking lrzsz (from .../lrzsz_0.12.21-5_i386.deb) ...
Selecting previously unselected package minicom.
Unpacking minicom (from .../minicom_2.5-2_i386.deb) ...
Processing triggers for man-db ...
Setting up lrzsz (0.12.21-5) ...
Setting up minicom (2.5-2) ...
yijun@ubuntu:~$
将虚拟机内的操作系统关机。
为Vmware添加串口支持:
Vmware菜单栏 "VM"->"Settings"->"Hardware"->"Add"->"Serial Port"->"Next"->"Next"->"Finish"->"OK",
然后运行虚拟机内操作系统
yijun@ubuntu:~$ sudo minicom -s
[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom
选Serial port setup项
| A - Serial Device : /dev/tty8 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : Yes |
| G - Software Flow Control : No |
| |
| Change which setting?
在键盘上按a
把tty8改为ttyS1 (这边很奇怪,COM1对应的是ttyS1,我试着配置成ttyS0不可以通信)
键入“回车”回到“Change which setting”中。
按f把Hardware Flow Control 改为NO
其他选项为默认设置。
如下所示
A - Serial Device : /dev/ttyS1 |
| 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?
键入“回车”,退到 [configuration]界面,选择 Save setup as dfl,保存为系统默认配置
选择Exit退出
打开开发板就可以收到数据了
U-Boot 2010.03 (Oct 03 2013 - 19:31:26) for SMDKC100
CPU: S5PC100@666MHz
Board: SMDKC100
DRAM: 256 MB
hello yijun >>>>>>>>>>>>>>>>>>>>>>>>>>>>booting
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: dm9000
dm9000 i/o: 0x88000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 11:22:33:44:55:2e
operating at 100M full duplex mode
。。。。。。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。。。。。。
Ubuntu1010也是用同样的方法,只不过装的minicom版本不同而已,都可以用
Ubuntu1010装的minicom是2.4版本的
Ubuntu1204装的minicom是2.5版本的