* [Xenomai-core] Xenomai broken on Linux 2.4
@ 2006-01-12 9:09 Wolfgang Grandegger
2006-01-12 9:12 ` [Xenomai-core] " Philippe Gerum
2006-01-12 11:08 ` Philippe Gerum
0 siblings, 2 replies; 13+ messages in thread
From: Wolfgang Grandegger @ 2006-01-12 9:09 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
Hi Philippe,
I just realized that recent changes in ksrc/arch/powerpc/switch.S have
broken the build of Xenomai with linuxppc_2_4_devel on PPC:
#include <asm/offsets.h> does not exist
Symbols like SAVE_NVGPRS do not exist
For the time being, I will stick with an older version for testing RTnet
(where I'm currently debugging "floating point used in kernel" errors on
the MPC8260),
Thanks.
Wolfgang.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 9:09 [Xenomai-core] Xenomai broken on Linux 2.4 Wolfgang Grandegger
@ 2006-01-12 9:12 ` Philippe Gerum
2006-01-12 9:56 ` Stelian Pop
2006-01-12 11:08 ` Philippe Gerum
1 sibling, 1 reply; 13+ messages in thread
From: Philippe Gerum @ 2006-01-12 9:12 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: xenomai
Hi Wolfgang,
Wolfgang Grandegger wrote:
> Hi Philippe,
>
> I just realized that recent changes in ksrc/arch/powerpc/switch.S have
> broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>
> #include <asm/offsets.h> does not exist
> Symbols like SAVE_NVGPRS do not exist
>
Ok, thanks for the info. I'm going to fix and check the 2.4/ppc port today.
> For the time being, I will stick with an older version for testing RTnet
> (where I'm currently debugging "floating point used in kernel" errors on
> the MPC8260),
>
> Thanks.
>
> Wolfgang.
>
--
Philippe.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 9:12 ` [Xenomai-core] " Philippe Gerum
@ 2006-01-12 9:56 ` Stelian Pop
2006-01-12 10:18 ` Philippe Gerum
2006-01-12 11:08 ` Philippe Gerum
0 siblings, 2 replies; 13+ messages in thread
From: Stelian Pop @ 2006-01-12 9:56 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
Le 12 janv. 06 à 10:12, Philippe Gerum a écrit :
>
> Hi Wolfgang,
>
> Wolfgang Grandegger wrote:
>> Hi Philippe,
>> I just realized that recent changes in ksrc/arch/powerpc/switch.S
>> have broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>> #include <asm/offsets.h> does not exist
>> Symbols like SAVE_NVGPRS do not exist
>>
>
> Ok, thanks for the info. I'm going to fix and check the 2.4/ppc
> port today.
2.6/ppc build fails in the same way. Correcting it to <linux/asm-
offsets.h> fixes fixes it.
Stelian.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 9:56 ` Stelian Pop
@ 2006-01-12 10:18 ` Philippe Gerum
2006-01-12 11:08 ` Philippe Gerum
1 sibling, 0 replies; 13+ messages in thread
From: Philippe Gerum @ 2006-01-12 10:18 UTC (permalink / raw)
To: Stelian Pop; +Cc: xenomai
Stelian Pop wrote:
>
> Le 12 janv. 06 à 10:12, Philippe Gerum a écrit :
>
>>
>> Hi Wolfgang,
>>
>> Wolfgang Grandegger wrote:
>>
>>> Hi Philippe,
>>> I just realized that recent changes in ksrc/arch/powerpc/switch.S
>>> have broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>>> #include <asm/offsets.h> does not exist
>>> Symbols like SAVE_NVGPRS do not exist
>>>
>>
>> Ok, thanks for the info. I'm going to fix and check the 2.4/ppc port
>> today.
>
>
> 2.6/ppc build fails in the same way. Correcting it to <linux/asm-
> offsets.h> fixes fixes it.
>
Forgot that pre-2.6.14 versions include asm/offsets.h, while post- ones now
include asm/asm-offsets. Ok, will fix. Thanks.
> Stelian.
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 9:09 [Xenomai-core] Xenomai broken on Linux 2.4 Wolfgang Grandegger
2006-01-12 9:12 ` [Xenomai-core] " Philippe Gerum
@ 2006-01-12 11:08 ` Philippe Gerum
2006-01-12 16:08 ` Wolfgang Grandegger
1 sibling, 1 reply; 13+ messages in thread
From: Philippe Gerum @ 2006-01-12 11:08 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: xenomai
Wolfgang Grandegger wrote:
> Hi Philippe,
>
> I just realized that recent changes in ksrc/arch/powerpc/switch.S have
> broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>
> #include <asm/offsets.h> does not exist
> Symbols like SAVE_NVGPRS do not exist
>
Fixed.
> For the time being, I will stick with an older version for testing RTnet
> (where I'm currently debugging "floating point used in kernel" errors on
> the MPC8260),
>
> Thanks.
>
> Wolfgang.
>
--
Philippe.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 9:56 ` Stelian Pop
2006-01-12 10:18 ` Philippe Gerum
@ 2006-01-12 11:08 ` Philippe Gerum
1 sibling, 0 replies; 13+ messages in thread
From: Philippe Gerum @ 2006-01-12 11:08 UTC (permalink / raw)
To: Stelian Pop; +Cc: xenomai
Stelian Pop wrote:
>
> Le 12 janv. 06 à 10:12, Philippe Gerum a écrit :
>
>>
>> Hi Wolfgang,
>>
>> Wolfgang Grandegger wrote:
>>
>>> Hi Philippe,
>>> I just realized that recent changes in ksrc/arch/powerpc/switch.S
>>> have broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>>> #include <asm/offsets.h> does not exist
>>> Symbols like SAVE_NVGPRS do not exist
>>>
>>
>> Ok, thanks for the info. I'm going to fix and check the 2.4/ppc port
>> today.
>
>
> 2.6/ppc build fails in the same way. Correcting it to <linux/asm-
> offsets.h> fixes fixes it.
>
Fixed.
> Stelian.
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 11:08 ` Philippe Gerum
@ 2006-01-12 16:08 ` Wolfgang Grandegger
2006-01-12 18:45 ` Philippe Gerum
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Grandegger @ 2006-01-12 16:08 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 691 bytes --]
Philippe Gerum wrote:
> Wolfgang Grandegger wrote:
>
>> Hi Philippe,
>>
>> I just realized that recent changes in ksrc/arch/powerpc/switch.S have
>> broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>>
>> #include <asm/offsets.h> does not exist
>> Symbols like SAVE_NVGPRS do not exist
>>
>
> Fixed.
Thanks. Attached is a little patch fixing a build problem with Linux
2.6.14 for PowerPC (ocotea, AMCC 440GX). But I'm not sure when exactly
the change happened.
>> For the time being, I will stick with an older version for testing
>> RTnet (where I'm currently debugging "floating point used in kernel"
>> errors on the MPC8260),
>>
>> Thanks.
>>
>> Wolfgang.
>>
>
>
[-- Attachment #2: linux-2.6.14-ipipe-wrapper.patch --]
[-- Type: text/x-patch, Size: 761 bytes --]
+ diff -u linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h.ORIG1 linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h
--- linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h.ORIG1 2006-01-12 16:13:28.958070000 +0100
+++ linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h 2006-01-12 16:56:08.623129271 +0100
@@ -150,7 +150,7 @@
/* Device registration */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
#define DECLARE_DEVCLASS(clname) struct class *clname
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
#define wrap_class_device_create class_device_create
#else /* < 2.6.15 */
#define wrap_class_device_create(c,p,dt,dv,fmt,args...) class_device_create(c,dt,dv,fmt , ##args)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 16:08 ` Wolfgang Grandegger
@ 2006-01-12 18:45 ` Philippe Gerum
2006-01-12 19:55 ` Wolfgang Grandegger
0 siblings, 1 reply; 13+ messages in thread
From: Philippe Gerum @ 2006-01-12 18:45 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: xenomai
Wolfgang Grandegger wrote:
> Philippe Gerum wrote:
>
>> Wolfgang Grandegger wrote:
>>
>>> Hi Philippe,
>>>
>>> I just realized that recent changes in ksrc/arch/powerpc/switch.S
>>> have broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>>>
>>> #include <asm/offsets.h> does not exist
>>> Symbols like SAVE_NVGPRS do not exist
>>>
>>
>> Fixed.
>
>
> Thanks. Attached is a little patch fixing a build problem with Linux
> 2.6.14 for PowerPC (ocotea, AMCC 440GX). But I'm not sure when exactly
> the change happened.
>
Looks like specific to 2.6.14-DENX (kernel.org shows the additional "parent"
parameter only starting with 2.6.15).
http://www.denx.de/cgi-bin/gitweb.cgi?p=linux-2.6-denx.git;a=blobdiff;h=a9e72ac3fb9fd066ebc5607bd28cfdd4ba8f010e;hp=95d607a48f06edd22c6be64e0feaf74d1aa63467;hb=3692e2d8099f19a4d1ff95df94cc82b394f86931;f=include/linux/device.h
We likely need to find a way to specifically identify this tree.
>>> For the time being, I will stick with an older version for testing
>>> RTnet (where I'm currently debugging "floating point used in kernel"
>>> errors on the MPC8260),
>>>
>>> Thanks.
>>>
>>> Wolfgang.
>>>
>>
>>
>
>
> ------------------------------------------------------------------------
>
> + diff -u linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h.ORIG1 linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h
> --- linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h.ORIG1 2006-01-12 16:13:28.958070000 +0100
> +++ linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h 2006-01-12 16:56:08.623129271 +0100
> @@ -150,7 +150,7 @@
> /* Device registration */
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
> #define DECLARE_DEVCLASS(clname) struct class *clname
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
> #define wrap_class_device_create class_device_create
> #else /* < 2.6.15 */
> #define wrap_class_device_create(c,p,dt,dv,fmt,args...) class_device_create(c,dt,dv,fmt , ##args)
--
Philippe.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 18:45 ` Philippe Gerum
@ 2006-01-12 19:55 ` Wolfgang Grandegger
2006-01-12 21:54 ` Wolfgang Denk
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Grandegger @ 2006-01-12 19:55 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
Philippe Gerum wrote:
> Wolfgang Grandegger wrote:
>
>> Philippe Gerum wrote:
>>
>>> Wolfgang Grandegger wrote:
>>>
>>>> Hi Philippe,
>>>>
>>>> I just realized that recent changes in ksrc/arch/powerpc/switch.S
>>>> have broken the build of Xenomai with linuxppc_2_4_devel on PPC:
>>>>
>>>> #include <asm/offsets.h> does not exist
>>>> Symbols like SAVE_NVGPRS do not exist
>>>>
>>>
>>> Fixed.
>>
>>
>>
>> Thanks. Attached is a little patch fixing a build problem with Linux
>> 2.6.14 for PowerPC (ocotea, AMCC 440GX). But I'm not sure when exactly
>> the change happened.
>>
>
> Looks like specific to 2.6.14-DENX (kernel.org shows the additional
> "parent" parameter only starting with 2.6.15).
> http://www.denx.de/cgi-bin/gitweb.cgi?p=linux-2.6-denx.git;a=blobdiff;h=a9e72ac3fb9fd066ebc5607bd28cfdd4ba8f010e;hp=95d607a48f06edd22c6be64e0feaf74d1aa63467;hb=3692e2d8099f19a4d1ff95df94cc82b394f86931;f=include/linux/device.h
>
>
> We likely need to find a way to specifically identify this tree.
Well, our 2.6 tree is based on the offical 2.6 tree. Don't know where
the difference come from. Maybe Wolfgang can help (he is now on CC).
>
>>>> For the time being, I will stick with an older version for testing
>>>> RTnet (where I'm currently debugging "floating point used in kernel"
>>>> errors on the MPC8260),
>>>>
>>>> Thanks.
>>>>
>>>> Wolfgang.
>>>>
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> + diff -u
>> linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h.ORIG1
>> linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h
>> --- linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h.ORIG1
>> 2006-01-12 16:13:28.958070000 +0100
>> +++ linux-2.6.14-ipipe/include/asm-generic/xenomai/wrappers.h
>> 2006-01-12 16:56:08.623129271 +0100
>> @@ -150,7 +150,7 @@
>> /* Device registration */
>> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
>> #define DECLARE_DEVCLASS(clname) struct class *clname
>> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
>> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
>> #define wrap_class_device_create class_device_create
>> #else /* < 2.6.15 */
>> #define wrap_class_device_create(c,p,dt,dv,fmt,args...)
>> class_device_create(c,dt,dv,fmt , ##args)
>
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 19:55 ` Wolfgang Grandegger
@ 2006-01-12 21:54 ` Wolfgang Denk
2006-01-12 22:06 ` Philippe Gerum
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Denk @ 2006-01-12 21:54 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: xenomai
In message <43C6B428.2040506@domain.hid> you wrote:
>
> Well, our 2.6 tree is based on the offical 2.6 tree. Don't know where
> the difference come from. Maybe Wolfgang can help (he is now on CC).
I'm subscribed, too.
We added some patches (especially 4xx network driver related) to our
tree long before they were accepted and merged into Linus' tree.
Does this answer the question? [Or what exactly is the problem?]
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@domain.hid
Digital computers are themselves more complex than most things people
build: They have very large numbers of states. This makes conceiving,
describing, and testing them hard. Software systems have orders-of-
magnitude more states than computers do. - Fred Brooks, Jr.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 21:54 ` Wolfgang Denk
@ 2006-01-12 22:06 ` Philippe Gerum
2006-01-13 1:14 ` Wolfgang Denk
0 siblings, 1 reply; 13+ messages in thread
From: Philippe Gerum @ 2006-01-12 22:06 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: xenomai
Wolfgang Denk wrote:
> In message <43C6B428.2040506@domain.hid> you wrote:
>
>>Well, our 2.6 tree is based on the offical 2.6 tree. Don't know where
>>the difference come from. Maybe Wolfgang can help (he is now on CC).
>
>
> I'm subscribed, too.
>
> We added some patches (especially 4xx network driver related) to our
> tree long before they were accepted and merged into Linus' tree.
>
> Does this answer the question? [Or what exactly is the problem?]
>
We try to find a way to wrap class_device_create properly depending on the kernel
version Xeno is compiled against. The parent device class argument in this call
(2nd in order) seems to show up in 2.6.15 for kernel.org, but 2.6.14-denx-git has
it too. So we have a problem relying on the version sublevel.
> Best regards,
>
> Wolfgang Denk
>
--
Philippe.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-12 22:06 ` Philippe Gerum
@ 2006-01-13 1:14 ` Wolfgang Denk
2006-01-13 8:33 ` Wolfgang Grandegger
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Denk @ 2006-01-13 1:14 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
Dear Philippe,
in message <43C6D2F5.2050607@domain.hid> you wrote:
>
> We try to find a way to wrap class_device_create properly depending on the kernel
> version Xeno is compiled against. The parent device class argument in this call
> (2nd in order) seems to show up in 2.6.15 for kernel.org, but 2.6.14-denx-git has
> it too. So we have a problem relying on the version sublevel.
I see. Well, I feel honored, but the reference in such cases should
always be Linus' tree (i. e. the "official" kernel.org tree). Xenomai
cannot and should not have to be considerate of all the N vendor
kernel trees that exist out there in the wild...
And if some user should use our old 2.6.14 tree and run into problems
we can just tell him to use current code - so no problem here,
either.
Please use kernel.org as reference (and remember that decision in
case other vendors should come urging you).
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@domain.hid
"Unix is simple, but it takes a genius to understand the simplicity."
- Dennis Ritchie
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Xenomai-core] Re: Xenomai broken on Linux 2.4
2006-01-13 1:14 ` Wolfgang Denk
@ 2006-01-13 8:33 ` Wolfgang Grandegger
0 siblings, 0 replies; 13+ messages in thread
From: Wolfgang Grandegger @ 2006-01-13 8:33 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: xenomai
Wolfgang Denk wrote:
> Dear Philippe,
>
> in message <43C6D2F5.2050607@domain.hid> you wrote:
>
>>We try to find a way to wrap class_device_create properly depending on the kernel
>>version Xeno is compiled against. The parent device class argument in this call
>>(2nd in order) seems to show up in 2.6.15 for kernel.org, but 2.6.14-denx-git has
>>it too. So we have a problem relying on the version sublevel.
>
>
> I see. Well, I feel honored, but the reference in such cases should
> always be Linus' tree (i. e. the "official" kernel.org tree). Xenomai
> cannot and should not have to be considerate of all the N vendor
> kernel trees that exist out there in the wild...
>
> And if some user should use our old 2.6.14 tree and run into problems
> we can just tell him to use current code - so no problem here,
> either.
>
> Please use kernel.org as reference (and remember that decision in
> case other vendors should come urging you).
Philippe, for some (yet) unknown reasons the trees are not in sync but
they should in respect to include/linux/device.h. Well, lets simply
ignore this problem for Xenomai.
Thanks.
Wolfgang.
> Best regards,
>
> Wolfgang Denk
>
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-01-13 8:33 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-12 9:09 [Xenomai-core] Xenomai broken on Linux 2.4 Wolfgang Grandegger
2006-01-12 9:12 ` [Xenomai-core] " Philippe Gerum
2006-01-12 9:56 ` Stelian Pop
2006-01-12 10:18 ` Philippe Gerum
2006-01-12 11:08 ` Philippe Gerum
2006-01-12 11:08 ` Philippe Gerum
2006-01-12 16:08 ` Wolfgang Grandegger
2006-01-12 18:45 ` Philippe Gerum
2006-01-12 19:55 ` Wolfgang Grandegger
2006-01-12 21:54 ` Wolfgang Denk
2006-01-12 22:06 ` Philippe Gerum
2006-01-13 1:14 ` Wolfgang Denk
2006-01-13 8:33 ` Wolfgang Grandegger
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.