All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel?
@ 2007-02-18 12:51 Niklaus Giger
  2007-02-18 14:53 ` Philippe Gerum
  2007-02-18 14:55 ` Wolfgang Grandegger
  0 siblings, 2 replies; 5+ messages in thread
From: Niklaus Giger @ 2007-02-18 12:51 UTC (permalink / raw)
  To: xenomai-core

Hi

Compiling ppc fails for me with 2.6.19 kernels. 
( I compile on a Pegasos PPC 601 Debian Linux).

If I use ARCH=ppc then I get the following error:
>   CHK     include/linux/version.h
>   CHK     include/linux/utsrelease.h
>   CHK     include/linux/compile.h
> gcc: include/asm/byteorder.h: No such file or directory
> gcc: no input files
>   CC      arch/ppc/xenomai/hal.o
> arch/ppc/xenomai/hal.c: In function 'rthal_arch_init':
> arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->'
> make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1

Trying to use ARCH=powerpc fails already while configuring the kernel
like this:
>  make ARCH=powerpc menuconfig
>   HOSTCC  scripts/kconfig/mconf.o
>   HOSTLD  scripts/kconfig/mconf
> scripts/kconfig/mconf arch/powerpc/Kconfig
> init/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to
> undefined symbol 'IPIPE' #
> # configuration written to .config
> #
And a make gives me
>  make ARCH=powerpc menuconfig
>   HOSTCC  scripts/kconfig/mconf.o
>   HOSTLD  scripts/kconfig/mconf
> scripts/kconfig/mconf arch/powerpc/Kconfig
> init/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to
> undefined symbol 'IPIPE' #
> # configuration written to .config
> #
What is wrong? Did I miss something in my setup? Wrong config?

Best regards

