![Tews Technologies TDRV006-SW-82 User Manual Download Page 5](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641005.webp)
TDRV006-SW-82 - Linux Device Driver
Page 5 of 31
2 Installation
Following files are located on the distribution media:
Directory path ‘TDRV006-SW-82’:
TDRV006-SW-82-2.0.1.pdf
This manual in PDF format
TDRV006-SW-82-SRC.tar.gz
GZIP compressed archive with driver source code
ChangeLog.txt
Release history
Release.txt
Release information
For installation the files have to be copied to the desired target directory.
The GZIP compressed archive TDRV006-SW-82-SRC.tar.gz contains the following files and
directories:
Directory path ‘tdrv006’:
tdrv006.c
Driver source code
tdrv006def.h
Driver include file
tdrv006.h
Driver include file for application program
makenode
Script to create device nodes on the file system
Makefile
Device driver make file
api/tdrv006api.c
API source file
api/tdrv006api.h
API include file
example/tdrv006exa.c
Example application
example/Makefile
Example application make file
include/config.h
Driver independent configuration header file
include/tpmodule.h
Driver and kernel independent library header file
include/tpmodule.c
Driver and kernel independent library source file
include/tpxxxhwdep.h
HAL library header file
include/tpxxxhwdep.c
HAL library source file
COPYING
Copy of the GNU Public License (GPL)
In order to perform an installation, extract all files of the archive TDRV006-SW-82-SRC.tar.gz to the
desired target directory. The command ‘tar -xzvf TDRV006-SW-82-SRC.tar.gz’ will extract the files into
the local directory.
Login as
root
and change to the target directory
Copy tdrv006.h and api/tdrv006api.h to
/usr/include
Build and install the Device Driver
2.1
Login as
root
Change to the target directory
To create and install the driver in the module directory
/lib/modules/<version>/misc
enter:
# make install
To update the device driver’s module dependencies, enter:
#
depmod -aq