Victor Costa
2018-11-12 12:36:10 UTC
Dear all,
I am trying to update a rtai system currently running with RTAI 3.9 to RTAI
5.0.1. When I compile my system I am getting the error "âTIMER_8254_IRQâ
undeclared". At first I thought it was a library inclusion error, so I
double checked the libraries included between my version using RTAI 3.9 and
my version using RTAi 5.0.1 and there is no library missing at first. I'd
like to know if this "TIMER_8254_IRQ" is no longer supported on RTAI, and
if this is the case how should I proceed to update my calls to that or, if
this macro still exists, how can I make my system recognize this macro with
RTAi 5.0.1?
I am also letting my compiling log for this particular system, osLx26 is
my kernel module main file.
make -C /lib/modules/4.1.18-rtai/build
SUBDIRS=/home/gmtbro/repos/samplus/rtcore modules
make[1]: Entering directory `/usr/src/kernels/4.1.18-rtai'
CC [M] /home/gmtbro/repos/samplus/rtcore/osLx26.o
/home/gmtbro/repos/samplus/rtcore/osLx26.c: In function â__sao_initâ:
/home/gmtbro/repos/samplus/rtcore/osLx26.c:257:24: error: âTIMER_8254_IRQâ
undeclared (first use in this function)
rt_assign_irq_to_cpu(TIMER_8254_IRQ, TIMER_TO_CPU);
^
/home/gmtbro/repos/samplus/rtcore/osLx26.c:257:24: note: each undeclared
identifier is reported only once for each function it appears in
make[2]: *** [/home/gmtbro/repos/samplus/rtcore/osLx26.o] Error 1
make[1]: *** [_module_/home/gmtbro/repos/samplus/rtcore] Error 2
make[1]: Leaving directory `/usr/src/kernels/4.1.18-rtai'
If I just remove the rt_assign_irq_to_cpu function call the compiller
starts to return errors in the kmalloc definition at linux/slab.h, so
another question would be: is this error somehow related to the
TIMER_8254_IRQ macro?
Thanks in advance,
Victor Costa
I am trying to update a rtai system currently running with RTAI 3.9 to RTAI
5.0.1. When I compile my system I am getting the error "âTIMER_8254_IRQâ
undeclared". At first I thought it was a library inclusion error, so I
double checked the libraries included between my version using RTAI 3.9 and
my version using RTAi 5.0.1 and there is no library missing at first. I'd
like to know if this "TIMER_8254_IRQ" is no longer supported on RTAI, and
if this is the case how should I proceed to update my calls to that or, if
this macro still exists, how can I make my system recognize this macro with
RTAi 5.0.1?
I am also letting my compiling log for this particular system, osLx26 is
my kernel module main file.
make -C /lib/modules/4.1.18-rtai/build
SUBDIRS=/home/gmtbro/repos/samplus/rtcore modules
make[1]: Entering directory `/usr/src/kernels/4.1.18-rtai'
CC [M] /home/gmtbro/repos/samplus/rtcore/osLx26.o
/home/gmtbro/repos/samplus/rtcore/osLx26.c: In function â__sao_initâ:
/home/gmtbro/repos/samplus/rtcore/osLx26.c:257:24: error: âTIMER_8254_IRQâ
undeclared (first use in this function)
rt_assign_irq_to_cpu(TIMER_8254_IRQ, TIMER_TO_CPU);
^
/home/gmtbro/repos/samplus/rtcore/osLx26.c:257:24: note: each undeclared
identifier is reported only once for each function it appears in
make[2]: *** [/home/gmtbro/repos/samplus/rtcore/osLx26.o] Error 1
make[1]: *** [_module_/home/gmtbro/repos/samplus/rtcore] Error 2
make[1]: Leaving directory `/usr/src/kernels/4.1.18-rtai'
If I just remove the rt_assign_irq_to_cpu function call the compiller
starts to return errors in the kmalloc definition at linux/slab.h, so
another question would be: is this error somehow related to the
TIMER_8254_IRQ macro?
Thanks in advance,
Victor Costa