diff options
author | Reinhard Arlt <reinhard.arlt@t-online.de> | 2013-06-28 10:32:25 +0200 |
---|---|---|
committer | Reinhard Arlt <reinhard.arlt@t-online.de> | 2013-06-28 10:32:25 +0200 |
commit | 3c091bc270d71ce8c600078d5fde5854605c2436 (patch) | |
tree | 28f81df21c17881604afbf20bd9a1df7f4a81ae3 /gpsinit | |
parent | 36bc43a17b0854e534f36fc042c0b8abb1c6bd17 (diff) | |
download | gpsd-3c091bc270d71ce8c600078d5fde5854605c2436.tar.gz |
Add support for 8devices usb2can module.
Diffstat (limited to 'gpsinit')
-rwxr-xr-x | gpsinit | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -26,7 +26,7 @@ usage() echo " = Needed for some slcan modules only."; echo " -v = Print version of this script and exit."; echo " -h = Print this help message and exit."; - echo " can_module_name = One out of plx_pci, esd_usb2, vcan, slcan, beaglebone."; + echo " can_module_name = One out of plx_pci, esd_usb2, usb_8dev, vcan, slcan, beaglebone."; echo " interface_name = The interface, the SLCAN module is connected to, i.e. /dev/ttyS0 or /dev/ttyUSB0."; echo " = Needed for the slcan module only. The default is /dev/ttyUSB0."; echo "Root permissions are needed for the first calling option (Enforced by socketCAN subsystem)."; @@ -58,6 +58,11 @@ esd_usb2) modprobe esd_usb2; ip link set can${net} type can tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1; ip link set can${net} up;; +usb_8dev) + # For an 8devices usb2can CAN interface + modprobe usb_8dev; + ip link set can${net} type can tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1; + ip link set can${net} up;; vcan) # With this setup, CAN frames can be injected into vcan0 by a test modprobe vcan; |