Posted inanalog3 BeagleBone CAN
BeagleBone Green: Enable CAN on Startup
Three steps: Enable CAN overlay by configuring cape manager Configure network interface Install startup program 1. Enable CAN overlay Add following line in /etc/default/capemgr CAPE=BB-DCAN1 2. Configure network interface Add following lines in /etc/network/interfaces auto can0 iface can0 inet manual pre-up /sbin/ip link set $IFACE type can bitrate 1000000 listen-only off up /sbin/ifconfig $IFACE up down /sbin/ifconfig $IFACE down 3. Install startup program Setting the CAN interface to /etc/network/interface does not enable the CAN interface on startup for some reason. In order to workaround this problem, I installed a startup program as follows. Following link was helpful: Running a script on Beaglebone Black boot/ startup The startup script to run…