All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] How to compile xenomai examples?
@ 2010-05-20 10:02 Everett Wang
  2010-05-20 10:17 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Everett Wang @ 2010-05-20 10:02 UTC (permalink / raw)
  To: xenomai

Hi All,

I am still new to learn to use xenomai. I have managed to compile and
install xenomai to
my beagleboard. It seems that the installation is OK since I can run
the kernel/latency test
fine. But I am still struggling to compile the examples comes with the xenomai.

Here is hardware and software setup:

Host: PC with Ubuntu 10.04, with code sourcery's cross compiler to
2010q1 installed. I followed
the README.INSTALL from the xenomai 2.5.3 for arm installation. And my
new kernel is
2.6.33.3

This is the procedure I used for install xenomai

1) patch my linux kernel:
./scripts/prepare-kernel.sh --arch=arm
--adeos=/usr/xenomai/ksrc/arch/arm/patches/adeos-ipipe-2.6.33-arm-*
--linux=/usr/src/linux

2)  Config the kernel
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig

3) Compile and install the kernel and modules
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage modules
then copied resulted uImage into my SD boot, copied my lib/modules/2.6.33.3

4) Configure xenomai
./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi
--enable-arm-mach=omap3 --enable-arm-tsc

5) Compile and install xenomai to my SD
make DESTDIR=/media/Angstrom install

Upon reboot to the new kernel using beagleboard, I can run
testsuit/kernel/latency/ fine

The problem happens when I try to compile the examples in xenomai. i
issued this:

cd xenomai-2.5.3/examples/rtdm/profiles/serial
make XENO=/media/Angstrom/usr/xenomai/bin ARCH=arm
KSRC=/home/everett/BB/xenomai-2.5.3/ksrc

I got this:
--xeno-cflags is deprecated, use --skin=name --cflags instead
--xeno-ldflags is deprecated, use --skin=name --ldflags instead
arm-none-linux-gnueabi-gcc -I/usr/xenomai/include -D_GNU_SOURCE
-D_REENTRANT -Wall -pipe -D__XENO__   -L/usr/xenomai/lib -lxenomai
-lpthread  -lnative -lrtdm -Xlinker -rpath -Xlinker /usr/xenomai/lib
cross-link.c   -o cross-link
In file included from /usr/xenomai/include/nucleus/thread.h:25,
                 from /usr/xenomai/include/nucleus/sched.h:31,
                 from /usr/xenomai/include/native/task.h:25,
                 from cross-link.c:28:
/usr/xenomai/include/nucleus/types.h:40: fatal error:
asm/xenomai/system.h: No such file or directory
compilation terminated.
make: *** [cross-link] Error 1

Doesn't any have any suggestions?

Best regards,

Everett


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

end of thread, other threads:[~2010-05-21  7:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20 10:02 [Xenomai-help] How to compile xenomai examples? Everett Wang
2010-05-20 10:17 ` Gilles Chanteperdrix
2010-05-21  3:58   ` Everett Wang
2010-05-21  7:08     ` Gilles Chanteperdrix
2010-05-21  7:36       ` Everett Wang

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.