Re: comedi working only with Allsoft RTAI?

On Fri, 1 Nov 2002, Ivan Martinez wrote:

> In my case, using a 2.4 kernel doesn't make things "ok":
> https://cvs.comedi.org/pipermail/comedi/2002-October/003694.html
> Is there anybody that managed to install the latest Comedi with a 
> rthal-patched kernel at all?.
> Ivan Martinez
> 

As a test I installed RTAI-24.1.9 and applied the  patch-2.4.18-rthal5g
to a fresh 2.4.18 kernel.

After recompiling everything, rebooting etc. comedi-0.7.65 then
compiles and installed just fine.

I think the problem is due to RTAI-24.1.10 switching to loading that
allsoft_rtai.h and the use of RTAI defines that comedi may (at
least i havent figured out yet how) not know about.

I'm looking at the allsoft_rtai.h file and looking for a way
for comedi to use the right ifdef sections...other than 
hacking up the allsoft_rtai.h file.

Jim
 


> On Thursday 31 October 2002 11:14 pm, Jim Benson wrote:
> > I'm having these same problems with RTAI 24.1.10 and comedi.
> > I have been looking around in the rtai code and i see that:
> >
> > cat /usr/src/rtai-24.1.10/include/asm-i386/rtai.h
> >
> > #ifdef CONFIG_RTAI_LINUX22
> > #include <asm/rtai-22.h>
> > #else
> > #include <asm/allsoft_rtai.h>
> > #endif
> >
> > and
> >
> > cat /usr/src/rtai-24.1.9/include/asm-i386/rtai.h
> >
> > #ifdef CONFIG_RTAI_LINUX22
> > #include <asm/rtai-22.h>
> > #else
> > #include <asm/rtai-24.h>
> > #endif
> >
> > ...so doen't comedi include
> > the else part for both cases?...since it knows
> > nothing about RTAI defines (CONFIG_RTAI_LINUX22)...
> > ok unless one is using 2.2.
> >
> > But then in allsoft_rtai.h
> > there is:
> >
> > #ifdef CONFIG_RTAI_RTHAL
> >
> > #define HARD_CLI                 hard_cli
> > #define HARD_STI                 hard_sti
> > #define HARD_RESTORE_FLAGS       hard_restore_flags
> > #define HARD_SAVE_FLAGS          hard_save_flags
> > #define HARD_SAVE_FLAGS_AND_CLI  hard_save_flags_and_cli
> >
> > #else
> >
> > #define hard_cli                 HARD_CLI
> > #define hard_sti                 HARD_STI
> > #define hard_restore_flags       HARD_RESTORE_FLAGS
> > #define hard_save_flags          HARD_SAVE_FLAGS
> > #define hard_save_flags_and_cli  HARD_SAVE_FLAGS_AND_CLI
> >
> > #endif
> >
> > ...again it does the else...and cause warnings like:
> >
> > /usr/src/rtai/include/asm/allsoft_rtai.h:196: warning: `hard_cli'
> > redefined
> > /usr/src/linux-2.4.19/include/asm/system.h:321: warning: this is the
> > location of the previous definition
> >
> > and eventually the:
> > > depmod: *** Unresolved symbols in
> > > /lib/modules/2.4.19-rthal5/comedi/comedi/comedi.o
> > > depmod:         HARD_CLI
> > > depmod:         HARD_RESTORE_FLAGS
> > > depmod:         HARD_SAVE_FLAGS_AND_CLI
> >
> > ???
> >
> > Thanks,
> >
> > Jim
> >
> > On 30 Oct 2002, Axel von Arnim wrote:
> > > Hi,
> > >
> > >    I installed RTAI 24.1.10 rthal5 on my 2.4.19 kernel. No problem
> > > (well, after a number of kernel recompilations and gcc version
> > > changes...).
> > >   I configured comedi-0.7.65 so that it uses RTAI. After compilation and
> > > many warnings in /usr/src/rtai/include/asm/allsoft_rtai.h telling that
> > > HARD_CLI() and other HARD_... functions were implicitly declared, I had
> > > depmod error reports:
> > >
> > > /sbin/depmod -ae
> > > depmod: *** Unresolved symbols in
> > > /lib/modules/2.4.19-rthal5/comedi/comedi/comedi.o
> > > depmod:         HARD_CLI
> > > depmod:         HARD_RESTORE_FLAGS
> > > depmod:         HARD_SAVE_FLAGS_AND_CLI
> > > depmod:         HARD_STI
> > > depmod: *** Unresolved symbols in
> > > /lib/modules/2.4.19-rthal5/comedi/comedi/drivers/ni_pcimio.o
> > > depmod:         HARD_RESTORE_FLAGS
> > > depmod:         HARD_SAVE_FLAGS_AND_CLI
> > > depmod: *** Unresolved symbols in
> > > /lib/modules/2.4.19-rthal5/comedi/comedi/kcomedilib/kcomedilib.o
> > > depmod:         HARD_RESTORE_FLAGS
> > > depmod:         HARD_SAVE_FLAGS_AND_CLI
> > >
> > > I looked for the declarations of these functions in the rtai source code
> > > and found that they were defined in the allsoft kernel patch. Does it
> > > mean that rtai-comedi does only work with the allsoft patch, and NOT
> > > with the rthal patch? If yes, where is this documented? I didn't find
> > > mention of it anywhere.
> > >
> > > Should I patch the kernel with allsoft instead of rthal to solve my
> > > problem?
> >
> > _______________________________________________
> > comedi mailing list
> > comedi_at_comedi.org
> > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
> 

Received on 2002-11-01Z23:20:01