-
-
Save shekkbuilder/72692e9d5aa2b325090a6363abca4c8b to your computer and use it in GitHub Desktop.
setup virtual can bus linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install can-utils | |
git clone https://github.com/linux-can/can-utils.git | |
cd can-utils | |
./autogen.sh | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bring up a virtual can bus device | |
modprobe can | |
modprobe can_raw | |
modprobe vcan | |
ip link add dev vcan0 type vcan | |
ip link set up vcan0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment