Re: RTDM assertion failed RTAI 4.0 and 5.1test
Cédric <[email protected]>
| Newsgroups | gmane.linux.real-time.rtai |
|---|---|
| Message-ID | <CABV3n89N0UtM=Eby1Ntkw_uwGNUjSc1BzpXdnyox1oMEMtNF-A@mail.gmail.com> |
The other tasks are working properly, so I decided to try to force ignoring the error message I have when I execute the rt_dev_open function.... but writing in serial port does not work. I made a "Kompare" between RTAI3.8 and RTAI5.0 and I see they are a lot of change in the 16550 driver (you add 16550A_pci.h with 16550_pci_probe etc...). I think the way to insert the module may be changed... 2016-05-03 13:58 GMT+02:00 Cédric <[email protected]>: > The other tasks are working properly, so I decided to try to force > ignoring the error message I have when I execute the rt_dev_open > function.... but writing in serial port does not work. > I see they are a lot of change in the 16550 driver (you add 16550A_pci.h > with 16550_pci_probe etc...). I think the way to insert the module may be > changed... > I made a "Kompare" between RTAI3.8 and RTAI5.0 and in the file > /rtdm/core.c line 227 - line 293 : !rthal_local_irq_test() become > !rthal_local_irq_disable() and line 390... there are a lot of change in the > RTDM context... > > 2016-05-03 13:04 GMT+02:00 Paolo Mantegazza <[email protected]>: > >> Since you say "And every loop I have this one : ..." does that means thta >> despite the assertion messages your program keep working appropriately? >> >> Paolo >> >> >> On 05/03/2016 10:30 AM, Cédric wrote: >> >> Hi, >> >> I work on RTAI3.8 using a MOXA CP114 4 serial ports card since 4 years... >> I'm testing RTAI 4 (3.8.13 kernel) and RTAI5 (3.10.32 kernel) and all >> seems to work fine (testsuite, simple prog). >> With the same prog than I used on RTAI3.8, fd = rt_dev_open(rtserfile, >> 0)... rt_dev_write(...) >> >> When I try on newer versions I have this message : >> >> RTDM: assertion failed at /usr/src/rtai/addons/rtdm/core.c:523 >> (!rthal_local_irq_disabled()) >> >> >> And every loop I have this one : >> [ 1729.398443] RTDM: assertion failed at >> /usr/src/rtai/addons/rtdm/../rtdm/rtdm_driver.h:581 >> (CONTEXT_IS_LOCKED(context)) >> >> My script to insert modules : >> >> insmod rtai_hal.ko >> insmod rtai_sched.ko >> insmod rtai_sem.ko >> insmod rtai_tasklets.ko >> insmod rtai_fifos.ko >> insmod rtai_rtdm.ko >> insmod rtai_serial.ko >> rmmod rtai_serial.ko >> insmod rtai_16650A.ko io=...., irq=...., baud_base=...., start_index=0 >> >> If someone could help me... what's going wrong? >> Thanks >> >> Best regards >> >> >> _______________________________________________ >> Rtai mailing [email protected]://mail.rtai.org/cgi-bin/mailman/listinfo/rtai >> >> >> > _______________________________________________ Rtai mailing list [email protected] https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai