From d33757f945ce0ca4556780f3634d7a35b8d8d58d Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 3 Dec 2013 00:43:36 +0100 Subject: [PATCH] Minor driver readme install instructions update for recent GNU/Linux distributions. Signed-off-by: Pavel Pisa --- lincan/README | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/lincan/README b/lincan/README index dcb7b94..eee5842 100644 --- a/lincan/README +++ b/lincan/README @@ -199,24 +199,40 @@ INSTALLATION ============ 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 -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" -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 ======= -- 2.39.2