Hi,
I am using iMX28 EVK board with linux 2.6.35. I am working on CAN driver support. I enabled CAN driver and I am able to see two CAN driver using ifconfig -a command but I am not able to set bit rate for CAN, I used two utilities,(iproute2 and canutils) but i am not able to set bitrate in both the utilities.
I am getting following error while setting bitrate.
I followed all the way to set bitrate,
Freescale FlexCAN Driver
root@mx28evk ~$ lsmod
Module Size Used by
flexcan 11754 0
root@mx28evk ~$ ip link set can0 up
root@mx28evk ~$ ifconfig -a
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING 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:64
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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:64
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:04:9F:02:4E:0C
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)
eth1 Link encap:Ethernet HWaddr 00:04:9F:02:4E:0D
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)
Base address:0x8000
lo Link encap:Local Loopback
LOOPBACK MTU:16436 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)
root@mx28evk ~$ ip link set can0 type can bitrate 125000 triple-sampling on
RTNETLINK answers: Operation not supported
root@mx28evk ~$ ip link set can0 type can bitrate 125000
RTNETLINK answers: Operation not supported
root@mx28evk ~$ ip link set can0 type can bitrate 125000
RTNETLINK answers: Operation not supported
root@mx28evk ~$ ip link set can0 type can bitrate 125000
RTNETLINK answers: Operation not supported
root@mx28evk ~$ echo 125000 > /sys/devices/platform/FlexCAN.0/bitrate
root@mx28evk ~$ cat /sys/devices/platform/FlexCAN.0/bitrate
500000
root@mx28evk ~$
please help me to resolve this issue and how to resolve RTNETLINK issue. I think something I am missing in enabling some driver part (RTLINK)
Please try attached patch.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear Victor,
How to add this patch with my main-line Linux 2.6.35. Please help me on this...
Thanks,
Karthik
Dear Victor,
How to add this patch with my main-line Linux 2.6.35. Please help me on this...
Dear Victor,
Attachment is missing. Could you please attach the patch