]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
Minor driver readme install instructions update for recent GNU/Linux distributions.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 2 Dec 2013 23:43:36 +0000 (00:43 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 2 Dec 2013 23:43:36 +0000 (00:43 +0100)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
lincan/README

index dcb7b945655da975aa9254663c85d1151512a0fd..eee58429bba343171e9c4000e5d3dc363bfb2b35 100644 (file)
@@ -199,24 +199,40 @@ INSTALLATION
 ============
 Type 'make install' for standard make system compilation.
 The driver should be copied into actual kernel version
 ============
 Type 'make install' for standard make system compilation.
 The driver should be copied into actual kernel version
-modules directory "/lib/modules/x.y.z/kernel/drivers/char".
+modules directory "/lib/modules/x.y.z/extra".
 
 OMK system requires manual copy of files from "_compiled" tree
 
 OMK system requires manual copy of files from "_compiled" tree
-to its final destinations.
+to its final destinations. Just compiled driver can be
+tested directly from LinCAN build directory (i.e. example
+for PC/104 PCM3680 board)
 
 
-Create file "lincan.rules" with contents listed below in or linked
-into "/etc/udev/rules.d" directory to enable automatic device nodes
-creation for UDEV based system
+  insmod _compiled/modules/lincan.ko hw=pcm3680 io=0x200 irq=7,11
+
+Driver can be copied into system final location after testing
+
+  mkdir /lib/modules/$(uname -r)/extra
+  cp _compiled/modules/lincan.ko /lib/modules/$(uname -r)/extra
+  chown root:root /lib/modules/$(uname -r)/extra/lincan.ko
+  depmod -a
+
+Right to access the driver for non-root users can be granted by
+generation of "10-lincan.rules" in the UDEV configuration directory
+"/etc/udev/rules.d"
 
   # LinCAN driver
   SUBSYSTEM=="can",GROUP="users",MODE="0660"
 
 
   # LinCAN driver
   SUBSYSTEM=="can",GROUP="users",MODE="0660"
 
-The driver automatic loding can be requested by addition of "lincan"
-line into "/etc/modules" od Debian based systems.
+The driver automatic loading of the driver can be requested by addition
+of "lincan" line into "/etc/modules" for Debian based systems. The module
+parameters can be specified in the same file after "lincan" driver name
+or in separate file in "/etc/modprobe.d" directory (i.e.)
+
+  echo >/etc/modprobe.d/lincan.conf \
+     options lincan processlocal=2 hw=pcm3680 io=0x200 irq=7,11
 
 
-The target hardware/board specific options should be added into
-"/etc/modprobe.conf" file or file with similar functionality for your
-distribution. The options are discusses in the next paragraph.
+This files location can vary between distributions.
+The LinCAN driver options are discusses in more details in
+the next paragraph.
 
 LOADING
 =======
 
 LOADING
 =======