-- 
Niklaus Giger


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel?
  2007-02-18 12:51 [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel? Niklaus Giger
@ 2007-02-18 14:53 ` Philippe Gerum
  2007-02-18 14:55 ` Wolfgang Grandegger
  1 sibling, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2007-02-18 14:53 UTC (permalink / raw)
  To: niklaus.giger; +Cc: xenomai-core

On Sun, 2007-02-18 at 13:51 +0100, Niklaus Giger wrote:
> Hi
> 
> Compiling ppc fails for me with 2.6.19 kernels. 
> ( I compile on a Pegasos PPC 601 Debian Linux).
> 
> If I use ARCH=ppc then I get the following error:
> >   CHK     include/linux/version.h
> >   CHK     include/linux/utsrelease.h
> >   CHK     include/linux/compile.h
> > gcc: include/asm/byteorder.h: No such file or directory
> > gcc: no input files
> >   CC      arch/ppc/xenomai/hal.o
> > arch/ppc/xenomai/hal.c: In function 'rthal_arch_init':
> > arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->'
> > make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1
> 

Fixed, thanks.

-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel?
  2007-02-18 12:51 [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel? Niklaus Giger
  2007-02-18 14:53 ` Philippe Gerum
@ 2007-02-18 14:55 ` Wolfgang Grandegger
  2007-02-18 15:15   ` Philippe Gerum
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Grandegger @ 2007-02-18 14:55 UTC (permalink / raw)
  To: niklaus.giger; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 1561 bytes --]

Niklaus Giger wrote:
> Hi
> 
> Compiling ppc fails for me with 2.6.19 kernels. 
> ( I compile on a Pegasos PPC 601 Debian Linux).
> 
> If I use ARCH=ppc then I get the following error:
>>   CHK     include/linux/version.h
>>   CHK     include/linux/utsrelease.h
>>   CHK     include/linux/compile.h
>> gcc: include/asm/byteorder.h: No such file or directory

Hmm, strange.

>> gcc: no input files
>>   CC      arch/ppc/xenomai/hal.o
>> arch/ppc/xenomai/hal.c: In function 'rthal_arch_init':
>> arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->'
>> make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1

That looks like an altivec problem. Does the attached patch for Xenomai 
help?

> Trying to use ARCH=powerpc fails already while configuring the kernel
> like this:
>>  make ARCH=powerpc menuconfig
>>   HOSTCC  scripts/kconfig/mconf.o
>>   HOSTLD  scripts/kconfig/mconf
>> scripts/kconfig/mconf arch/powerpc/Kconfig
>> init/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to
>> undefined symbol 'IPIPE' #
>> # configuration written to .config
>> #
> And a make gives me
>>  make ARCH=powerpc menuconfig
>>   HOSTCC  scripts/kconfig/mconf.o
>>   HOSTLD  scripts/kconfig/mconf
>> scripts/kconfig/mconf arch/powerpc/Kconfig
>> init/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to
>> undefined symbol 'IPIPE' #
>> # configuration written to .config
>> #

The powerpc tree is not yet supported.

> What is wrong? Did I miss something in my setup? Wrong config?

Seems to be an untested configuration!?

Wolfgang.

[-- Attachment #2: xenomai-altivec.patch --]
[-- Type: text/x-patch, Size: 679 bytes --]

+ diff -u xenomai/ksrc/arch/powerpc/hal.c.OLD xenomai/ksrc/arch/powerpc/hal.c
--- xenomai/ksrc/arch/powerpc/hal.c.OLD	2007-02-18 15:25:24.000000000 +0100
+++ xenomai/ksrc/arch/powerpc/hal.c	2007-02-18 15:46:17.000000000 +0100
@@ -347,11 +347,7 @@
 int rthal_arch_init(void)
 {
 #ifdef CONFIG_ALTIVEC
-#ifdef CONFIG_PPC64
     if (!(cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC)) {
-#else /* !CONFIG_PPC64 */
-    if (!(cur_cpu_spec[0]->cpu_features & CPU_FTR_ALTIVEC)) {
-#endif /* CONFIG_PPC64 */
         printk
             ("Xenomai: ALTIVEC support enabled in kernel but no hardware found.\n"
              "         Disable CONFIG_ALTIVEC in the kernel configuration.\n");

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel?
  2007-02-18 14:55 ` Wolfgang Grandegger
@ 2007-02-18 15:15   ` Philippe Gerum
  2007-02-18 19:56     ` Wolfgang Grandegger
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2007-02-18 15:15 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: xenomai-core

On Sun, 2007-02-18 at 15:55 +0100, Wolfgang Grandegger wrote:
> Niklaus Giger wrote:
> > Hi
> > 
> > Compiling ppc fails for me with 2.6.19 kernels. 
> > ( I compile on a Pegasos PPC 601 Debian Linux).
> > 
> > If I use ARCH=ppc then I get the following error:
> >>   CHK     include/linux/version.h
> >>   CHK     include/linux/utsrelease.h
> >>   CHK     include/linux/compile.h
> >> gcc: include/asm/byteorder.h: No such file or directory
> 
> Hmm, strange.
> 
> >> gcc: no input files
> >>   CC      arch/ppc/xenomai/hal.o
> >> arch/ppc/xenomai/hal.c: In function 'rthal_arch_init':
> >> arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->'
> >> make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1
> 
> That looks like an altivec problem. Does the attached patch for Xenomai 
> help?
> 

It does, but we also need to remain compatible with older kernels
(namely 2.6.14 since the ppc64 port is still based on it), so I fixed
this by using cpu_has_feature() instead.

-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel?
  2007-02-18 15:15   ` Philippe Gerum
@ 2007-02-18 19:56     ` Wolfgang Grandegger
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Grandegger @ 2007-02-18 19:56 UTC (permalink / raw)
  To: rpm; +Cc: xenomai-core

Philippe Gerum wrote:
> On Sun, 2007-02-18 at 15:55 +0100, Wolfgang Grandegger wrote:
>> Niklaus Giger wrote:
>>> Hi
>>>
>>> Compiling ppc fails for me with 2.6.19 kernels. 
>>> ( I compile on a Pegasos PPC 601 Debian Linux).
>>>
>>> If I use ARCH=ppc then I get the following error:
>>>>   CHK     include/linux/version.h
>>>>   CHK     include/linux/utsrelease.h
>>>>   CHK     include/linux/compile.h
>>>> gcc: include/asm/byteorder.h: No such file or directory
>> Hmm, strange.
>>
>>>> gcc: no input files
>>>>   CC      arch/ppc/xenomai/hal.o
>>>> arch/ppc/xenomai/hal.c: In function 'rthal_arch_init':
>>>> arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->'
>>>> make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1
>> That looks like an altivec problem. Does the attached patch for Xenomai 
>> help?
>>
> 
> It does, but we also need to remain compatible with older kernels
> (namely 2.6.14 since the ppc64 port is still based on it), so I fixed
> this by using cpu_has_feature() instead.

My patch was just a quick hack to see if it fixes the problem and not 
intended for inclusion. Thanks for the proper fix.

Wolfgang.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-18 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-18 12:51 [Xenomai-core] buildbot: how to setup for ppc with 2.6.19 kernel? Niklaus Giger
2007-02-18 14:53 ` Philippe Gerum
2007-02-18 14:55 ` Wolfgang Grandegger
2007-02-18 15:15   ` Philippe Gerum
2007-02-18 19:56     ` 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.