On 13.06.19 18:36, Jan Kiszka via Xenomai wrote:
On 12.06.19 15:05, Jan Kiszka via Xenomai wrote:
On 12.06.19 14:37, Proctor, Frederick M. (Fed) via Xenomai wrote:
On 07.06.19 15:02, Proctor, Frederick M. (Fed) via Xenomai wrote:
I am installing Xenomai + Cobalt with the IPIPE patch on a Ubuntu
18-based x86/64 desktop system. I have these versions:

Linux kernel 4.14.71 PREEMPT_RT patch 4.14.71-rt44 IPIPE 4.14.71

Latest stable I-pipe version is ipipe-core-4.14.111-x86-3.


I was using 4.14.71 since it has patches for both IPIPE and PREEMPT_RT. I had used 4.14.111 also, but had the same kernel hang problem at boot time.


OK.


I have compiled the kernel three different ways: the stock
configuration, with the PREEMPT_RT patch, and with the IPIPE patch (no
PREEMPT_RT). I have configured out the ACPI processor, CPU_FREQ, and
CPU_IDLE options in all cases. The first two boot fine (stock kernel,
PREEMPT_RT). The IPIPE-patched kernel hangs during the initrd loading
phase.

I've tailored the kernel configuration somewhat based on the hardware
I have, but nothing has worked to get a booting IPIPE kernel.

Does anyone have guidance on setting up the IPIPE patch on an x86/64
kernel on a desktop Ubuntu 18 machine? I am planning on continuing to
trim down the kernel config options, but before I do this, I want to
ask this group if anyone has had a similar problem.


Does yous system start to boot again when the I-pipe kernel is built without
CONFIG_IPIPE and CONFIG_XENOMAI? If no, compare the config to a
working one, step-wise aligning to it.

Jan

Yes it does - with the kernel patched with IPIPE and Xenomai, but with IPIPE and Xenomai *not selected* in the kernel config, the kernel boots fine. With IPIPE and Xenomai *selected* in a subsequent kernel config, that kernel hangs. Here's the diff on the config files:


Can you share the full config? Maybe something subtly incompatible with I-pipe is enabled, maybe I can reproduce in KVM (ie. with a chance to debug).


With the configuration you sent offlist, I can confirm now that the system (in my case a KVM target) does not come up, rather gets stuck during secondary CPU boot. I'm not yet seeing the key difference, but we will find out.

I'm attaching the config I'm currently using for 4.14, maybe we can search in parallel for the relevant delta.


Found: CONFIG_MAXSMP. Needs to be off, NR_CPUS at 64 eg.

I need to check where our exact limit is, but this should likely be caught at kconfig level.

At the same time, you will likely want to tune down your config for your needs. CONFIG_MIGRATION (with CMA, transparent hugh pages etc.) is one thing that you do not want in an RT kernel, but there is likely more ballast.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Reply via email to