0

I have a beaglebone black running lastet official debian. I've added a custom cape to /etc/default/capemgr:

CAPE=BB-DCAN1

I also added these lines to /etc/network/interfaces:

auto can0
iface can0 can static
    bitrate 1000000

and executing ifup -a after booting works just fine. Can anyone explain how to bring can0 up at startup?

2 Answers2

0

In general, to execute a command at startup, you can simply append the command in the .bashrc file. In your case, you can simply append ifup -a in the ~/.bashrc file.

Thomas Hsieh
  • 731
  • 1
  • 6
  • 26
0
auto can0
iface can0 can static
   bitrate 1000000

I have the same thing in my interfaces file, it only differs by bitrate (500000). If your dtsi isn't setup right, that may effect whether can0 can be provisioned at start up. My can0 comes up automatically with no problems.

Bryan Wilcutt
  • 335
  • 2
  • 9