Installing RTAI and Comedi on Ubuntu Hardy

This set of notes outlines the steps I used to build RTAI and Comedi from source on Ubuntu Hardy. They are adapted from a set of notes by Arno Stienen https://www.rtai.org/RTAILAB/RTAI-UbuntuGutsy-Matlab.txt.

Will Dickson 06/10/2008

Installation prep:

Build test kernel before applying the rtai patch

Patch kernel w/ rtai patch and rebuild

Build rtai w/o comedi support

unpack

configure and build

run rtai testsuite

Build Comedilib

unpack

configure, build and install

Build Comedi calibrations routines

unpack

configure, build and install

Build Comedi kernel modules

unpack

configure, build and install

copy install script to comedi directory

create deb

Rebuild rtai w/ comedi support

Set create udev rules entry for comedi devices

Note, this insures the /dev/comedix devices are created when the comedi modules are loaded. The script 40-comedi.rules can be found in realtime_setup/40-comedi.rules.

Test installation

installing comedi and ni_pcimio modules=

install modules

Check that comedi devices get created

remove modules

Test installing comdei w/kcomedilib

install modules

Check that comedi devices get created

remove modules

Note, I also created two scripts which basically perform the above actions. They can be found in the realtime_setup/scripts/ directory: rt-comedi and rt-kcomedi. They are used as follows

Using rt-kcomedi is similar. These scripts can be install using the install-scripts function found in realtime_setup/scripts directory.


Motor Control Software: motor-ctl

Installation prep

install the following python packages: numpy, scipy, matplotlib, ipython, setuptools, pkg-resources

Install realtime driver and shared memory library

get mercurial repository

install

test

Install python modules

Set locked memory limits

add these lines or something like them to /etc/security/limits.conf

Test

Installing RTAI and Comedi on Ubuntu Hardy (last edited 2008-06-25 01:48:17 by dicksonwill)