edouard@629: HOW TO configure CanFestival for a CO-PCICAN card for COMEDI in the kernel (optionally with Xenomai): edouard@629: edouard@629: edouard@629: edouard@629: pre-actions: edouard@629: - install the CO-PCICAN card edouard@629: - install and load COMEDI and the corresponding driver co_pcican.ko edouard@629: (COMEDI sources are expected in /usr/src/comedi) edouard@629: edouard@629: - optionally: install the Xenomai package edouard@629: (Xenomai sources are expected in /usr/xenomai) edouard@629: edouard@629: edouard@629: edouard@629: - unpack the package to your target (if not already done) edouard@629: edouard@629: - perform package configuration: edouard@629: sh ./configure --can=copcican_comedi --timers=kernel --kerneldir='/lib/modules/$(shell uname -r)/build' edouard@629: edouard@629: optionally: use --timers=kernel_xeno for the realtime Xenomai timer functions edouard@629: edouard@629: - patch the sed "s:-I:-I$(src)/:g" statement to edouard@629: 's:-I../..:-I/canopeninstalldir:g' in drivers/unix/Makefile edouard@629: 's:-I..:-I/canopeninstalldir:g' in src/Makefile edouard@629: The original statement did not run on my computer ! edouard@629: edouard@629: - build the CanFestival Unix library: edouard@629: cd drivers/unix edouard@629: make edouard@629: edouard@629: - build the CanFestival library: edouard@629: cd src edouard@629: make edouard@629: make install edouard@629: edouard@629: - build the CO-PCICAN driver interface: edouard@629: cd drivers/can_copcican_comedi edouard@629: make edouard@629: make install edouard@629: edouard@629: - build the example application (not for Xenomai): edouard@629: cd examples/test_copcican_comedi edouard@629: make edouard@629: make install edouard@629: edouard@629: Run test_copcican_comedi with the insert.sh script to see it works... edouard@629: edouard@629: For Xenomai please use the example /usr/src/scale-rt-canopendemo of the SCALE-RT distribution. edouard@629: edouard@629: edouard@629: edouard@629: Copyright (C) 2010 Cosateq GmbH & Co.KG edouard@629: http://www.cosateq.com/ edouard@629: http://www.scale-rt.com/ edouard@629: