On 05/16/2011 12:23 PM, Koenig, Florian wrote: > Hi, > > i installed eldk into /opt/eldk-4.2, then i installed (make install) xenomai > user-space into /opt/eldk-4.2/ppc_4xx . > > Now when i try to build the xenomai examples with > > $ make XENO=/opt/eldk-4.2/usr/xenomai-2.5.6/bin > > It uses /lib/modules/2.6.32-5-686 from the local kernel, so i used > > $ make XENO=/opt/eldk-4.2/usr/xenomai-2.5.6/bin KSRC=/usr/src/linux-2.6.36
For building kernel space modules you need to specifiy KSRC as well, but not for user space apps. > But then it returns: > make[1]: Entering directory `/usr/src/xenomai-2.5.6/examples/native' > powerpc-linux-gcc -I/usr/xenomai-2.5.6/include -D_GNU_SOURCE -D_REENTRANT > -Wall -pipe -D__XENO__ -L/usr/xenomai-2.5.6/lib -lxenomai -lpthread > -lnative -Xlinker -rpath -Xlinker /usr/xenomai-2.5.6/lib trivial-periodic.c > -o trivial-periodic > trivial-periodic.c: In function 'main': > trivial-periodic.c:72: warning: control reaches end of non-void function I think you didn't specify DESTDIR? Or did you install xenomai-2.5.6 into /usr ? Normally you do: cd xenomai-2.5.6 ./configure --host=powerpc-linux --prefix=/usr/xenomai make export DESTDIR=/opt/eldk/ppc_4xx make install You also need the DESTDIR for building your apps. > When i now use trivial-periodic on the 405GP cpu, it also returns: illegal > instruction > > When i try to build the hello_world app with your command it returns: > > powerpc-linux-gcc -o test test.c > 'XENO=/opt/eldk-4.2/ppc_4xx/usr/xenomai-2.5.6/bin/xeno-config --skin native > --cflags --ldflags' -lrtdk > powerpc-linux-gcc: > XENO=/opt/eldk-4.2/ppc_4xx/usr/xenomai-2.5.6/bin/xeno-config --skin native > --cflags --ldflags: No such file or directory > > Why is xenomai using local /lib/modules/2.6.32-5-686 directory ? what do i > wrong with xenomai userspace part ? See above? Hope it helps. Wolfgang. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
