* [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* Re: [Xenomai-help] How to compile xenomai examples?
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
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-05-20 10:17 UTC (permalink / raw)
To: Everett Wang; +Cc: xenomai
Everett Wang wrote:
> 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 guess it should be XENO=/media/Angstrom/usr/xenomai
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] How to compile xenomai examples?
2010-05-20 10:17 ` Gilles Chanteperdrix
@ 2010-05-21 3:58 ` Everett Wang
2010-05-21 7:08 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Everett Wang @ 2010-05-21 3:58 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Hi Gilles,
Thanks for your kind reply. If I do that, the result is similar:
cd /examples/rtdm/profiles/serial
make XENO=/media/Angstrom/usr/xenomai ARCH=arm
KSRC=/home/everett/tmp/xenomai-2.5.3/ksrc
--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
I have checked that /media/Angstrom/usr/xenomai has files installed:
everett@domain.hid$ ls
bin include lib sbin share
and
cd /home/everett/tmp/xenomai-2.5.3/ksrc/
everett@domain.hid$ ls
arch Config.in drivers Makefile nucleus skins
everett@domain.hid$
I can only see a system.h in this directory
/usr/xenomai/include/asm-arm/system.h
Is this the right file that compiler is looking for?
Best regards,
Everett
On Thu, May 20, 2010 at 6:17 PM, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> Everett Wang wrote:
>> 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 guess it should be XENO=/media/Angstrom/usr/xenomai
>
> --
> Gilles.
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [Xenomai-help] How to compile xenomai examples?
2010-05-21 3:58 ` Everett Wang
@ 2010-05-21 7:08 ` Gilles Chanteperdrix
2010-05-21 7:36 ` Everett Wang
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-05-21 7:08 UTC (permalink / raw)
To: Everett Wang; +Cc: xenomai
Everett Wang wrote:
> Hi Gilles,
>
> Thanks for your kind reply. If I do that, the result is similar:
>
> make XENO=/media/Angstrom/usr/xenomai ARCH=arm
> KSRC=/home/everett/tmp/xenomai-2.5.3/ksrc
try:
DESTDIR=/media/Angstrom make XENO=/media/Angstrom/usr/xenomai ARCH=ARM SRC=/home/everett/tmp/xenomai-2.5.3/ksrc
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] How to compile xenomai examples?
2010-05-21 7:08 ` Gilles Chanteperdrix
@ 2010-05-21 7:36 ` Everett Wang
0 siblings, 0 replies; 5+ messages in thread
From: Everett Wang @ 2010-05-21 7:36 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Hi Gilles,
Your suggestions seems working.
DESTDIR=/media/Angstrom make XENO=/media/Angstrom/usr/xenomai ARCH=ARM
SRC=/home/everett/tmp/xenomai-2.5.3/ksrc
--xeno-cflags is deprecated, use --skin=name --cflags instead
--xeno-ldflags is deprecated, use --skin=name --ldflags instead
arm-none-linux-gnueabi-gcc -I/media/Angstrom/usr/xenomai/include
-D_GNU_SOURCE -D_REENTRANT -Wall -pipe -D__XENO__
-L/media/Angstrom/usr/xenomai/lib -lxenomai -lpthread -lnative -lrtdm
-Xlinker -rpath -Xlinker /media/Angstrom/usr/xenomai/lib cross-link.c
-o cross-link
root@domain.hid# ls
cross-link cross-link.c Makefile
It produced a cross-link file. I also tried to make in the examples
directory with
similar result for all the examples.
Thanks a lot and have a nice weekend,
Everett
On Fri, May 21, 2010 at 3:08 PM, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> Everett Wang wrote:
>> Hi Gilles,
>>
>> Thanks for your kind reply. If I do that, the result is similar:
>>
>> make XENO=/media/Angstrom/usr/xenomai ARCH=arm
>> KSRC=/home/everett/tmp/xenomai-2.5.3/ksrc
>
> try:
> DESTDIR=/media/Angstrom make XENO=/media/Angstrom/usr/xenomai ARCH=ARM SRC=/home/everett/tmp/xenomai-2.5.3/ksrc
>
> --
> Gilles.
>
^ 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.