doc/copcican_comedi_howto.txt
changeset 630 96919642e99c
parent 629 b9274b595650
equal deleted inserted replaced
629:b9274b595650 630:96919642e99c
       
     1 HOW TO configure CanFestival for a CO-PCICAN card for COMEDI in the kernel (optionally with Xenomai):
       
     2 
       
     3 
       
     4 
       
     5 pre-actions:
       
     6 - install the CO-PCICAN card
       
     7 - install and load COMEDI and the corresponding driver co_pcican.ko
       
     8   (COMEDI sources are expected in /usr/src/comedi)
       
     9 
       
    10 - optionally: install the Xenomai package
       
    11   (Xenomai sources are expected in /usr/xenomai)
       
    12 
       
    13 
       
    14 
       
    15 - unpack the package to your target (if not already done)
       
    16 
       
    17 - perform package configuration:
       
    18   sh ./configure --can=copcican_comedi --timers=kernel --kerneldir='/lib/modules/$(shell uname -r)/build'
       
    19 
       
    20   optionally: use --timers=kernel_xeno for the realtime Xenomai timer functions
       
    21 
       
    22 - patch the sed "s:-I:-I$(src)/:g" statement to
       
    23     's:-I../..:-I/canopeninstalldir:g' in drivers/unix/Makefile
       
    24     's:-I..:-I/canopeninstalldir:g'    in src/Makefile
       
    25   The original statement did not run on my computer !
       
    26 
       
    27 - build the CanFestival Unix library:
       
    28   cd drivers/unix
       
    29   make
       
    30 
       
    31 - build the CanFestival library:
       
    32   cd src
       
    33   make
       
    34   make install
       
    35 
       
    36 - build the CO-PCICAN driver interface:
       
    37   cd drivers/can_copcican_comedi
       
    38   make
       
    39   make install
       
    40 
       
    41 - build the example application (not for Xenomai):
       
    42   cd examples/test_copcican_comedi
       
    43   make
       
    44   make install
       
    45 
       
    46 Run test_copcican_comedi with the insert.sh script to see it works...
       
    47 
       
    48 For Xenomai please use the example /usr/src/scale-rt-canopendemo of the SCALE-RT distribution.
       
    49 
       
    50 
       
    51 
       
    52 Copyright (C) 2010 Cosateq GmbH & Co.KG
       
    53               http://www.cosateq.com/
       
    54               http://www.scale-rt.com/
       
    55