Installation of RTAI and Comedi

Pierre F. Fogal pfogal at du.edu
Wed Jun 2 02:13:52 CEST 2004


Roberto,

Okay, thanks for the verification and explanation! Thanks also for the 
reminder to insmod the appropriate modules.... its just the kind of thing 
that would leave me scratching my head for hours!

Best regards,
Pierre

On Friday 28 May 2004 22:51, Roberto Bucher wrote:
> Hi Pierre
>
> You did the right steps. I found the same problem with the comedilib.h
> file, which give some problems by compiling RTAI with the COMEDI add-on.
>
> The problem with the modules dependencies depends (sorry...) on the fact
> that RTAI since version 3.0 install all the file in the /usr/realtime
> directory (inclusive all the rtai modules). When you compile and install
> the comedi drivers, the configure routine finds that you have RTAI Adeos
> installed and compiles the drivers with this option. By installing, depmod
> look for the RTAI modules in the/lib/modules/2.4.25-adeos directory and
> doesn't find them. One possibility is to copy (NOT MOVE!)  rtai_hal.h and
> rtai_lxrt.h from /usr/realtime/modules to /lib/modules/2.4.25-adeos, in
> order to find all the rigth dependencies, and rerun the "depmod" command.
>
> Don't forget to "insmod" kcomedilib and rtai_comedi_lxrt before working
> with COMEDI drivers.
>
> Roberto
>
> On Saturday 29 May 2004 05:12, Pierre F. Fogal wrote:
> > Hi,
> >
> > I'm a new comer to RTAI and programming hardware under Linux.  I've been
> > attempting to set up a RTAI/Comedi system to do data acquistion for a
> > Fourier Transform Spectrometer.  It's been a bit of a difficult process,
> > but it looks like maybe I've got it working.  This is what I've done, and
> > since some of the steps were not what I would have expected from reading
> > the documentation, I'm hoping some one will set me straight if I've gone
> > wrong, before I get into some serious trouble. What follows is a cleaned
> > up version of what I did.
> >
> > So, I downloaded the Kilauea branch of RTAI, the CVS version of Comedi,
> > and vanilla 2.4.25 kernel source. I applied the ADEOS patches to the
> > kernel, and it compiled without incidence. I told Grub where to find it,
> > and the kernel booted and seemed to have configured Adeos support
> > correctly, based on statements reported via dmesg.
> >
> > I then configure RTAI in a build directory using the default options, but
> > changing from 2 processors to 1, followed by make and make install. This
> > seems to go alright. RTAI is installed in /usr/realtime, and running the
> > latency prog from the testsuite returns reasonable looking numbers.
> >
> > I go to the comedi directory and run autogen.sh using appropriate
> > linux-dir and rtai-dir values and it builds okay, but make install yields
> > a bunch of unresolved dependency issues.  I spent some time reading the
> > RTAI archives, and that seemed to suggest that there should be RTAI
> > modules
> > in /lib/modules/2.4.25-adeos, but I don't see any.  I make  a bit of a
> > leap here and create a directory named rtai, and copy the modules over
> > from /usr/realtime/modules.  make install now does the trick for comedi. 
> > I follow this by building comedilib as well.
> >
> > This is followed by a return to the kilauea build directory, where I run
> > make menuconfig and enable rtai-addons for the comedi and serial port
> > options. The build proceeds, but stops with messages relating to
> > kcomedi_km.c where various variables are flagged with: initializer
> > element is not constant. Somewhere along the way, I had read about
> > replacing /usr/local/include/linux/comedilib.h with the comedilib.h that
> > came with comedi.  I did so, and issued a make.  Compilation completed
> > with no problems. Make install (always as root) again did not install the
> > modules into /lib/modules/2.4.25-adeos, so again I copied them over.
> >
> > Well, it seems to work.  Is this how it should have proceeded, or have I
> > missed the boat somewhere?  All comments welcome!
> >
> > Best,
> > Pierre

-- 
Pierre F. Fogal,  Ph.D.
Research Physicist
Dept. of Physics & Astronomy
University of Denver
Denver, CO 80210
(303) 871 3523





More information about the Rtai mailing list