* [Xenomai-help] Xenomai kernel user-space problem running testsuite
@ 2008-08-08 18:56 Michael Galea
2008-08-08 19:46 ` Philippe Gerum
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Michael Galea @ 2008-08-08 18:56 UTC (permalink / raw)
To: xenomai
I'm just starting with xenomai and am having troubles getting xenomai
user space to talk to my kernel.
I build the kernel and user-space xenomai code and try to run `latency`
from the test suite and get
mpc8360mds:# /usr/local/xenomai/bin/latency
Xenomai: incompatible feature set
(required="fastsem", present="nofastsem", missing="fastsem").
I have built xenomai from svn into my 2.6.26 powerpc kernel and it looks
good on the next boot, i.e. `dmesg |grep xeno -i` returns:
I-pipe: Domain Xenomai registered.
Xenomai: hal/powerpc started.
Xenomai: real-time nucleus v2.5-devel (Flying In A Blue Dream) loaded.
Xenomai: starting native API services.
Xenomai: starting POSIX services.
Xenomai: starting RTDM services.
The user-space builds and installs over NFS just fine:
./configure --host=ppc-unknown-linux-gnu --prefix=/usr/local/xenomai \
CC=ppc_6xx-gcc CXX=ppc_6xx-g++ LD=ppc_6xx-ld
make
make DESTDIR=/opt/ppcrootmds/ install
I can't see any fastsem options in the kernel. Does anyone have any
advice?
Thanks
--
Michael Galea
30 Whitmore Road
Woodbridge, Ontario, Canada, L4L 7Z4
Ph: (905) 266-1745
Fx: (905) 856-1995
www.ruggedcom.com
NOTICE OF CONFIDENTIALITY:
This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the
sender immediately by return e-mail and delete this e-mail and any
copies. Any dissemination or use of this information by a person other
than the intended recipient is unauthorized and may be illegal.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Xenomai-help] Xenomai kernel user-space problem running testsuite
2008-08-08 18:56 [Xenomai-help] Xenomai kernel user-space problem running testsuite Michael Galea
@ 2008-08-08 19:46 ` Philippe Gerum
2008-08-08 20:58 ` Michael Galea
2008-08-08 20:38 ` Gilles Chanteperdrix
2008-08-09 13:37 ` Wolfgang Grandegger
2 siblings, 1 reply; 6+ messages in thread
From: Philippe Gerum @ 2008-08-08 19:46 UTC (permalink / raw)
To: Michael Galea; +Cc: xenomai
Michael Galea wrote:
> I'm just starting with xenomai and am having troubles getting xenomai
> user space to talk to my kernel.
>
> I build the kernel and user-space xenomai code and try to run `latency`
> from the test suite and get
> mpc8360mds:# /usr/local/xenomai/bin/latency
> Xenomai: incompatible feature set
> (required="fastsem", present="nofastsem", missing="fastsem").
>
>
> I have built xenomai from svn into my 2.6.26 powerpc kernel and it looks
> good on the next boot, i.e. `dmesg |grep xeno -i` returns:
> I-pipe: Domain Xenomai registered.
> Xenomai: hal/powerpc started.
> Xenomai: real-time nucleus v2.5-devel (Flying In A Blue Dream) loaded.
> Xenomai: starting native API services.
> Xenomai: starting POSIX services.
> Xenomai: starting RTDM services.
>
> The user-space builds and installs over NFS just fine:
>
> ./configure --host=ppc-unknown-linux-gnu --prefix=/usr/local/xenomai \
> CC=ppc_6xx-gcc CXX=ppc_6xx-g++ LD=ppc_6xx-ld
> make
> make DESTDIR=/opt/ppcrootmds/ install
>
>
> I can't see any fastsem options in the kernel. Does anyone have any
> advice?
The trunk/ contains bleeding edge code. The powerpc port there is currently in a
state of flux, due to the introduction of fast user-space mutexes in the Xenomai
nucleus.
Please use the latest stable version such as 2.4.4, or our maintenance branch
instead: http://svn.gna.org/viewcvs/xenomai/branches/v2.4.x/.
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Xenomai kernel user-space problem running testsuite
2008-08-08 19:46 ` Philippe Gerum
@ 2008-08-08 20:58 ` Michael Galea
2008-08-08 21:17 ` Philippe Gerum
0 siblings, 1 reply; 6+ messages in thread
From: Michael Galea @ 2008-08-08 20:58 UTC (permalink / raw)
To: xenomai
Philippe Gerum wrote:
> Michael Galea wrote:
>> I'm just starting with xenomai and am having troubles getting xenomai
>> user space to talk to my kernel.
>>
>> I build the kernel and user-space xenomai code and try to run `latency`
>> from the test suite and get
>> mpc8360mds:# /usr/local/xenomai/bin/latency
>> Xenomai: incompatible feature set
>> (required="fastsem", present="nofastsem", missing="fastsem").
>>
>>
>> I have built xenomai from svn into my 2.6.26 powerpc kernel and it looks
>> good on the next boot, i.e. `dmesg |grep xeno -i` returns:
>> I-pipe: Domain Xenomai registered.
>> Xenomai: hal/powerpc started.
>> Xenomai: real-time nucleus v2.5-devel (Flying In A Blue Dream) loaded.
>> Xenomai: starting native API services.
>> Xenomai: starting POSIX services.
>> Xenomai: starting RTDM services.
>>
>> The user-space builds and installs over NFS just fine:
>>
>> ./configure --host=ppc-unknown-linux-gnu --prefix=/usr/local/xenomai \
>> CC=ppc_6xx-gcc CXX=ppc_6xx-g++ LD=ppc_6xx-ld
>> make
>> make DESTDIR=/opt/ppcrootmds/ install
>>
>>
>> I can't see any fastsem options in the kernel. Does anyone have any
>> advice?
>
> The trunk/ contains bleeding edge code. The powerpc port there is currently in a
> state of flux, due to the introduction of fast user-space mutexes in the Xenomai
> nucleus.
>
> Please use the latest stable version such as 2.4.4, or our maintenance branch
> instead: http://svn.gna.org/viewcvs/xenomai/branches/v2.4.x/.
>
Hi Phillipe,
In trying to build xenomai 2.4.4 into the 2.6.26 kernel, using the
default kconfig, I get
CC kernel/xenomai/arch/generic/hal.o
LD kernel/xenomai/arch/generic/xeno_hal.o
LD kernel/xenomai/arch/generic/built-in.o
LD kernel/xenomai/arch/built-in.o
CC kernel/xenomai/nucleus/heap.o
kernel/xenomai/nucleus/heap.c: In function 'xnheap_mount':
kernel/xenomai/nucleus/heap.c:1140: error: implicit declaration of
function 'class_device_create'
kernel/xenomai/nucleus/heap.c:1142: warning: assignment makes pointer
from integer without a cast
kernel/xenomai/nucleus/heap.c: In function 'xnheap_umount':
kernel/xenomai/nucleus/heap.c:1160: error: implicit declaration of
function 'class_device_destroy'
make[3]: *** [kernel/xenomai/nucleus/heap.o] Error 1
make[2]: *** [kernel/xenomai/nucleus] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2
You mentioned the maintenance branch, where can I find that?
--
Michael Galea
30 Whitmore Road
Woodbridge, Ontario, Canada, L4L 7Z4
Ph: (905) 266-1745
Fx: (905) 856-1995
www.ruggedcom.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Xenomai kernel user-space problem running testsuite
2008-08-08 20:58 ` Michael Galea
@ 2008-08-08 21:17 ` Philippe Gerum
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2008-08-08 21:17 UTC (permalink / raw)
To: Michael Galea; +Cc: xenomai
Michael Galea wrote:
> Philippe Gerum wrote:
>> Michael Galea wrote:
>>> I'm just starting with xenomai and am having troubles getting xenomai
>>> user space to talk to my kernel.
>>>
>>> I build the kernel and user-space xenomai code and try to run `latency`
>>> from the test suite and get
>>> mpc8360mds:# /usr/local/xenomai/bin/latency
>>> Xenomai: incompatible feature set
>>> (required="fastsem", present="nofastsem", missing="fastsem").
>>>
>>>
>>> I have built xenomai from svn into my 2.6.26 powerpc kernel and it looks
>>> good on the next boot, i.e. `dmesg |grep xeno -i` returns:
>>> I-pipe: Domain Xenomai registered.
>>> Xenomai: hal/powerpc started.
>>> Xenomai: real-time nucleus v2.5-devel (Flying In A Blue Dream) loaded.
>>> Xenomai: starting native API services.
>>> Xenomai: starting POSIX services.
>>> Xenomai: starting RTDM services.
>>>
>>> The user-space builds and installs over NFS just fine:
>>>
>>> ./configure --host=ppc-unknown-linux-gnu --prefix=/usr/local/xenomai \
>>> CC=ppc_6xx-gcc CXX=ppc_6xx-g++ LD=ppc_6xx-ld
>>> make
>>> make DESTDIR=/opt/ppcrootmds/ install
>>>
>>>
>>> I can't see any fastsem options in the kernel. Does anyone have any
>>> advice?
>> The trunk/ contains bleeding edge code. The powerpc port there is currently in a
>> state of flux, due to the introduction of fast user-space mutexes in the Xenomai
>> nucleus.
>>
>> Please use the latest stable version such as 2.4.4, or our maintenance branch
>> instead: http://svn.gna.org/viewcvs/xenomai/branches/v2.4.x/.
>>
> Hi Phillipe,
> In trying to build xenomai 2.4.4 into the 2.6.26 kernel, using the
> default kconfig, I get
>
> CC kernel/xenomai/arch/generic/hal.o
> LD kernel/xenomai/arch/generic/xeno_hal.o
> LD kernel/xenomai/arch/generic/built-in.o
> LD kernel/xenomai/arch/built-in.o
> CC kernel/xenomai/nucleus/heap.o
> kernel/xenomai/nucleus/heap.c: In function 'xnheap_mount':
> kernel/xenomai/nucleus/heap.c:1140: error: implicit declaration of
> function 'class_device_create'
> kernel/xenomai/nucleus/heap.c:1142: warning: assignment makes pointer
> from integer without a cast
> kernel/xenomai/nucleus/heap.c: In function 'xnheap_umount':
> kernel/xenomai/nucleus/heap.c:1160: error: implicit declaration of
> function 'class_device_destroy'
> make[3]: *** [kernel/xenomai/nucleus/heap.o] Error 1
> make[2]: *** [kernel/xenomai/nucleus] Error 2
> make[1]: *** [kernel/xenomai] Error 2
> make: *** [kernel] Error 2
>
Yeah, sorry, my mistake. You need to pull from the maintenance branch to run
2.6.26 kernels on v2.4.x, you can't use 2.4.4 vanilla.
> You mentioned the maintenance branch, where can I find that?
>
svn co svn://svn.gna.org/svn/xenomai/branches/v2.4.x
Aside of this, Gilles's patch will successfully enable the fastsem support in
your kernel if you still want to live on the bleeding edge using the trunk. I
have just checked on an mpc836x, and the testsuite runs properly there as well
(cyclictest is the one that uses the fastsem stuff for now). Still no guarantee
though, I have only recently adapted Gilles's fastsem support to powerpc, and
this did not went through much testing yet.
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Xenomai kernel user-space problem running testsuite
2008-08-08 18:56 [Xenomai-help] Xenomai kernel user-space problem running testsuite Michael Galea
2008-08-08 19:46 ` Philippe Gerum
@ 2008-08-08 20:38 ` Gilles Chanteperdrix
2008-08-09 13:37 ` Wolfgang Grandegger
2 siblings, 0 replies; 6+ messages in thread
From: Gilles Chanteperdrix @ 2008-08-08 20:38 UTC (permalink / raw)
To: Michael Galea; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
Michael Galea wrote:
> I'm just starting with xenomai and am having troubles getting xenomai
> user space to talk to my kernel.
>
> I build the kernel and user-space xenomai code and try to run `latency`
> from the test suite and get
> mpc8360mds:# /usr/local/xenomai/bin/latency
> Xenomai: incompatible feature set
> (required="fastsem", present="nofastsem", missing="fastsem").
>
>
> I have built xenomai from svn into my 2.6.26 powerpc kernel and it looks
> good on the next boot, i.e. `dmesg |grep xeno -i` returns:
> I-pipe: Domain Xenomai registered.
> Xenomai: hal/powerpc started.
> Xenomai: real-time nucleus v2.5-devel (Flying In A Blue Dream) loaded.
> Xenomai: starting native API services.
> Xenomai: starting POSIX services.
> Xenomai: starting RTDM services.
>
> The user-space builds and installs over NFS just fine:
>
> ./configure --host=ppc-unknown-linux-gnu --prefix=/usr/local/xenomai \
> CC=ppc_6xx-gcc CXX=ppc_6xx-g++ LD=ppc_6xx-ld
> make
> make DESTDIR=/opt/ppcrootmds/ install
>
>
> I can't see any fastsem options in the kernel. Does anyone have any
> advice?
It is supposed to be set by the Kconfig, but it looks like I forgot to
add it, so, you may try the attached patch.
--
Gilles.
[-- Attachment #2: xeno-powerpc-enable-kernel-fastsem.diff --]
[-- Type: text/x-diff, Size: 361 bytes --]
Index: ksrc/arch/powerpc/Kconfig
===================================================================
--- ksrc/arch/powerpc/Kconfig (revision 4080)
+++ ksrc/arch/powerpc/Kconfig (working copy)
@@ -2,6 +2,10 @@ config XENO_GENERIC_STACKPOOL
bool
default y
+config XENO_FASTSEM
+ bool
+ default y
+
source "kernel/xenomai/nucleus/Kconfig"
menu "Machine"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Xenomai kernel user-space problem running testsuite
2008-08-08 18:56 [Xenomai-help] Xenomai kernel user-space problem running testsuite Michael Galea
2008-08-08 19:46 ` Philippe Gerum
2008-08-08 20:38 ` Gilles Chanteperdrix
@ 2008-08-09 13:37 ` Wolfgang Grandegger
2 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Grandegger @ 2008-08-09 13:37 UTC (permalink / raw)
To: Michael Galea; +Cc: xenomai
Michael Galea wrote:
> I'm just starting with xenomai and am having troubles getting xenomai
> user space to talk to my kernel.
>
> I build the kernel and user-space xenomai code and try to run `latency`
> from the test suite and get
> mpc8360mds:# /usr/local/xenomai/bin/latency
> Xenomai: incompatible feature set
> (required="fastsem", present="nofastsem", missing="fastsem").
>
>
> I have built xenomai from svn into my 2.6.26 powerpc kernel and it looks
> good on the next boot, i.e. `dmesg |grep xeno -i` returns:
> I-pipe: Domain Xenomai registered.
> Xenomai: hal/powerpc started.
> Xenomai: real-time nucleus v2.5-devel (Flying In A Blue Dream) loaded.
> Xenomai: starting native API services.
> Xenomai: starting POSIX services.
> Xenomai: starting RTDM services.
>
> The user-space builds and installs over NFS just fine:
>
> ./configure --host=ppc-unknown-linux-gnu --prefix=/usr/local/xenomai \
> CC=ppc_6xx-gcc CXX=ppc_6xx-g++ LD=ppc_6xx-ld
FYI, with the ELDK the following command already works:
./configure --host=ppc-linux --prefix=/usr/local/xenomai
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-08-09 13:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 18:56 [Xenomai-help] Xenomai kernel user-space problem running testsuite Michael Galea
2008-08-08 19:46 ` Philippe Gerum
2008-08-08 20:58 ` Michael Galea
2008-08-08 21:17 ` Philippe Gerum
2008-08-08 20:38 ` Gilles Chanteperdrix
2008-08-09 13:37 ` 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.