2021-10-27 11:54:15 +02:00
|
|
|
# Linux driver
|
2017-07-31 11:21:30 -04:00
|
|
|
Installs the panda linux kernel driver using DKMS.
|
|
|
|
|
|
|
|
|
|
This will allow the panda to work with tools such as `can-utils`
|
|
|
|
|
|
2021-10-27 11:54:15 +02:00
|
|
|
## Prerequisites
|
2017-11-12 22:36:20 -05:00
|
|
|
- `apt-get install dkms gcc linux-headers-$(uname -r) make sudo`
|
2017-07-31 11:21:30 -04:00
|
|
|
|
2021-10-27 11:54:15 +02:00
|
|
|
## Installation
|
2017-11-12 22:36:20 -05:00
|
|
|
- `make link` (only needed the first time. It will report an error on subsequent attempts to link)
|
|
|
|
|
- `make all`
|
|
|
|
|
- `make install`
|
2017-07-31 11:21:30 -04:00
|
|
|
|
2021-10-27 11:54:15 +02:00
|
|
|
## Uninstall
|
2017-11-12 22:36:20 -05:00
|
|
|
- `make uninstall`
|
2017-07-31 11:21:30 -04:00
|
|
|
|
2021-10-27 11:54:15 +02:00
|
|
|
## Usage
|
2017-07-31 11:21:30 -04:00
|
|
|
|
2017-11-12 22:36:20 -05:00
|
|
|
You will need to bring it up using `sudo ifconfig can0 up` or
|
|
|
|
|
`sudo ip link set dev can0 up`, depending on your platform.
|
2021-03-31 18:40:15 -07:00
|
|
|
|
|
|
|
|
Note that you may have to setup udev rules for Linux
|
|
|
|
|
``` bash
|
|
|
|
|
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
|
2022-08-23 22:09:58 -05:00
|
|
|
sudo udevadm control --reload-rules && sudo udevadm trigger
|
2021-03-31 18:40:15 -07:00
|
|
|
```
|