From 59378306fdba288c0cdb4257f0375e4f3eb141d6 Mon Sep 17 00:00:00 2001 From: pisa Date: Tue, 3 Dec 2013 00:24:09 +0100 Subject: [PATCH] Include instructions for LinCAN driver instalation. --- lincan/index.mdwn | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/lincan/index.mdwn b/lincan/index.mdwn index 97b5b3b..c013d03 100644 --- a/lincan/index.mdwn +++ b/lincan/index.mdwn @@ -52,3 +52,36 @@ is required then cross-compiler binaries have to be specified CXX=powerpc-linux-gnu-g++ AR=powerpc-linux-gnu-ar LD=powerpc-linux-gnu-ld + +## LinCAN installation and use + +Driver can be load into kernel directly from build directory. +Example for pcm3680 PC/104 card + + insmod _compiled/modules/lincan.ko hw=pcm3680 io=0x200 irq=7,11 + +The board is non-plug and play and that is why all parameters has +to be specified. Only board hardware type (i.e. hw=pcican-q) and +zero/automatic I/O address are required (io=0) for PCI and other +PnP cards. The boar hardware identifiers and corresponding io locations +are separated by comma in the case of multiple boards used. + +The driver can be installed into system + + 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 + +and then load by modprobe + + modprobe lincan hw=pcm3680 io=0x200 irq=7,11 + +or setup to autoload after boot (configuration style for Debian based system) + + echo "lincan hw=pcm3680 io=0x200 irq=7,11" >/etc/modules + +Next line grants CAN driver access to the all regular system users +included in users group + + echo 'SUBSYSTEM=="can",GROUP="users",MODE="0660"' >/etc/udev/rules.d/10-lincan.rules -- 2.39.2