* [Xenomai] Problems Crosscompiling for Foxboard G20
@ 2013-03-22 17:07 mwollatz-vogt
2013-03-22 19:23 ` mwollatz-vogt
2013-03-22 20:55 ` Gilles Chanteperdrix
0 siblings, 2 replies; 3+ messages in thread
From: mwollatz-vogt @ 2013-03-22 17:07 UTC (permalink / raw)
To: xenomai
Hi List,
I?m following the howto http://www.federicololli.com/xenomaifoxg20.htm
i?m working with ubuntu 12 in a virtual-box.
i downloaded linux-2.6.35.9 and patched it with Federico?s patch
then i run make to compile the kernel.
i got the uImage
to get the armel-root i run the gen_root3.sh
(btw. i had to change in gen_root3.sh the rep?s in archieve and also add
mkdir etc and mkdir dev )
i installed xenomai-2.5.6 (this worked only after adding CFLAGS "-marm"
so i run
./configure --host=arm-linux-gnueabi --enable-arm-eabi
--enable-arm-mach=at91sam89 --disable-arm-tsc *CFLAGS="-marm"*
and
make DESTDIR=/ install
now i got in /usr/xenomai the files
now i want to compile the examples
so i followed the http://www.xenomai.org/index.php/Examples
*question:*
how to crosscompile the examples?
i tried this:
DESTDIR=/ make XENO=/usr/xenomai ARCH=ARM KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
and this:
DESTDIR=/ make XENO=/usr/xenomai ARCH=ARM CROSS_COMPILE=arm-none-linux KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
it is compiling with errors :
root@martin-VirtualBox:/home/martin/xenomai/xenomai-head/examples# DESTDIR=/
make XENO=/usr/xenomai ARCH=arm CROSS_COMPILE=arm-linux-gnueabi
KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
make[1]: Betrete Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/common'
make[1]: FÃ1/4r das Ziel »all« ist nichts zu tun.
make[1]: Verlasse Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/common'
make[1]: Betrete Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/native'
arm-linux-gnueabi-gcc -I//usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT
-Wall -pipe -D__XENO__ rtprint.c -Xlinker -rpath -Xlinker
-//usr/xenomai/lib -lnative -L//usr/xenomai/lib -lxenomai -lpthread -o
-//rtprint
/tmp/ccDtXhmB.o: In function `task2_func':
rtprint.c:(.text+0x20): undefined reference to `rt_printf'
rtprint.c:(.text+0x48): undefined reference to `rt_print_buffer_name'
rtprint.c:(.text+0x68): undefined reference to `rt_fprintf'
/tmp/ccDtXhmB.o: In function `main':
rtprint.c:(.text+0xb0): undefined reference to `rt_print_auto_init'
rtprint.c:(.text+0xbc): undefined reference to `rt_print_init'
rtprint.c:(.text+0x124): undefined reference to `rt_print_buffer_name'
rtprint.c:(.text+0x144): undefined reference to `rt_printf'
collect2: ld returned 1 exit status
make[1]: *** [rtprint] Fehler 1
make[1]: Verlasse Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/native'
make[1]: Betrete Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/posix'
echo make -C /home/martin/xenomai/xenomai-2.5.6/ksrc ARCH=arm
CROSS_COMPILE=arm-linux-gnueabi
SUBDIRS=/home/martin/xenomai/xenomai-head/examples/posix modules
make -C /home/martin/xenomai/xenomai-2.5.6/ksrc ARCH=arm
CROSS_COMPILE=arm-linux-gnueabi
SUBDIRS=/home/martin/xenomai/xenomai-head/examples/posix modules
make -C /home/martin/xenomai/xenomai-2.5.6/ksrc ARCH=arm
CROSS_COMPILE=arm-linux-gnueabi
SUBDIRS=/home/martin/xenomai/xenomai-head/examples/posix modules
make[2]: Betrete Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
Makefile:18: /Rules.make: Datei oder Verzeichnis nicht gefunden
make[2]: *** Keine Regel, um »/Rules.make« zu erstellen. Schluss.
make[2]: Verlasse Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/posix'
make[1]: Betrete Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/driver-api'
make -C /home/martin/xenomai/xenomai-2.5.6/ksrc
SUBDIRS=/home/martin/xenomai/xenomai-head/examples/rtdm/driver-api modules
make[2]: Betrete Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
Makefile:18: /Rules.make: Datei oder Verzeichnis nicht gefunden
make[2]: *** Keine Regel, um »/Rules.make« zu erstellen. Schluss.
make[2]: Verlasse Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/driver-api'
make[1]: Betrete Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/ipc'
arm-linux-gnueabi-gcc -I//usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT
-Wall -pipe -D__XENO__ -I//usr/xenomai/include/posix -Xlinker -rpath
--Xlinker //usr/xenomai/lib xddp-echo.c
---Wl,@//usr/xenomai/lib/posix.wrappers -L//usr/xenomai/lib -lpthread_rt
----lxenomai -lpthread -lrt -lrtdm -L//usr/xenomai/lib -lxenomai -lpthread
-----o xddp-echo
xddp-echo.c: In function ârealtime_threadâ:
xddp-echo.c:115: error: âSOL_XDDPâ undeclared (first use in this function)
xddp-echo.c:115: error: (Each undeclared identifier is reported only once
xddp-echo.c:115: error: for each function it appears in.)
xddp-echo.c:115: error: âXDDP_POOLSZâ undeclared (first use in this
function)
make[1]: *** [xddp-echo] Fehler 1
make[1]: Verlasse Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/ipc'
make[1]: Betrete Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/serial'
make[1]: FÃ1/4r das Ziel »all« ist nichts zu tun.
make[1]: Verlasse Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/serial'
make[1]: Betrete Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/can'
make[1]: FÃ1/4r das Ziel »all« ist nichts zu tun.
make[1]: Verlasse Verzeichnis
'/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/can'
I?m following the howto http://www.federicololli.com/xenomaifoxg20.htm
i?m working with ubuntu 12 in a virtual-box.
i downloaded linux-2.6.35.9 and patched it with Federico?s patch
then i run make to compile the kernel.
i got the uImage
to get the armel-root i run the gen_root3.sh
(btw. i had to change in gen_root3.sh the rep?s in archieve and also add
mkdir etc and mkdir dev )
i installed xenomai-2.5.6 (this worked only after adding CFLAGS "-marm"
so i run
./configure --host=arm-linux-gnueabi --enable-arm-eabi
--enable-arm-mach=at91sam89 --disable-arm-tsc *CFLAGS="-marm"*
and
make DESTDIR=/ install
now i got in /usr/xenomai the files
now i want to compile the examples
so i followed the http://www.xenomai.org/index.php/Examples
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] Problems Crosscompiling for Foxboard G20
2013-03-22 17:07 [Xenomai] Problems Crosscompiling for Foxboard G20 mwollatz-vogt
@ 2013-03-22 19:23 ` mwollatz-vogt
2013-03-22 20:55 ` Gilles Chanteperdrix
1 sibling, 0 replies; 3+ messages in thread
From: mwollatz-vogt @ 2013-03-22 19:23 UTC (permalink / raw)
To: xenomai
the variable __kernel__ is not set, and so not all includes are working.
where should this __kernel__ be defined ?
Am 22.03.2013 18:07, schrieb mwollatz-vogt:
> Hi List,
>
> I?m following the howto http://www.federicololli.com/xenomaifoxg20.htm
>
> i?m working with ubuntu 12 in a virtual-box.
> i downloaded linux-2.6.35.9 and patched it with Federico?s patch
> then i run make to compile the kernel.
> i got the uImage
> to get the armel-root i run the gen_root3.sh
> (btw. i had to change in gen_root3.sh the rep?s in archieve and also
> add mkdir etc and mkdir dev )
>
> i installed xenomai-2.5.6 (this worked only after adding CFLAGS "-marm"
> so i run
> ./configure --host=arm-linux-gnueabi --enable-arm-eabi
> --enable-arm-mach=at91sam89 --disable-arm-tsc *CFLAGS="-marm"*
> and
> make DESTDIR=/ install
> now i got in /usr/xenomai the files
>
> now i want to compile the examples
> so i followed the http://www.xenomai.org/index.php/Examples
>
> *question:*
> how to crosscompile the examples?
>
> i tried this:
>
> DESTDIR=/ make XENO=/usr/xenomai ARCH=ARM
> KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
>
> and this:
>
> DESTDIR=/ make XENO=/usr/xenomai ARCH=ARM CROSS_COMPILE=arm-none-linux
> KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
>
> it is compiling with errors :
>
> root@martin-VirtualBox:/home/martin/xenomai/xenomai-head/examples#
> DESTDIR=/
> make XENO=/usr/xenomai ARCH=arm CROSS_COMPILE=arm-linux-gnueabi
> KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
> make[1]: Betrete Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/common'
> make[1]: FÃ1/4r das Ziel »all« ist nichts zu tun.
> make[1]: Verlasse Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/common'
> make[1]: Betrete Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/native'
> arm-linux-gnueabi-gcc -I//usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT
> -Wall -pipe -D__XENO__ rtprint.c -Xlinker -rpath -Xlinker
> -//usr/xenomai/lib -lnative -L//usr/xenomai/lib -lxenomai -lpthread -o
> -//rtprint
> /tmp/ccDtXhmB.o: In function `task2_func':
> rtprint.c:(.text+0x20): undefined reference to `rt_printf'
> rtprint.c:(.text+0x48): undefined reference to `rt_print_buffer_name'
> rtprint.c:(.text+0x68): undefined reference to `rt_fprintf'
> /tmp/ccDtXhmB.o: In function `main':
> rtprint.c:(.text+0xb0): undefined reference to `rt_print_auto_init'
> rtprint.c:(.text+0xbc): undefined reference to `rt_print_init'
> rtprint.c:(.text+0x124): undefined reference to `rt_print_buffer_name'
> rtprint.c:(.text+0x144): undefined reference to `rt_printf'
> collect2: ld returned 1 exit status
> make[1]: *** [rtprint] Fehler 1
> make[1]: Verlasse Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/native'
> make[1]: Betrete Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/posix'
> echo make -C /home/martin/xenomai/xenomai-2.5.6/ksrc ARCH=arm
> CROSS_COMPILE=arm-linux-gnueabi
> SUBDIRS=/home/martin/xenomai/xenomai-head/examples/posix modules
> make -C /home/martin/xenomai/xenomai-2.5.6/ksrc ARCH=arm
> CROSS_COMPILE=arm-linux-gnueabi
> SUBDIRS=/home/martin/xenomai/xenomai-head/examples/posix modules
> make -C /home/martin/xenomai/xenomai-2.5.6/ksrc ARCH=arm
> CROSS_COMPILE=arm-linux-gnueabi
> SUBDIRS=/home/martin/xenomai/xenomai-head/examples/posix modules
> make[2]: Betrete Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
> Makefile:18: /Rules.make: Datei oder Verzeichnis nicht gefunden
> make[2]: *** Keine Regel, um »/Rules.make« zu erstellen. Schluss.
> make[2]: Verlasse Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
> make[1]: *** [all] Fehler 2
> make[1]: Verlasse Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/posix'
> make[1]: Betrete Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/driver-api'
> make -C /home/martin/xenomai/xenomai-2.5.6/ksrc
> SUBDIRS=/home/martin/xenomai/xenomai-head/examples/rtdm/driver-api
> modules
> make[2]: Betrete Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
> Makefile:18: /Rules.make: Datei oder Verzeichnis nicht gefunden
> make[2]: *** Keine Regel, um »/Rules.make« zu erstellen. Schluss.
> make[2]: Verlasse Verzeichnis '/home/martin/xenomai/xenomai-2.5.6/ksrc'
> make[1]: *** [all] Fehler 2
> make[1]: Verlasse Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/driver-api'
> make[1]: Betrete Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/ipc'
> arm-linux-gnueabi-gcc -I//usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT
> -Wall -pipe -D__XENO__ -I//usr/xenomai/include/posix -Xlinker -rpath
> --Xlinker //usr/xenomai/lib xddp-echo.c
> ---Wl,@//usr/xenomai/lib/posix.wrappers -L//usr/xenomai/lib -lpthread_rt
> ----lxenomai -lpthread -lrt -lrtdm -L//usr/xenomai/lib -lxenomai
> -lpthread
> -----o xddp-echo
> xddp-echo.c: In function ârealtime_threadâ:
> xddp-echo.c:115: error: âSOL_XDDPâ undeclared (first use in this
> function)
> xddp-echo.c:115: error: (Each undeclared identifier is reported only once
> xddp-echo.c:115: error: for each function it appears in.)
> xddp-echo.c:115: error: âXDDP_POOLSZâ undeclared (first use in this
> function)
> make[1]: *** [xddp-echo] Fehler 1
> make[1]: Verlasse Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/ipc'
> make[1]: Betrete Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/serial'
> make[1]: FÃ1/4r das Ziel »all« ist nichts zu tun.
> make[1]: Verlasse Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/serial'
> make[1]: Betrete Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/can'
> make[1]: FÃ1/4r das Ziel »all« ist nichts zu tun.
> make[1]: Verlasse Verzeichnis
> '/home/martin/xenomai/xenomai-head/examples/rtdm/profiles/can'
>
>
> I?m following the howto http://www.federicololli.com/xenomaifoxg20.htm
>
> i?m working with ubuntu 12 in a virtual-box.
> i downloaded linux-2.6.35.9 and patched it with Federico?s patch
> then i run make to compile the kernel.
> i got the uImage
> to get the armel-root i run the gen_root3.sh
> (btw. i had to change in gen_root3.sh the rep?s in archieve and also
> add mkdir etc and mkdir dev )
>
> i installed xenomai-2.5.6 (this worked only after adding CFLAGS "-marm"
> so i run
> ./configure --host=arm-linux-gnueabi --enable-arm-eabi
> --enable-arm-mach=at91sam89 --disable-arm-tsc *CFLAGS="-marm"*
> and
> make DESTDIR=/ install
> now i got in /usr/xenomai the files
>
> now i want to compile the examples
> so i followed the http://www.xenomai.org/index.php/Examples
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] Problems Crosscompiling for Foxboard G20
2013-03-22 17:07 [Xenomai] Problems Crosscompiling for Foxboard G20 mwollatz-vogt
2013-03-22 19:23 ` mwollatz-vogt
@ 2013-03-22 20:55 ` Gilles Chanteperdrix
1 sibling, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2013-03-22 20:55 UTC (permalink / raw)
To: mwollatz-vogt; +Cc: xenomai
On 03/22/2013 06:07 PM, mwollatz-vogt wrote:
> Hi List,
Hi.
>
> I?m following the howto
> http://www.federicololli.com/xenomaifoxg20.htm
This URL is unreachable.
>
> i?m working with ubuntu 12 in a virtual-box. i downloaded
> linux-2.6.35.9 and patched it with Federico?s patch then i run make
> to compile the kernel. i got the uImage to get the armel-root i run
> the gen_root3.sh (btw. i had to change in gen_root3.sh the rep?s in
> archieve and also add mkdir etc and mkdir dev )
>
> i installed xenomai-2.5.6 (this worked only after adding CFLAGS
> "-marm"
Xenomai 2.5.6 is outdated, please consider installing xenomai 2.6.2.1.
> so i run ./configure --host=arm-linux-gnueabi --enable-arm-eabi
> --enable-arm-mach=at91sam89 --disable-arm-tsc *CFLAGS="-marm"*
It should be --enable-arm-mach=at91sam9g20, if you are using a 9g20.
Adding -marm should only be necessary for ompilers compiling by default
for thumb2 mode. If the compiler you use compiles by default for thumb2
mode, it is certainly not a recommended toolchain for at91sam9g20, as
this processor does not support thumb2 mode.
Passing --enable-arm-tsc will result in lower latencies when accessing
high resolution counter.
Finally, if you install xenomai 2.6.2.1, you will not need any of these
options, as the default should work (except for -marm). Note that
Xenomai 2.6.2.1 will run with any previous version of the I-pipe patch,
so should work with the I-pipe patch for 2.6.35, if you insist on using
this version, but newer versions should still support at91sam9g20, if
you are ready to try.
> and make DESTDIR=/ install now i got in /usr/xenomai the files
If you are not compiling on the sam9g20, make DESTDIR=/ is almost not
the right thing to do. DESTDIR should point to the place on your disk
where the rootfs for the target board is installed.
>
> now i want to compile the examples so i followed the
> http://www.xenomai.org/index.php/Examples
That is not the first thing to do. The first thing to do is to run the
latency test by running "xeno latency" on the target.
>
> *question:* how to crosscompile the examples?
>
> i tried this:
>
> DESTDIR=/ make XENO=/usr/xenomai ARCH=ARM
> KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
>
> and this:
>
> DESTDIR=/ make XENO=/usr/xenomai ARCH=ARM
> CROSS_COMPILE=arm-none-linux
> KSRC=/home/martin/xenomai/xenomai-2.5.6/ksrc
>
> it is compiling with errors :
The Examples are made for the current version of Xenomai, in order to
get them to compile with older versions, you may have to do some
adaptations to the Makefiles.
--
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-22 20:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22 17:07 [Xenomai] Problems Crosscompiling for Foxboard G20 mwollatz-vogt
2013-03-22 19:23 ` mwollatz-vogt
2013-03-22 20:55 ` Gilles Chanteperdrix
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.