Linux compilation options

[email protected] Tue, 6 Feb 2018 10:05:10 +0100
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
Hi,

I'm a new RTAI user and I try to install it on a Debian 9 distribution (64
bits). But I have some difficulties with the configuration of the kernel.
I start with the Debian default kernel configuration and I use this
document:
https://www.rtai.org/userfiles/downloads/RTAICONTRIB/RTAI_Installation_Guide.pdf
to enable/disable the options necessary for RTAI. The problem is that this
document concerns very old Linux versions (2.6.19) and seems obsolete. For
example, I cannot find the options "Use register arguments" and "Legacy
Management Debug Support". And some options required for new kernel
versions are not documented.

For example, I made a first test on RTAI 5.0.1 with Linux 4.4.43 but the
kernel wasn't able to use USB devices, and during the boot I had some
messages like:
  usb 1-1: device not accepting address 3, error -110
  usb 1-1: new high-speed USB device number 4 using ehci-pci
  usb usb1-port1: unable to enumerate USB device
If I compile a 4.4.43 kernel without RTAI and with the default Debian
configuration, I don't have these errors. I have not found the reason of
this issue.

I made a second test with RTAI 5.1-test2 with Linux 4.9.76 (which is
probably the version I will use for my project thanks to the support of
Linux 4.9 and spectre/meltdown mitigations). To avoid a kernel panic when
loading the module rtai_sched.ko, I needed to disable CC_STACKPROTECTOR
option which is not documented (I found the solution on this mailing
list). Now I can boot correctly but I'm afraid to have new problems in the
future because of an incorrect configuration.

So, my question is: would it be possible to have a list of the options to
enable/disable for recent kernel versions (in my case RTAI 5.1 with Linux
4.9)?
And more generally, is there a more up to date documentation about RTAI?

Regards,

Jean-Marc


_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai