#pre-up ip link set $IFACE type can bitrate 125000 listen-only off These packages are available for selection from the RidgeRun SDK in the configuration menu.Įdit your /etc/networking/interfaces on the target file system and add the following rules (required to setup the bit-rate of the bus): The socketcan package is optional and provide you with tools to debug your can bus. Working with the CAN bus requires enabling the 'ip' tools from iproute2 package (the 'ip' tool from busybox won't work). In the case of the OMAP3x platform with a MCP2515 chip the configuration is: Platform CAN drivers with Netlink support In the case of the AM35x platform the configuration is:
If you are new to CAN, please spend 15 minutes reading the CAN bus protocol technical overview.Įnable the CAN controller kernel driver AM35x kernel In addition, steps to exchange data with a MCP2515 Bus Monitor board is also documented.
This article explains how to enable the CAN bus using as examples the AM35x EVM and OMAP35x, but can be applied to other platforms as well.