![Tews Technologies TDRV006-SW-82 User Manual Download Page 6](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641006.webp)
TDRV006-SW-82 - Linux Device Driver
Page 6 of 31
Uninstall the Device Driver
2.2
Login as
root
Change to the target directory
To remove the driver from the module directory
/lib/modules/<version>/misc
enter:
# make uninstall
Install Device Driver into the running Kernel
2.3
To load the device driver into the running kernel, login as root and execute the following
commands:
# modprobe tdrv006drv
After the first build or if you are using dynamic major device allocation it is necessary to create
new device nodes on the file system. Please execute the script file
makenode
to do this. If your
kernel has enabled a device file system (devfs or sysfs with udev) then you have to skip
running the
makenode
script. Instead of creating device nodes from the script the driver itself
takes creating and destroying of device nodes in its responsibility.
# sh makenode
On success the device driver will create a minor device for each compatible channel found. The first
PMC module can be accessed with device node /dev/tdrv006_0, the second module with device node
/dev/tdrv006_1 and so on.
The assignment of device nodes to physical PMC modules depends on the search order of the PCI
bus driver.
Remove Device Driver from the running Kernel
2.4
To remove the device driver from the running kernel login as root and execute the following
command:
# modprobe -r tdrv006drv
If your kernel has enabled a device file system (devfs or sysfs with udev), all /dev/tdrv006_* nodes will
be automatically removed from your file system after this.
Be sure that the driver is not opened by any application program. If opened you will get the
response ``t
drv006drv: Device or resource busy``
and the driver will still remain in the system
until you close all opened files and execute
modprobe -r
again.