Skip to contentSkip to conversation

Problem running koan (UVM)

Xenomai-help Niklaus Giger 2 participants 3 messages Dec 1, 2005 – Dec 3, 2005

lore
Share & tools
lore
#0 lore raw

Hi

Many thanks to Philip Gerum for his previous help!

I am no able to sucessfully link koan on my PPC405 board.

However after calling

$ koan
The only output I get is
Xenomai/uvm: real-time nucleus v2.1 (Surfing With The Alien) loaded.
koan was linked like this:
 /home/hcu/tools/gcc-3.4.4-glibc-2.3.5/powerpc-405-linux-gnu/bin/powerpc-405-linux-gnu-g++  
-g  -o koan   /home/hcu/project/bb/3_1_x/work/xeno/koan.o   
-u__xeno_skin_init -L/mnt/data.ng/hcu/rootfs/usr/xenomai/lib -luvm -lnucleus 
-lpthread -lnative -lvxworks

Nothing more. I know its now time to build the GDB stub, but as it is the first time that I do this it will take a moment to read the documentation.

In the mean time any help would be appreciated.

Looking at the output of xeno-config in my cross compile case I think that one should create two xeno-config's one representing the target's view and one for the host which did the cross-compile, e.g.creating in the build directory a xeno-config-host. And how should we handle a canadian cross?

Regards

Signature · 1 line
Niklaus Giger
#1 lore raw
Quoted 15 lines · Niklaus Giger

Hi

Many thanks to Philip Gerum for his previous help!

I am no able to sucessfully link koan on my PPC405 board.

However after calling $ koan
The only output I get is
Xenomai/uvm: real-time nucleus v2.1 (Surfing With The Alien) loaded.
koan was linked like this:
/home/hcu/tools/gcc-3.4.4-glibc-2.3.5/powerpc-405-linux-gnu/bin/powerpc-405-linux-gnu-g++

(quoted diff) +0 -3
-g  -o koan   /home/hcu/project/bb/3_1_x/work/xeno/koan.o   
-u__xeno_skin_init -L/mnt/data.ng/hcu/rootfs/usr/xenomai/lib -luvm -lnucleus 
-lpthread -lnative -lvxworks
Quoted 5 lines

Nothing more. I know its now time to build the GDB stub, but as it is the first time that I do this it will take a moment to read the documentation.

In the mean time any help would be appreciated.

Looking at the output of xeno-config in my cross compile case I think that one should create two xeno-config's one representing the target's view and one for the host which did the cross-compile, e.g.creating in the build directory a xeno-config-host.

Actually, xeno-config currently always presents the build system's view (e.g the cross-compiling side). E.g., compiling the user-space support for some ppc architecture can be done this way:

.../configure --build=config.guess --host=powerpc-unknown-linux-gnu CC=ppc_82xx-gcc CXX=ppc_82xx-gcc AR=ppc_82xx-ar LD=ppc_82xx-ld

Since xeno-config is informed of the build setup determined by configure, it will return the cross-compiler path and the proper compilation and link flags for building executables for the target already. Following the above example, CC, CXX, compilation and link flags will be the ones used to cross-compile an executable on the current build system for the target system.

And how should we handle a canadian cross?

Quoted 1 line

Never considered the issue so far, quite frankly. Do you actually want to cross-build Xenomai systems that would in turn cross-build Xenomai apps?

Signature · 1 line
Philippe.
#2 lore raw

Am Freitag, 2. Dezember 2005 11.26 schrieb Philippe Gerum:

Quoted 33 lines
Quoted 21 lines · Niklaus Giger

Hi

Many thanks to Philip Gerum for his previous help!

I am no able to sucessfully link koan on my PPC405 board.

However after calling

$ koan
The only output I get is
Xenomai/uvm: real-time nucleus v2.1 (Surfing With The Alien) loaded.
koan was linked like this:

/home/hcu/tools/gcc-3.4.4-glibc-2.3.5/powerpc-405-linux-gnu/bin/powerpc-4
05-linux-gnu-g++ -g -o koan /home/hcu/project/bb/3_1_x/work/xeno/koan.o

(quoted diff) +0 -2
-u__xeno_skin_init -L/mnt/data.ng/hcu/rootfs/usr/xenomai/lib -luvm
-lnucleus -lpthread -lnative -lvxworks

Nothing more. I know its now time to build the GDB stub, but as it is the first time that I do this it will take a moment to read the documentation.

Quoted 6 lines

In the mean time any help would be appreciated.

Looking at the output of xeno-config in my cross compile case I think that one should create two xeno-config's one representing the target's view and one for the host which did the cross-compile, e.g.creating in the build directory a xeno-config-host.

Actually, xeno-config currently always presents the build system's view (e.g the cross-compiling side). E.g., compiling the user-space support for some ppc architecture can be done this way:

Quoted 2 lines

.../configure --build=config.guess --host=powerpc-unknown-linux-gnu CC=ppc_82xx-gcc CXX=ppc_82xx-gcc AR=ppc_82xx-ar LD=ppc_82xx-ld

Thanks for the hint. As I compile my own sources using jam. I had to use different means to get the same results.

Quoted 7 lines

Since xeno-config is informed of the build setup determined by configure, it will return the cross-compiler path and the proper compilation and link flags for building executables for the target already. Following the above example, CC, CXX, compilation and link flags will be the ones used to cross-compile an executable on the current build system for the target system.

Quoted 5 lines

And how should we handle a canadian cross?

Never considered the issue so far, quite frankly. Do you actually want to cross-build Xenomai systems that would in turn cross-build Xenomai apps?

No. It was more a matter of curiosity. But the cross-compile case interests me really.

Signature · 1 line
Niklaus Giger