Installation guide

Linux Installation
CAN-API Installation
Manual • Doc. No.: C.2001.21 / Rev. 3.0 •
© 2000-2007 esd gmbh
Page 59 of 112
4.1.1 Linux Driver Installation (from V3.x.x on, except EtherCAN)
Note:
- On most Linux installations the driver installation is only possible with superuser rights.
- Please read the current
README
file that comes with the software!
- Please note the drivers delivered on the CD are most likely outdated. The increasing speed in
Linux kernel development makes it almost impossible for us to provide you with drivers on CD,
which work with all Linux versions and distributions. Thus we installed a download site on our
website. In order to circumvent any problems before they occur, we advise you to visit this site
before actually installing a driver from this CD.
The latest driver archives can be found here: "http://www.esd-electronics.com/german/candriver"
- Please note: In order to provide the Linux CAN-drivers from our website, we needed to change
the archive format to encrypted ZIP.
The password can be received from our CAN-CD or via email from our support.
4.1.1.1 Files of the Linux Package
The software drivers for Linux are distributed on CD-ROM or delivered as archive via e-mail. The
following files are contained:
File Description
README
current notes and information
Makefile
driver compilation rules
config.mk
configuration file for the compile process
It may be necessary to edit this file, in order to suit any peculiarities of the
current system (mainly the
KERNELPATH
, see page 64 )
libntcan.a
static CAN-API library (located in directory
./lib
*)
)
libntcan.so
dynamic CAN-API library (located in directory
./lib
*)
)
ntcan.h
header of the NTCAN-API/Library (located in directory
./lib
*)
)
This is the only header that has to be include in the application. Please do
not use any defines located in any of the other headers, in order to keep
your applications working with future version of the driver!
cantest.c
source code of the example-application ‘cantest’ (located in subdirectory
./example
) (see CAN-API manual part 1 [1])
cantest
binary of example-program ‘cantest’ (located in subdirectory
./bin
*)
)