Re: Linux compilation options

Paolo Mantegazza <[email protected]> Tue, 6 Feb 2018 11:33:41 +0100
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
The first thing to do is to be able to compile and boot you kernel of 
choice, taken from kernel.org, INDEPENDENTLY FROM RTAI.
Once you succeed with that you can apply your RTAI patch and, using the 
.config you have, compile an RTAI enabled kernel. Once you can boot you 
can launch the basic RTAI test, latency, as found in 
"testsuite/user/latency", of the RTAI installation dir,  and see what 
you get.
You should start using RTAI-5.1-test2, shortly to become RTAI-5.1. In it 
you'll find README.CONF_RMRKS , with suggestions for a finer tuning. 
Using RTAI 5.1 is strongly suggested if you ahve an Ix-6xxx INTEL cpu.

In any case first learn to conmpile a plain kernel. I've found it useful 
reading the README that comes with linux, more specifically using "make 
localmodconfig" and "make localyesconfig".

Repeating myself: boot a plain kernel, than we can help you with RTAI 
specific matters.

Paolo

On 02/06/2018 10:05 AM, [email protected] wrote:
> 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


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