明远智睿技术论坛
标题:
关于Can无法使用的问题
[打印本页]
作者:
wuyiee
时间:
2017-7-22 14:19
标题:
关于Can无法使用的问题
我现在在调试CAN,已结了TAJ1040CAN收发芯片,CAN口无法使用
启动时报
spi_imx 2008000.ecspi: probed
vcan: Virtual CAN interface driver
CAN device driver interface
sja1000 CAN netdevice driver
2090000.can supply xceiver not found, using dummy regulator
flexcan 2090000.can: device registered (reg_base=90940000, irq=142)
2094000.can supply xceiver not found, using dummy regulator
flexcan 2094000.can: device registered (reg_base=90948000, irq=143)
#dmesg | grep -i can
vcan: Virtual CAN interface driver
CAN device driver interface
sja1000 CAN netdevice driver
2090000.can supply xceiver not found, using dummy regulator
flexcan 2090000.can: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e4000 req_gpr 0x10 req_bit 1 ack_gpr 0x10 ack_bit 17
flexcan 2090000.can: device registered (reg_base=90940000, irq=142)
2094000.can supply xceiver not found, using dummy regulator
flexcan 2094000.can: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e4000 req_gpr 0x10 req_bit 2 ack_gpr 0x10 ack_bit 18
flexcan 2094000.can: device registered (reg_base=90948000, irq=143)
snvs_pwrkey 20cc000.snvs-pwrkey: can't get snvs clock
snvs-secvio 20cc000.caam-snvs: can't get snvs clock
can: controller area network core (rev 20120528 abi 9)
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
按MY-IMX6-EK200测试方法
#ip link set can0 up type can bitrate 125000
报ip: either "dev" is duplicate, or "type" is garbage
#ifconfig -a
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:142
can1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:143
eth0 Link encap:Ethernet HWaddr 8E:00:7F:3E:11:11
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap
ocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wwan0 Link encap:Ethernet HWaddr BA:CC:89:04:63:98
BROADCAST NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# ifconfig can0 up
flexcan 2090000.can can0: bit-timing not yet defined
ifconfig: SIOCSIFFLAGS: Invalid argument
请问可能哪里有问题?
作者:
wuyiee
时间:
2017-7-22 14:58
已解决,文件系统问题
欢迎光临 明远智睿技术论坛 (http://bbs.myzr.com.cn/)
Powered by Discuz! X3.2