Installing the Exar USB Driver on the RaspberryPi for Teknic SC Hub

J Canyelles
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:

  1. Download and extract the Linux_Software.tar file from the (https://www.teknic.com/downloads/) under ClearPath >> Software >> ClearPath-SC.
  2. Inside you should find a hubDriverPkg.tar file. Extract this file.
  3. 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)

  1. Install necessary headers to compile the driver:
    1.1 sudo apt-get update
    1.2 sudo apt-get install --reinstall raspberrypi-kernel
    1.3 sudo reboot
    1.4 (after reboot, of course)sudo apt-get install raspberrypi-kernel-headers raspberrypi-kernel
  2. Compile the driver for your system.
    cd ~/ExarKernelDriver
    make
  3. 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 loaded
    rmmod: ERROR: Module cdc_acm is not currently loaded
    These can be safely ignored if the USB driver works.
  4. 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).
  5. To make the driver load on boot run these steps:
    cd ~/ExarKernelDriver
    sudo make modules_install
    sudo depmod -a

J Canyelles

Written by

Music & tech enthusiast.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade