* [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
@ 2011-06-14 15:02 Anders Blomdell
0 siblings, 0 replies; 9+ messages in thread
From: Anders Blomdell @ 2011-06-14 15:02 UTC (permalink / raw)
To: xenomai-help
When trying to compile 2.5.6 with adeos-ipipe-2.6.38.8-x86-2.10-00.patch, I get
the following error:
CC arch/x86/xenomai/hal_32.o
arch/x86/xenomai/hal_32.c: In function ‘rthal_arch_init’:
arch/x86/xenomai/hal_32.c:341:6: error: ‘nmi_watchdog’ undeclared (first use in
this function)
arch/x86/xenomai/hal_32.c:341:6: note: each undeclared identifier is reported
only once for each function it appears in
arch/x86/xenomai/hal_32.c:341:22: error: ‘NMI_IO_APIC’ undeclared (first use in
this function)
Somebody that has a patch to work around this problem?
Regards
Anders Blomdell
--
Anders Blomdell Email: anders.blomdell@domain.hid
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
@ 2011-06-22 8:55 VEYSSIERE Nicolas
2011-06-22 9:32 ` Philippe Gerum
2011-10-14 16:32 ` Kunal Anand
0 siblings, 2 replies; 9+ messages in thread
From: VEYSSIERE Nicolas @ 2011-06-22 8:55 UTC (permalink / raw)
To: xenomai@xenomai.org
[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]
Same thing here, I tried to patch linux 2.6.38 with the latest adeos patch (http://download.gna.org/adeos/patches/v2.6/x86/adeos-ipipe-2.6.38.8-x86-2.10-00.patch) but the kernel compilation failed :
......
LD arch/x86/pci/built-in.o
CC arch/x86/power/cpu.o
CC arch/x86/power/hibernate_32.o
AS arch/x86/power/hibernate_asm_32.o
LD arch/x86/power/built-in.o
CC arch/x86/video/fbdev.o
LD arch/x86/video/built-in.o
CC arch/x86/xenomai/hal_32.o
arch/x86/xenomai/hal_32.c: In function 'rthal_arch_init':
arch/x86/xenomai/hal_32.c:341: error: 'nmi_watchdog' undeclared (first use in this function)
arch/x86/xenomai/hal_32.c:341: error: (Each undeclared identifier is reported only once
arch/x86/xenomai/hal_32.c:341: error: for each function it appears in.)
arch/x86/xenomai/hal_32.c:341: error: 'NMI_IO_APIC' undeclared (first use in this function)
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make[1]: *** [arch/x86/xenomai/hal_32.o] Error 1
make: *** [arch/x86/xenomai] Error 2
Can someone tell me what to do ?
Thanks.
Regards,
--
Nicolas VEYSSIERE
[-- Attachment #2: Type: text/html, Size: 4687 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
2011-06-22 8:55 [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel VEYSSIERE Nicolas
@ 2011-06-22 9:32 ` Philippe Gerum
2011-06-22 10:04 ` VEYSSIERE Nicolas
2011-07-26 17:23 ` Pedro Santana
2011-10-14 16:32 ` Kunal Anand
1 sibling, 2 replies; 9+ messages in thread
From: Philippe Gerum @ 2011-06-22 9:32 UTC (permalink / raw)
To: VEYSSIERE Nicolas; +Cc: xenomai@xenomai.org
On Wed, 2011-06-22 at 10:55 +0200, VEYSSIERE Nicolas wrote:
> Same thing here, I tried to patch linux 2.6.38 with the latest adeos
> patch
> (http://download.gna.org/adeos/patches/v2.6/x86/adeos-ipipe-2.6.38.8-x86-2.10-00.patch) but the kernel compilation failed :
>
>
Support for latency watchdog is discontinued starting from 2.6.38.
diff --git a/ksrc/arch/x86/hal_32.c b/ksrc/arch/x86/hal_32.c
index 5f5ff2c..de21c90 100644
--- a/ksrc/arch/x86/hal_32.c
+++ b/ksrc/arch/x86/hal_32.c
@@ -337,7 +337,7 @@ int rthal_arch_init(void)
rthal_smi_restore();
return -ENODEV;
}
-#ifdef CONFIG_GENERIC_CLOCKEVENTS
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && defined(CONFIG_GENERIC_CLOCKEVENTS)
if (nmi_watchdog == NMI_IO_APIC) {
printk("Xenomai: NMI kernel watchdog set to NMI_IO_APIC (nmi_watchdog=1).\n"
" This will disable the LAPIC as a clock device, and\n"
>
>
>
> ……
>
> LD arch/x86/pci/built-in.o
>
> CC arch/x86/power/cpu.o
>
> CC arch/x86/power/hibernate_32.o
>
> AS arch/x86/power/hibernate_asm_32.o
>
> LD arch/x86/power/built-in.o
>
> CC arch/x86/video/fbdev.o
>
> LD arch/x86/video/built-in.o
>
> CC arch/x86/xenomai/hal_32.o
>
> arch/x86/xenomai/hal_32.c: In function 'rthal_arch_init':
>
> arch/x86/xenomai/hal_32.c:341: error: 'nmi_watchdog' undeclared (first
> use in this function)
>
> arch/x86/xenomai/hal_32.c:341: error: (Each undeclared identifier is
> reported only once
>
> arch/x86/xenomai/hal_32.c:341: error: for each function it appears
> in.)
>
> arch/x86/xenomai/hal_32.c:341: error: 'NMI_IO_APIC' undeclared (first
> use in this function)
>
> At top level:
>
> cc1: warning: unrecognized command line option
> "-Wno-unused-but-set-variable"
>
> make[1]: *** [arch/x86/xenomai/hal_32.o] Error 1
>
> make: *** [arch/x86/xenomai] Error 2
>
>
>
>
>
>
>
> Can someone tell me what to do ?
>
>
>
> Thanks.
>
>
>
> Regards,
>
>
>
> --
>
> Nicolas VEYSSIERE
>
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
2011-06-22 9:32 ` Philippe Gerum
@ 2011-06-22 10:04 ` VEYSSIERE Nicolas
2011-07-26 17:23 ` Pedro Santana
1 sibling, 0 replies; 9+ messages in thread
From: VEYSSIERE Nicolas @ 2011-06-22 10:04 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai@xenomai.org
Great ! thank you !
Regards,
--
Nicolas VEYSSIERE
-----Message d'origine-----
De : Philippe Gerum [mailto:rpm@xenomai.org]
Envoyé : mercredi 22 juin 2011 11:33
À : VEYSSIERE Nicolas
Cc : xenomai-help@gna.org
Objet : Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
On Wed, 2011-06-22 at 10:55 +0200, VEYSSIERE Nicolas wrote:
> Same thing here, I tried to patch linux 2.6.38 with the latest adeos
> patch
> (http://download.gna.org/adeos/patches/v2.6/x86/adeos-ipipe-2.6.38.8-x86-2.10-00.patch) but the kernel compilation failed :
>
>
Support for latency watchdog is discontinued starting from 2.6.38.
diff --git a/ksrc/arch/x86/hal_32.c b/ksrc/arch/x86/hal_32.c
index 5f5ff2c..de21c90 100644
--- a/ksrc/arch/x86/hal_32.c
+++ b/ksrc/arch/x86/hal_32.c
@@ -337,7 +337,7 @@ int rthal_arch_init(void)
rthal_smi_restore();
return -ENODEV;
}
-#ifdef CONFIG_GENERIC_CLOCKEVENTS
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && defined(CONFIG_GENERIC_CLOCKEVENTS)
if (nmi_watchdog == NMI_IO_APIC) {
printk("Xenomai: NMI kernel watchdog set to NMI_IO_APIC (nmi_watchdog=1).\n"
" This will disable the LAPIC as a clock device, and\n"
>
>
>
> ……
>
> LD arch/x86/pci/built-in.o
>
> CC arch/x86/power/cpu.o
>
> CC arch/x86/power/hibernate_32.o
>
> AS arch/x86/power/hibernate_asm_32.o
>
> LD arch/x86/power/built-in.o
>
> CC arch/x86/video/fbdev.o
>
> LD arch/x86/video/built-in.o
>
> CC arch/x86/xenomai/hal_32.o
>
> arch/x86/xenomai/hal_32.c: In function 'rthal_arch_init':
>
> arch/x86/xenomai/hal_32.c:341: error: 'nmi_watchdog' undeclared (first
> use in this function)
>
> arch/x86/xenomai/hal_32.c:341: error: (Each undeclared identifier is
> reported only once
>
> arch/x86/xenomai/hal_32.c:341: error: for each function it appears
> in.)
>
> arch/x86/xenomai/hal_32.c:341: error: 'NMI_IO_APIC' undeclared (first
> use in this function)
>
> At top level:
>
> cc1: warning: unrecognized command line option
> "-Wno-unused-but-set-variable"
>
> make[1]: *** [arch/x86/xenomai/hal_32.o] Error 1
>
> make: *** [arch/x86/xenomai] Error 2
>
>
>
>
>
>
>
> Can someone tell me what to do ?
>
>
>
> Thanks.
>
>
>
> Regards,
>
>
>
> --
>
> Nicolas VEYSSIERE
>
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@gna.org
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
2011-06-22 9:32 ` Philippe Gerum
2011-06-22 10:04 ` VEYSSIERE Nicolas
@ 2011-07-26 17:23 ` Pedro Santana
2011-07-27 18:56 ` Gilles Chanteperdrix
1 sibling, 1 reply; 9+ messages in thread
From: Pedro Santana @ 2011-07-26 17:23 UTC (permalink / raw)
To: xenomai
My Kernel config file has the NMI watchdog option disabled
Real-time sub-system->Machine->NMI Watchdog->Enable NMI watchdog (unmarked),
but I'm getting the same error during compilation. What should I do in order to
fix this?
Thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
2011-07-26 17:23 ` Pedro Santana
@ 2011-07-27 18:56 ` Gilles Chanteperdrix
0 siblings, 0 replies; 9+ messages in thread
From: Gilles Chanteperdrix @ 2011-07-27 18:56 UTC (permalink / raw)
To: Pedro Santana; +Cc: xenomai
On 07/26/2011 07:23 PM, Pedro Santana wrote:
> My Kernel config file has the NMI watchdog option disabled
>
> Real-time sub-system->Machine->NMI Watchdog->Enable NMI watchdog (unmarked),
>
> but I'm getting the same error during compilation. What should I do in order to
> fix this?
The mail you are replying to contains a patch to solve this issue.
--
Gilles.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
2011-06-22 8:55 [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel VEYSSIERE Nicolas
2011-06-22 9:32 ` Philippe Gerum
@ 2011-10-14 16:32 ` Kunal Anand
2011-10-14 17:18 ` Gilles Chanteperdrix
1 sibling, 1 reply; 9+ messages in thread
From: Kunal Anand @ 2011-10-14 16:32 UTC (permalink / raw)
To: xenomai
VEYSSIERE Nicolas <nicolas.veyssiere <at> thalesgroup.com> writes:
> Same thing here, I tried to patch linux 2.6.38 with the
> latest adeos patch
(http://download.gna.org/adeos/patches/v2.6/x86/adeos-ipipe-2.6.38.8-x86-2.10-00.patch)
> but the kernel compilation failed :
>
> LD arch/x86/pci/built-in.o
>
> CC arch/x86/power/cpu.o
>
> CC arch/x86/power/hibernate_32.o
>
> AS arch/x86/power/hibernate_asm_32.o
>
> LD arch/x86/power/built-in.o
>
> CC arch/x86/video/fbdev.o
>
> LD arch/x86/video/built-in.o
>
> CC arch/x86/xenomai/hal_32.o
>
> arch/x86/xenomai/hal_32.c: In function 'rthal_arch_init':
>
> arch/x86/xenomai/hal_32.c:341: error: 'nmi_watchdog'
> undeclared (first use in this function)
>
> arch/x86/xenomai/hal_32.c:341: error: (Each undeclared
> identifier is reported only once
>
> arch/x86/xenomai/hal_32.c:341: error: for each function it
> appears in.)
>
> arch/x86/xenomai/hal_32.c:341: error: 'NMI_IO_APIC'
> undeclared (first use in this function)
>
> At top level:
>
> cc1: warning: unrecognized command line option
> "-Wno-unused-but-set-variable"
>
> make[1]: *** [arch/x86/xenomai/hal_32.o] Error 1
>
> make: *** [arch/x86/xenomai] Error 2
>
>
>
>
> Can someone tell me what to do ?
> Thanks.
> Regards,
> Nicolas VEYSSIERE
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help <at> gna.org
> https://mail.gna.org/listinfo/xenomai-help
>
Hi Sir,
I have compiled the Kernel (>20) times now
and have failed to successfully
implement it.
I desperately need help on it, can you help on it?
In both the cases I am using Linux OS
Ubuntu 11.04 (kernel 2.6.38.8)
My laptop is Intel Dual
and any other feature you req to know?
I am fairly new to Linux as well as kernel
patching so be patient with me and
let me learn.
Case I:
Linux kernel Src tree 2.6.38.8
Xenomai Patch 2.5.6
adeos-ipipe-2.6.38.8-x86-2.10-00.patch
I first faced the error faced above of the
UNDECLARED VARIABLES
So i declared it myself as
"int nmi_watchdog =0" and same for the other.
[AS ABOVE]
It got compiled and installed but on boot-up it showed
" system init fail, code -19
native skin init fail, code -19..."
and same message for POSIX skin and RTDM skin.
NO IDEA HOW TO SOLVE THIS!!
CASE II:
I tried following Uwue and used a
previous kernel and same xenomai patch with
the adeos patch for that particular
kernel but now it is giving me error in the
same function but the error is
concerning a ")" near the declaration of the
nmi_watchdog and NMI_IO_APIC.
ANY HELP WILL BE APPRECIATED!
Thanks in advance!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
2011-10-14 16:32 ` Kunal Anand
@ 2011-10-14 17:18 ` Gilles Chanteperdrix
[not found] ` <CABLMfBWTB9+0xQkT-F+SfpsyjE9QYgGN2c8GKqB2Y4PKLbMi0A@mail.gmail.com>
0 siblings, 1 reply; 9+ messages in thread
From: Gilles Chanteperdrix @ 2011-10-14 17:18 UTC (permalink / raw)
To: Kunal Anand; +Cc: xenomai
On 10/14/2011 06:32 PM, Kunal Anand wrote:
> Case I:
> Linux kernel Src tree 2.6.38.8
> Xenomai Patch 2.5.6
> adeos-ipipe-2.6.38.8-x86-2.10-00.patch
>
> I first faced the error faced above of the
> UNDECLARED VARIABLES
> So i declared it myself as
> "int nmi_watchdog =0" and same for the other.
You need to apply the patch which was posted in reply to Nicolas' mail.
>
> [AS ABOVE]
>
> It got compiled and installed but on boot-up it showed
> " system init fail, code -19
> native skin init fail, code -19..."
> and same message for POSIX skin and RTDM skin.
>
> NO IDEA HOW TO SOLVE THIS!!
Read the kernel logs. If you see "Xenomai: Local APIC absent or
disabled", read the TROUBLESHOOTING guide, at the top of Xenomai kernel
sources.
>
> CASE II:
>
> I tried following Uwue and used a
> previous kernel and same xenomai patch with
> the adeos patch for that particular
> kernel but now it is giving me error in the
> same function but the error is
> concerning a ")" near the declaration of the
> nmi_watchdog and NMI_IO_APIC.
See first answer.
--
Gilles.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel
[not found] ` <CABLMfBWTB9+0xQkT-F+SfpsyjE9QYgGN2c8GKqB2Y4PKLbMi0A@mail.gmail.com>
@ 2011-10-15 17:17 ` Gilles Chanteperdrix
0 siblings, 0 replies; 9+ messages in thread
From: Gilles Chanteperdrix @ 2011-10-15 17:17 UTC (permalink / raw)
To: Kunal Anand; +Cc: xenomai
On 10/15/2011 01:36 PM, Kunal Anand wrote:
> I have downloaded the patch, it's a .bin file but how to use it I have NO IDEA!
>
> APIC(If it's the APIC FLAG) is present i checked my processor detail.
I bet you will have to spend some time on kernelnewbies.org before you
try again using xenomai.
--
Gilles.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-10-15 17:17 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-22 8:55 [Xenomai-help] Xenomai 2.5.6 and 2.6.38.8 kernel VEYSSIERE Nicolas
2011-06-22 9:32 ` Philippe Gerum
2011-06-22 10:04 ` VEYSSIERE Nicolas
2011-07-26 17:23 ` Pedro Santana
2011-07-27 18:56 ` Gilles Chanteperdrix
2011-10-14 16:32 ` Kunal Anand
2011-10-14 17:18 ` Gilles Chanteperdrix
[not found] ` <CABLMfBWTB9+0xQkT-F+SfpsyjE9QYgGN2c8GKqB2Y4PKLbMi0A@mail.gmail.com>
2011-10-15 17:17 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2011-06-14 15:02 Anders Blomdell
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.