BeagleBone板子自带了FT2232 USB转串口芯片,在UBUNTU下进行串口连接。
1:安装libftdi
sudo apt-get install libftdi*
2:增加udev规则
在/etc/udev/rules.d下增加udev的规则文件,如/etc/udev/rules.d/73-beaglebone.rules文件,内容如下:
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", \
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="a6d0", \
DRIVER=="", RUN+="/sbin/modprobe -b ftdi_sio"
ACTION=="add", SUBSYSTEM=="drivers", \
ENV{DEVPATH}=="/bus/usb-serial/drivers/ftdi_sio", \
ATTR{new_id}="0403 a6d0"
ACTION=="add", KERNEL=="ttyUSB*", \ ATTRS{interface}=="BeagleBone", \
ATTRS{bInterfaceNumber}=="00", \ SYMLINK+="beaglebone-jtag"
ACTION=="add", KERNEL=="ttyUSB*", \ ATTRS{interface}=="BeagleBone", \
ATTRS{bInterfaceNumber}=="01", \ SYMLINK+="beaglebone-serial"
3:在ubuntu下启动kermit进行连接
正常情况下,会产生/dev/ttyUSB0和ttyUSB1两个设备,经测试,使用的是/dev/ttyUSB1设备。
如果~/.kermrc内容如下所示的话:
set line /dev/ttyS0
#set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5
输入kermit -l /dev/ttyUSB1即可进行串口连接。
启动LOG信息:
U-Boot 2011.09-00000-gf63b270-dirty (Nov 14 2011 - 10:37:14)
I2C: ready
DRAM: 256 MiB
No daughter card present
NAND: HW ECC Hamming Code selected
nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x11, Chip ID: 0x11
No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
33 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
reading uImage
3031456 bytes read
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Angstrom/3.1/beaglebone
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3031392 Bytes = 2.9 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.067554] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.244325] _omap_mux_get_by_name: Could not find signal leds-gpio
[ 0.313766] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 0.319924] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 0.326068] omap2_set_init_voltage: unable to get clk l3_ick
[ 0.332069] omap2_set_init_voltage: unable to set vdd_core
systemd-fsck[60]: Angstrom-Cloud9-: clean, 27399/874496 files, 774757/3494137 blocks
[ 4.458237] /usr/sbin/crond[92]: (CRON) INFO (Syslog will be used instead of sendmail.): No such file or directory
.---O---.
| | .-. o o
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'
The Angstrom Distribution beaglebone ttyO0
Angstrom v2011.10-core - Kernel 3.1.0+
beaglebone login: root
Last login: Wed Nov 16 15:31:13 GMT 2011 on ttyO0
[ 16.336521]
[ 16.336531] CPSW phy found : id is : 0x7c0f1
[ 16.343479] PHY 0:01 not found
:~#
阅读(377) | 评论(0) | 转发(0) |