Last active
October 29, 2018 19:58
-
-
Save nnarain/753e14e0cadf16163b72d9233f3af520 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