Installation guide
Linux Installation
Manual • Doc. No.: C.2001.21 / Rev. 3.0 •
© 2000-2007 esd gmbh
CAN-API Installation
Page 66 of 112
4. Make the ‘inodes’ (as Superuser)
cd /dev
mknod --mode=a+rw can0 c xx 0
mknod --mode=a+rw can1 c xx 1
==> as many as physical CAN nets provided
by the modules
with
xx
= major number of the driver (see table on page 62)
5. Load the Driver File (as Superuser)
Syntax:
insmod ./esdcan-crd-os-arch-kver [major=m]
with the following optional parameter:
m
= non-default major
The naming of the kernel module is equivalent to the naming of the driver archive as printed
on page 62 (exception: kernel 2.6.x).
Note:
With the module CAN-PCI/405 this call returns after approx. 5 seconds!
6. Checking the Installation
Whether the installation has been successful or not, can be checked in the following file:
/var/log/messages
kernel: esd CAN driver: pci405
kernel: esd CAN driver: baudrate not set
kernel: esd CAN driver: mode=0x00000000, major=53, 4 nodes on 1 cards
kernel: esd CAN driver: version 0.3.1 14:36:35 Feb 13 2003: successfully
loaded
After a successful installation, the CAN bus can be accessed by means of the NTCAN-API.
The application has to be linked to the library
libntcan.a
(static) or
libntcan.so
(shared).
Note: esd
strongly recommends usage of the shared library!
If the example application
cantest
is called, the available CAN nets are displayed.
7. Unload the Driver File (as Superuser)
Kernel 2.4.x:
rmmod esdcan-crd-os-arch-kver
Kernel 2.6.x:
rmmod esdcan-crd.ko










