
34
(c) Spectrum Instrumentation GmbH
Linux
Software Driver Installation
For M2i and M3i cards:
For M4i, M4x and M2p cards:
Stop the driver
You can unload the kernel driver using the „modprobe -r“ command (as root or using sudo):
For M2i and M3i cards:
For M4i, M4x and M2p cards:
Standard Driver Update
A driver update is done with the same commands as shown above. Please make sure that the driver has been stopped before updating it.
To stop the driver you may use the proper “modprobe -r” command as shown above.
Compilation of kernel driver sources (optional and local cards only)
The driver sources are only available for existing customers upon special request. Please send an email to [email protected] to receive the
kernel driver sources. The driver sources are not part of the standard delivery. The driver source package contains only the sources of the
kernel module, not the sources of the library.
Please do the following steps for compilation and installation of the kernel driver module:
Login as root
It is necessary to have the root rights for installing a driver.
Call the compile script
The compile script depends on the type of card that you have installed:
• for M2i and M3i cards: make_spcm_linux_kerneldrv.sh
• for M4i, M4x and M2p cards: make_spcm4_linux_kerneldrv.sh
This script will examine the type of system you use and compile the kernel with the correct settings. The compilation of the kernel driver modules
requires the kernel sources of the running kernel. These are normally available as a package with a name like kernel-devel, kernel-dev, kernel-
source and need to match the running kernel.
The compiled driver module will be copied to the module directory of the kernel (
/lib/modules/$(uname -r)/kernel/drivers/
),
and will be loaded automatically at the next boot. To load or unload the kernel driver module manually use the modprobe command as
explained above in “Start the driver” and “Stop the driver”.
Update of a self compiled kernel driver
If the kernel driver has changed, one simply has to perform the same steps as shown above and recompile the kernel driver module. However
the kernel driver module isn’t changed very often.
Normally an update only needs new libraries. To update the libraries only you can either download the full Linux driver (spcm_linux
-
_drv_v123b4567) and only use the libraries out of this or one downloads the library package which is much smaller and doesn’t contain the
pre-compiled kernel driver module (spcm_linux_lib_v123b4567).
The update is done with a dedicated script which only updates the library file. This script is present in both driver archives:
cat /proc/spcm_cards
cat /proc/spcm4_cards
modprobe -r spcm
modprobe -r spcm4
sh install_libonly.sh
Summary of Contents for M2p.59 Series
Page 190: ......