Hello,
I have been attempting to set up the CAN interface on my 3517 SOM-M2. I found the http://processors.wiki.ti.com/index.php/Sitara_AM35x_CAN_%28HECC%29_Linux_Driver resource page and have successfully cross-compiled the cansend/candump utilities. However, as I understand it, for these to work the can interface must be initialized using the 'ip' utility. I checked the version of 'ip' included in the PSP and it matches the one given on the resource page, however, I am unable to properly setup the interface.
I can run 'ip link set can0 type can' fine without errors. However, if I try to add more flags, such as in 'ip link set can0 type can bitrate 125000 triple-sampling on' as specified in the resource page I get the following error: Garbage instead of arguments "bitrate ...". Try "ip link help".
Do I need to compile a different version of ip to get the other can paramaters set? Any help would be appreciated.
Edit: Also, I noticed that my u-boot startup text does not display the HECC lines as shown in the page linked above. Is the HECC not enabled by default in u-boot and could that be the problem? If so, how would I go about enabling it in u-boot? I am using a version of u-boot compiled from the PSP with the ETK lines muxed to GPIO. That is the only change I have made. I have also double checked to ensure that the CAN interface is included in the Linux kernel.
Thanks!