This repo contains the Thunderscope Linux driver and litepcie library and test application. This driver comes from the LitePCIe LiteX core project, with some Thunderscope-specific modifications and optimizations.
This driver may be manually built and installed using the provided makefile. The module will build locally and then can be loaded to the kernel using insmod.
> cd kernel/
> makeBefore connecting the Thunderscope, install the driver and the udev rules.
> sudo make install
> sudo make udev-installYou may remove the driver with rmmod.
> sudo rmmod thunderscopeKernel modules can be managed with dkms. This will automatically rebuild sources for a kernel driver if a new kernel version is installed.
Prerequisite: Install dkms from your system's package manager.
To install the kernel module using DKMS:
> cd kernel/
> sudo dkms add .
> sudo dkms build -m thunderscope -v 1.0
> sudo dkms install -m thunderscope -v 1.0If using dkms, you will need to copy the udev rules file to the appropriate directory. This should be done manually, using the make udev-install target, or configuring the package (.deb, .rpm, aur, etc.) to do so.
> sudo cp kernel/70-thunderscope.rules /etc/udev/rules.d/
> udevadm control --reload-rules && udevadm triggerTo remove the module from DKMS:
> sudo dkms remove -m thunderscope -v 1.0 --all