panda/drivers/linux
vanillagorillaa 729b4db369
Fix linux can-utils bus numbering (#637)
2021-03-31 18:40:15 -07:00
..
test software interface 2017-06-25 23:01:41 -07:00
.gitignore software interface 2017-06-25 23:01:41 -07:00
Makefile Add DKMS support 2017-07-31 11:21:30 -04:00
README.md Fix linux can-utils bus numbering (#637) 2021-03-31 18:40:15 -07:00
dkms.conf Add DKMS support 2017-07-31 11:21:30 -04:00
panda.c Fix linux can-utils bus numbering (#637) 2021-03-31 18:40:15 -07:00

README.md

Installs the panda linux kernel driver using DKMS.

This will allow the panda to work with tools such as can-utils

prerequisites:

  • apt-get install dkms gcc linux-headers-$(uname -r) make sudo

installation:

  • make link (only needed the first time. It will report an error on subsequent attempts to link)
  • make all
  • make install

uninstall:

  • make uninstall

usage:

You will need to bring it up using sudo ifconfig can0 up or sudo ip link set dev can0 up, depending on your platform.

Note that you may have to setup udev rules for Linux

sudo tee /etc/udev/rules.d/11-panda.rules <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddcc", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddee", MODE="0666"
EOF
sudo udevadm control --reload-rules && sudo udevadm trigger`