Skip to contentSkip to conversation

Xenomai 2.6.5 with Linux 2.6.38.8 kernel

Xenomai-help Applied Daniele Nicolodi 4 participants 8 messages Jun 28, 2011 – Jun 29, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

is the Xenomai 2.6.5 supposed to work with Linux 2.6.38.8 kernel and adeos patch 2.6.38.8-x86-2.10 supposed to work?

The above combination gives me an error compiling arch/x86/xenomai/hal_32.c in function rthal_arch_init where nmi_watchdog and NMI_IO_APIC are not defined. Indeed those are not defined anywhere in the kernel or xenomai source tree.

Thank you. Cheers,

Signature · 1 line
Daniele
#1 lore raw
Quoted 9 lines · Daniele Nicolodi

Hello,

is the Xenomai 2.6.5 supposed to work with Linux 2.6.38.8 kernel and adeos patch 2.6.38.8-x86-2.10 supposed to work?

The above combination gives me an error compiling arch/x86/xenomai/hal_32.c in function rthal_arch_init where nmi_watchdog and NMI_IO_APIC are not defined. Indeed those are not defined anywhere in the kernel or xenomai source tree.

Disable NMI watchdog.

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 6 lines · Gilles Chanteperdrix
Quoted 5 lines · Daniele Nicolodi

Hello,

is the Xenomai 2.6.5 supposed to work with Linux 2.6.38.8 kernel and adeos patch 2.6.38.8-x86-2.10 supposed to work?

Quoted 6 lines
Quoted 4 lines

The above combination gives me an error compiling arch/x86/xenomai/hal_32.c in function rthal_arch_init where nmi_watchdog and NMI_IO_APIC are not defined. Indeed those are not defined anywhere in the kernel or xenomai source tree.

Disable NMI watchdog.

Thanks Gilles for the quick answer, but that's not the problem, NMI watchdog option is already disabled (and looking at the source code looks like the error comes from a section of the code that is not affected by XENO_NMI_DEBUG_LATENCY.

Cheers,

Signature · 1 line
Daniele
#3 lore raw
Quoted 12 lines · Daniele Nicolodi
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Daniele Nicolodi

Hello,

is the Xenomai 2.6.5 supposed to work with Linux 2.6.38.8 kernel and adeos patch 2.6.38.8-x86-2.10 supposed to work?

The above combination gives me an error compiling arch/x86/xenomai/hal_32.c in function rthal_arch_init where nmi_watchdog and NMI_IO_APIC are not defined. Indeed those are not defined anywhere in the kernel or xenomai source tree.

Quoted 8 lines
Quoted 1 line

Disable NMI watchdog.

Thanks Gilles for the quick answer, but that's not the problem, NMI watchdog option is already disabled (and looking at the source code looks like the error comes from a section of the code that is not affected by XENO_NMI_DEBUG_LATENCY.

Cheers,

https://mail.gna.org/public/xenomai-help/2011-06/msg00142.html

Signature · 1 line
Philippe.
#4 lore raw
Quoted 8 lines · Philippe Gerum
Quoted 6 lines

Thanks Gilles for the quick answer, but that's not the problem, NMI watchdog option is already disabled (and looking at the source code looks like the error comes from a section of the code that is not affected by XENO_NMI_DEBUG_LATENCY.

Cheers,

https://mail.gna.org/public/xenomai-help/2011-06/msg00142.html

Thank you Philippe. I should follow the mailing list more closely.

Cheers,

Signature · 1 line
Daniele
#5 lore raw
Quoted 11 lines · Daniele Nicolodi
Quoted 8 lines · Philippe Gerum
Quoted 6 lines

Thanks Gilles for the quick answer, but that's not the problem, NMI watchdog option is already disabled (and looking at the source code looks like the error comes from a section of the code that is not affected by XENO_NMI_DEBUG_LATENCY.

Cheers,

https://mail.gna.org/public/xenomai-help/2011-06/msg00142.html

Thank you Philippe. I should follow the mailing list more closely.

Actually, I should have pushed the necessary bits way earlier to the repo.

Quoted 2 lines

Cheers,

Signature · 1 line
Philippe.
#6 lore raw

Kernel 2.6.38.8 has also renamed current_cpu_data. See attached patch for fix.

Quoted 24 lines · Philippe Gerum
Quoted 11 lines · Daniele Nicolodi
Quoted 8 lines · Philippe Gerum
Quoted 6 lines

Thanks Gilles for the quick answer, but that's not the problem, NMI watchdog option is already disabled (and looking at the source code looks like the error comes from a section of the code that is not affected by XENO_NMI_DEBUG_LATENCY.

Cheers,

https://mail.gna.org/public/xenomai-help/2011-06/msg00142.html

Thank you Philippe. I should follow the mailing list more closely.

Actually, I should have pushed the necessary bits way earlier to the repo.

Quoted 2 lines

Cheers,

--
Philippe.

Quoted 5 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

include/asm-x86/calibration.h +4 -0
Index: xenomai-2.5.6/include/asm-x86/calibration.h
===================================================================
@@ -45,7 +45,11 @@
 	 * the approach is definitely saner than previous attempts to
 	 * guess such value dynamically.
 	 */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
 #define __bogomips (current_cpu_data.loops_per_jiffy/(500000/HZ))
+#else
+#define __bogomips (cpu_info.loops_per_jiffy/(500000/HZ))
+#endif
 	sched_latency = (__bogomips < 250 ? 17000 :
 			 __bogomips < 2500 ? 4200 :
 			 3500);
#7 lore raw
Quoted 2 lines · Henri Roosen

Kernel 2.6.38.8 has also renamed current_cpu_data. See attached patch for fix.

Applied, thanks.

Signature · 1 line
                                                                Gilles.