收到beaglebone有一段时间了,国庆回家了一趟,发帖推迟了一段时间,希望大家可以理解。
看到坛子里面的很多牛人的牛帖啊,发现还是有很多需要学习的啊!
拿到板子第一步串口驱动的安装:
在板子带的sd中有驱动文件,但是安装的时候出现了问题,由于不支持中文,安装不了。
大家可以在下面的网站进行驱动的下载,选择自己的系统版本就可以直接下载驱动了。
http://www.ftdichip.com/Drivers/VCP.htm
第二步对各硬件功能进行一个简单的测试:
启动信息如下:
U-Boot SPL 2011.09-00010-g81c8c79 (Feb 13 2012 - 14:48:03)
Texas Instruments Revision detection unimplemented
No AC power, disabling frequency switch
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00010-g81c8c79 (Feb 13 2012 - 14:48:03)
I2C: ready
DRAM: 256 MiB
No daughter card present
NAND: HW ECC Hamming Code selected
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
3137440 bytes read
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Angstrom/3.2/beaglebone
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3137376 Bytes = 3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.068264] _omap_mux_get_by_name: Could not find signal uart1_cts.uart1_cts
[ 0.068285] omap_hwmod_mux_init: Could not allocate device mux entry
[ 0.068437] _omap_mux_get_by_name: Could not find signal uart2_cts.uart2_cts
[ 0.068455] omap_hwmod_mux_init: Could not allocate device mux entry
[ 0.068613] _omap_mux_get_by_name: Could not find signal uart3_cts_rctx.uart3_cts_rctx
[ 0.068632] omap_hwmod_mux_init: Could not allocate device mux entry
[ 0.106323] cpuidle-am33xx cpuidle-am33xx.0: failed to register driver
[ 0.261078] _omap_mux_get_by_name: Could not find signal leds-gpio
[ 0.651886] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 0.658070] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 0.664086] omap2_set_init_voltage: unable to get clk l3_ick
[ 0.670023] omap2_set_init_voltage: unable to set vdd_core
systemd-fsck[55]: Angstrom-Cloud9-: clean, 28977/874496 files, 748340/3494137 blocks
[ 4.555134]
[ 4.555144] CPSW phy found : id is : 0x7c0f1
[ 4.562024] PHY 0:01 not found
.---O---.
| | .-. o o
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'
The Angstrom Distribution beaglebone ttyO0
Angstrom v2012.01-core - Kernel 3.2.5+
beaglebone login:
第三步测试,网络接口的测试:
查看网卡信息:
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:31:8A:F1:85
inet addr:192.168.2.103 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::218:31ff:fe8a:f185/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5152 (5.0 KiB) TX bytes:8118 (7.9 KiB)
Interrupt:40
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:229 (229.0 B) TX bytes:229 (229.0 B)
root@beaglebone:~#
ping百度网站:
root@beaglebone:~# ping
www.baidu.com
PING
www.a.shifen.com (119.75.217.56) 56(84) bytes of data.
64 bytes from 119.75.217.56: icmp_req=1 ttl=53 time=2.59 ms
64 bytes from 119.75.217.56: icmp_req=2 ttl=53 time=2.56 ms
64 bytes from 119.75.217.56: icmp_req=3 ttl=53 time=2.44 ms
64 bytes from 119.75.217.56: icmp_req=4 ttl=53 time=3.15 ms
第四步的测试:led的测试
点亮和熄灭usr1
root@beaglebone:~# echo 1 > /sys/class/leds/beaglebone::usr1/brightness
root@beaglebone:~# echo 0 > /sys/class/leds/beaglebone::usr1/brightness
同样安装上面的方法可以点亮usr2、usr3,usr0已经被用做linux系统心跳指示灯,但也是可以控制的。