All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Build issue Linux kernel 2.6.38.8 - Xenomai 2.5.6
@ 2011-09-04 19:05 Jeroen Van den Keybus
  2011-09-04 19:09 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Jeroen Van den Keybus @ 2011-09-04 19:05 UTC (permalink / raw)
  To: xenomai

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

I have patched a 2.6.38.8 kernel with the Adeos 2.10-01 patch. All Xenomai
2.5.6 built-in in the kernel. The system boots properly on an Atom D525:


> [    0.510257] I-pipe: Domain Xenomai registered.
> [    0.510493] Xenomai: hal/i386 started.
> [    0.510626] Xenomai: scheduling class idle registered.
> [    0.510732] Xenomai: scheduling class rt registered.
> [    0.516816] Xenomai: real-time nucleus v2.5.6 (Wormhole Wizards) loaded.
> [    0.517216] Xenomai: SMI-enabled chipset found, but SMI workaround
> disabled
> [    0.517220]          (check CONFIG_XENO_HW_SMI_WORKAROUND). You may
> encounter
> [    0.517223]          high interrupt latencies!
> [    0.517643] Xenomai: starting native API services.
> [    0.517749] Xenomai: starting POSIX services.
> [    0.517906] Xenomai: starting RTDM services.
>

/proc also contains xenomai entry.

Whenever I run an API function (such as rt_task_create), I get -38 (-ENOSYS
/ Not Implemented) and nothing in dmesg. As such, none of the testsuite
programs can be run.

I have understood from previous posts that compiler options may cause
problems.

What I already tried:

Original:
- Linux kernel compiled for Atom. Stripped down to bare minimums (runs
diskless off NFS).
- scripts/prepare-kernel.sh --linux=../linux-2.6.38.8
--adeos=../adeos-ipipe-2.6.38.8-x86-2.10-01.patch --arch=i686
- ./configure --enable-x86-sep --enable-smp

Variant 1 (no effect):
- ./configure --enable-x86-sep --enable-smp CFLAGS="-m32 -O2" LDFLAGS="-m32"
Variant 2 (reason: kernel seems to be built with -O2 -fomit-frame-pointer
(unsure where to verify though), but no effect):
- ./configure --enable-x86-sep --enable-smp CFLAGS="-m32 -O2
-fomit-frame-pointer" LDFLAGS="-m32"
Variant 3 (no effect)
- Same .config Linux kernel compiled for Pentium Pro (i686)
- ./configure --enable-x86-sep --enable-smp

Since kernel compiles are a very time-costly way of debugging and I also do
not fully understand what I'm really doing when fiddling with gcc options,
it seems that help is now much appreciated.

Thanks,

[-- Attachment #2: Type: text/html, Size: 2575 bytes --]

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

end of thread, other threads:[~2011-09-04 19:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-04 19:05 [Xenomai-help] Build issue Linux kernel 2.6.38.8 - Xenomai 2.5.6 Jeroen Van den Keybus
2011-09-04 19:09 ` Gilles Chanteperdrix
     [not found]   ` <CAPRPZsAmv9eRQOj-ocKMwjKzEuzbQU+XKr6iAPwvPM9QRXZACQ@mail.gmail.com>
2011-09-04 19:37     ` Jeroen Van den Keybus

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.