All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] build xenomai userspace app, illegal instruction
@ 2011-05-13 12:46 Koenig, Florian
  2011-05-13 13:15 ` Wolfgang Grandegger
  0 siblings, 1 reply; 14+ messages in thread
From: Koenig, Florian @ 2011-05-13 12:46 UTC (permalink / raw)
  To: xenomai

Hi,
i have a powerpc 405GP without FPU and want to build a xenomai application. I
installed and setup eldk-4.2 for ppc_4xx,  to have a cross toolchain on my
x86 computer. After that, i patched the linux-2.6.36 kernel with

scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.36/
--adeos=ksrc/arch/powerpc/patches/adeos-ipipe-2.6.36-powerpc-2.12-03.patch

Then i configured and build the kernel. I tested the kernel on the cpu, and
it runs well.
Now i switched into the xenomai directory and to build the user-space
support, i called:

./configure --host=ppc-linux CFLAGS="-msoft-float" LDFLAGS="-msoft-float"
;make;make install

This builds without any errors. Now i simply try to build the hello_world
example from http://www.cs.ru.nl/lab/xenomai/exercises/ex01/Exercise-1.html
with:

powerpc-linux-gcc -msoft-float -L/usr/xenomai/lib -lnative -lxenomai
-lpthread_rt -lrtdk -I/usr/xenomai/include -o test test.c

The build of the test app is without any errors, but when i run it on the
405GP cpu (which has no FPU) it returns: ILLEGAL INSTRUCTION. If i look at
/proc/xenomai/faults there are only zero´s.

I know i need soft-float for this cpu, but i think a got everything correctly
setup/build, or?

After reading and doing, i found in the xenomai directory a file called
scripts/defconfig.frag, where the last line is:

CONFIG_XENO_HW_FPU=y

Now i dont know, what the file defconfig.frag is for, and why is there
hardware fpu set to yes?

Thanks for help

florian


----------------------------------------------------------------------------------------------------------------------------
Omicron NanoTechnology GmbH
Limburger Str. 75
65232 Taunusstein, GERMANY 
Registration: HRB Nr.: 16116, Amtsgericht Wiesbaden, VAT no. DE111361420
Geschäftsführer / Managing Director: Norbert Nold               www.omicron.de 



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-05-17 14:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13 12:46 [Xenomai-help] build xenomai userspace app, illegal instruction Koenig, Florian
2011-05-13 13:15 ` Wolfgang Grandegger
2011-05-16 10:23   ` Koenig, Florian
2011-05-16 10:56     ` Wolfgang Grandegger
2011-05-16 11:17       ` Wolfgang Grandegger
2011-05-16 13:27         ` Koenig, Florian
2011-05-16 14:45           ` Wolfgang Grandegger
2011-05-17  7:03             ` Koenig, Florian
2011-05-17  7:14               ` Wolfgang Grandegger
     [not found]                 ` <89B30389DB4AE240AC1227F3FDBB7CCF029B9111@domain.hid>
2011-05-17  9:27                   ` Wolfgang Grandegger
2011-05-17 11:11                     ` Gilles Chanteperdrix
2011-05-17 11:22                       ` Wolfgang Grandegger
2011-05-17 13:21                       ` Koenig, Florian
2011-05-17 14:06                         ` Wolfgang Grandegger

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.