* [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel @ 2011-06-28 13:00 Daniele Nicolodi 2011-06-28 13:48 ` Gilles Chanteperdrix 0 siblings, 1 reply; 8+ messages in thread From: Daniele Nicolodi @ 2011-06-28 13:00 UTC (permalink / raw) To: xenomai 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, -- Daniele ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel 2011-06-28 13:00 [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel Daniele Nicolodi @ 2011-06-28 13:48 ` Gilles Chanteperdrix 2011-06-28 14:19 ` Daniele Nicolodi 0 siblings, 1 reply; 8+ messages in thread From: Gilles Chanteperdrix @ 2011-06-28 13:48 UTC (permalink / raw) To: Daniele Nicolodi; +Cc: xenomai On 06/28/2011 03:00 PM, Daniele Nicolodi wrote: > 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. -- Gilles. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel 2011-06-28 13:48 ` Gilles Chanteperdrix @ 2011-06-28 14:19 ` Daniele Nicolodi 2011-06-28 14:24 ` Philippe Gerum 0 siblings, 1 reply; 8+ messages in thread From: Daniele Nicolodi @ 2011-06-28 14:19 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On 28/06/11 15:48, Gilles Chanteperdrix wrote: > On 06/28/2011 03:00 PM, Daniele Nicolodi wrote: >> 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. 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, -- Daniele ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel 2011-06-28 14:19 ` Daniele Nicolodi @ 2011-06-28 14:24 ` Philippe Gerum 2011-06-28 16:25 ` Daniele Nicolodi 0 siblings, 1 reply; 8+ messages in thread From: Philippe Gerum @ 2011-06-28 14:24 UTC (permalink / raw) To: Daniele Nicolodi; +Cc: xenomai On Tue, 2011-06-28 at 16:19 +0200, Daniele Nicolodi wrote: > On 28/06/11 15:48, Gilles Chanteperdrix wrote: > > On 06/28/2011 03:00 PM, Daniele Nicolodi wrote: > >> 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. > > 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 -- Philippe. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel 2011-06-28 14:24 ` Philippe Gerum @ 2011-06-28 16:25 ` Daniele Nicolodi 2011-06-28 16:59 ` Philippe Gerum 0 siblings, 1 reply; 8+ messages in thread From: Daniele Nicolodi @ 2011-06-28 16:25 UTC (permalink / raw) To: Philippe Gerum; +Cc: xenomai On 28/06/11 16:24, Philippe Gerum wrote: >> 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, -- Daniele ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel 2011-06-28 16:25 ` Daniele Nicolodi @ 2011-06-28 16:59 ` Philippe Gerum 2011-06-28 18:46 ` Henri Roosen 0 siblings, 1 reply; 8+ messages in thread From: Philippe Gerum @ 2011-06-28 16:59 UTC (permalink / raw) To: Daniele Nicolodi; +Cc: xenomai On Tue, 2011-06-28 at 18:25 +0200, Daniele Nicolodi wrote: > On 28/06/11 16:24, Philippe Gerum wrote: > >> 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. > > Cheers, -- Philippe. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel 2011-06-28 16:59 ` Philippe Gerum @ 2011-06-28 18:46 ` Henri Roosen 2011-06-29 17:37 ` Gilles Chanteperdrix 0 siblings, 1 reply; 8+ messages in thread From: Henri Roosen @ 2011-06-28 18:46 UTC (permalink / raw) To: Philippe Gerum; +Cc: xenomai [-- Attachment #1: Type: text/plain, Size: 959 bytes --] Kernel 2.6.38.8 has also renamed current_cpu_data. See attached patch for fix. On Tue, Jun 28, 2011 at 6:59 PM, Philippe Gerum <rpm@xenomai.org> wrote: > On Tue, 2011-06-28 at 18:25 +0200, Daniele Nicolodi wrote: >> On 28/06/11 16:24, Philippe Gerum wrote: >> >> 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. > >> >> Cheers, > > -- > Philippe. > > > > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help > [-- Attachment #2: fix-current_cpu_data-rename.patch --] [-- Type: text/x-diff, Size: 696 bytes --] Index: xenomai-2.5.6/include/asm-x86/calibration.h =================================================================== --- xenomai-2.5.6.orig/include/asm-x86/calibration.h 2011-06-28 20:31:23.000000000 +0200 +++ xenomai-2.5.6/include/asm-x86/calibration.h 2011-06-28 20:33:08.000000000 +0200 @@ -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); ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel 2011-06-28 18:46 ` Henri Roosen @ 2011-06-29 17:37 ` Gilles Chanteperdrix 0 siblings, 0 replies; 8+ messages in thread From: Gilles Chanteperdrix @ 2011-06-29 17:37 UTC (permalink / raw) To: Henri Roosen; +Cc: xenomai On 06/28/2011 08:46 PM, Henri Roosen wrote: > Kernel 2.6.38.8 has also renamed current_cpu_data. > See attached patch for fix. Applied, thanks. -- Gilles. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-06-29 17:37 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-06-28 13:00 [Xenomai-help] Xenomai 2.6.5 with Linux 2.6.38.8 kernel Daniele Nicolodi 2011-06-28 13:48 ` Gilles Chanteperdrix 2011-06-28 14:19 ` Daniele Nicolodi 2011-06-28 14:24 ` Philippe Gerum 2011-06-28 16:25 ` Daniele Nicolodi 2011-06-28 16:59 ` Philippe Gerum 2011-06-28 18:46 ` Henri Roosen 2011-06-29 17:37 ` Gilles Chanteperdrix
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.