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:
ever...@t410:/media/Angstrom/usr/xenomai$ ls
bin  include  lib  sbin  share

and

cd /home/everett/tmp/xenomai-2.5.3/ksrc/
ever...@t410:~/tmp/xenomai-2.5.3/ksrc$ ls
arch  Config.in  drivers  Makefile  nucleus  skins
ever...@t410:~/tmp/xenomai-2.5.3/ksrc$

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
<[email protected]> 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.
>

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to