Installing the Exar USB Driver on the RaspberryPi for Teknic SC Hub
Sep 5, 2018 · 2 min read
This is a simple edit of Teknic’s guide to install the driver on the BeagleBone.

Steps from computer:
- Download and extract the Linux_Software.tar file from the (https://www.teknic.com/downloads/) under ClearPath >> Software >> ClearPath-SC.
- Inside you should find a hubDriverPkg.tar file. Extract this file.
- Copy the ExarKernelDriver folder to your RaspberryPi. In a terminal, navigate to the directory which contains the ExarKernelDriver directory. Run the following command:
scp -r ExarKernelDriver <username>@<hostname>:~
Where<username>is the username on the RaspberryPi (e.g. pi) and<hostname>is the hostname (e.g. raspberrypi.local) or IP address of the RaspberryPi. The~specifies that the folder will be copied to the home directory on the remote host.
NOTE: If you don’t have SSH enabled, follow this guide: https://www.raspberrypi.org/documentation/remote-access/ssh/
Following steps running on the RaspberryPi (via SSH or directly)
- Install necessary headers to compile the driver:
1.1sudo apt-get update
1.2sudo apt-get install --reinstall raspberrypi-kernel
1.3sudo reboot
1.4 (after reboot, of course)sudo apt-get install raspberrypi-kernel-headers raspberrypi-kernel - Compile the driver for your system.
cd ~/ExarKernelDrivermake - Install the driver.
sudo ./install_drvr
You may get errors that look like the following:rmmod: ERROR: Module xr_usb_serial_common is not currently loadedThese can be safely ignored if the USB driver works.
rmmod: ERROR: Module cdc_acm is not currently loaded - Test the driver
4.1 Using a USB A-to-B cable, plug the RaspberryPi into the SC-Hub.
4.2 Power on the SC-Hub.
4.3 Run the following command:ls /dev/* | grep XRUSB
If the following output (or similar) is displayed, the driver is working:/dev/ttyXRUSB0
4.4 The output of the previous command is the device ID or “port number” to pass to sFoundation programs (often as a command line argument or a constant). - To make the driver load on boot run these steps:
cd ~/ExarKernelDriversudo make modules_installsudo depmod -a
