AM335X 运行VxWorks 6.9 系统
技术交流QQ群: 691976956
硬件平台: SBC8600
操作系统: VxWorks 6.9.x
硬件配置:
CPU : AM335XZCZ
DDR: DDR3SDRAM 512 MB
NAND: 512MB
SPI FLASH: n/a
网口: 2 路 10/100/1000 Mbps
串口 : 5 路
USB: 2 路
音频: 播放/录音
显示: 1 路 RGB
SPI: 1 路
I2C : 3 路
OTG: 1路
RTC: 内置
CAN: 1路带隔离
存在问题: CPSW1 网口能够接收数据,但不能发送数据。
启动记录:
VxWorksSystem Boot
Copyright 1984-2018 Wind RiverSystems, Inc.
CPU: TI_AM335X - ARMv7 (ARM)
Version: VxWorks 6.9
BSP version: 6.9/3
Creation date: Feb 09 2017 10:18:59
Press any key to stop auto-boot...
Card inserted
@5
[VxWorks Boot]:
bootdevice : cpsw
unitnumber : 0
processornumber : 0
hostname : host
filename : vxworks
inet on ethernet (e): 192.168.0.201:ffffff00
host inet(h) : 192.168.0.101
user(u) : target
ftp password (pw) : target
flags(f) : 0x0
target name(tn) : targetname
Loading... 2497040
Starting at 0x80100000...
Adding 6252 symbols for standalone.
VxWorks
Copyright 1984-2018 Wind RiverSystems, Inc.
CPU: TI_AM335X - ARMv7 (ARM)
Runtime Name: VxWorks
Runtime Version: 6.9
BSP version: 6.9/3
Created: Feb 09 2017 10:18:59
ED&R Policy Mode: Deployed
WDB Comm Type: WDB_COMM_END
WDB: Ready.
-> Card inserted
-> devs
drvname
0/null
1/tyCo/0
1/tyCo/1
1/tyCo/2
1/tyCo/3
1/tyCo/4
8host:
9/dcan/0
9/dcan/1
10/vio
11/fs
3/sd0:1
value = 25 = 0x19
->
->
-> cd "/fs"
value = 0 = 0x0
-> ll
-rwxrwxrwx 10 0 2596337 Jan 1 00:00 vxworks
drw-rw-rw- 10 0 2048 Jan 1 00:00 lost+found/
value = 0 = 0x0
->
->
-> ifconfig
lo0 Linktype:Local loopback Queue:none
inet 127.0.0.1 mask 255.255.255.255
UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI
MTU:1500 metric:1 VR:0 ifindex:1
RX packets:4 mcast:0 errors:0 dropped:0
TX packets:4 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:172 TX bytes:172
cpsw0 Linktype:Ethernet HWaddr bc:6a:29:56:82:3c Queue:none
inet192.168.0.201 mask 255.255.255.0 broadcast 192.168.0.255
UP RUNNING SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:2
RX packets:478 mcast:0 errors:0 dropped:0
TX packets:26 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:34k TX bytes:1542
value = 0 = 0x0
->
-> ipAttach 1,"cpsw"
value = 0 = 0x0
->
-> ifconfig
lo0 Linktype:Local loopback Queue:none
inet 127.0.0.1 mask 255.255.255.255
UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI
MTU:1500 metric:1 VR:0 ifindex:1
RX packets:4 mcast:0 errors:0 dropped:0
TX packets:4 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:172 TX bytes:172
cpsw0 Linktype:Ethernet HWaddr bc:6a:29:56:82:3c Queue:none
inet192.168.0.201 mask 255.255.255.0 broadcast 192.168.0.255
UP RUNNING SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:2
RX packets:493 mcast:0 errors:0 dropped:0
TX packets:27 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:35k TX bytes:1602
cpsw1 Linktype:Ethernet HWaddr bc:6a:29:56:82:3e Queue:none
SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:3
RX packets:0 mcast:0 errors:0 dropped:0
TX packets:0 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:0 TX bytes:0
value = 0 = 0x0
->
-> ifconfig "cpsw1192.168.1.245 up"
value = 0 = 0x0
->
->
-> ifconfig
lo0 Linktype:Local loopback Queue:none
inet 127.0.0.1 mask 255.255.255.255
UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI
MTU:1500 metric:1 VR:0 ifindex:1
RX packets:4 mcast:0 errors:0 dropped:0
TX packets:4 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:172 TX bytes:172
cpsw0 Linktype:Ethernet HWaddr bc:6a:29:56:82:3c Queue:none
inet192.168.0.201 mask 255.255.255.0 broadcast 192.168.0.255
UP RUNNING SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:2
RX packets:527 mcast:0 errors:0 dropped:0
TX packets:29 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:38k TX bytes:1722
cpsw1 Linktype:Ethernet HWaddr bc:6a:29:56:82:3e Queue:none
inet192.168.1.245 mask 255.255.255.0 broadcast 192.168.1.255
UP RUNNING SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:3
RX packets:0 mcast:0 errors:0 dropped:0
TX packets:1 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:0 TX bytes:42
value = 0 = 0x0
->
插上网线后, 打印信息如下:
-> ifconfig
lo0 Linktype:Local loopback Queue:none
inet 127.0.0.1 mask 255.255.255.255
UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI
MTU:1500 metric:1 VR:0 ifindex:1
RX packets:4 mcast:0 errors:0 dropped:0
TX packets:4 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:172 TX bytes:172
cpsw0 Linktype:Ethernet HWaddr bc:6a:29:56:82:3c Queue:none
inet192.168.0.201 mask 255.255.255.0 broadcast 192.168.0.255
UP SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:2
RX packets:623 mcast:0 errors:0 dropped:0
TX packets:34 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:44k TX bytes:2022
cpsw1 Linktype:Ethernet HWaddr bc:6a:29:56:82:3e Queue:none
inet192.168.1.245 mask 255.255.255.0 broadcast 192.168.1.255
UP SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:3
RX packets:17 mcast:0 errors:0 dropped:17
TX packets:1 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:1253 TX bytes:42
value = 0 = 0x0
->
在 WINDOWS 下PING网口, 发现RX有数据增长,TX 没有数据变化。