All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: "Koenig, Florian" <F.Koenig@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] build xenomai userspace app, illegal instruction
Date: Tue, 17 May 2011 11:27:38 +0200	[thread overview]
Message-ID: <4DD23F8A.5000107@domain.hid> (raw)
In-Reply-To: <89B30389DB4AE240AC1227F3FDBB7CCF029B9111@domain.hid>

On 05/17/2011 09:53 AM, Koenig, Florian wrote:
> Hi,
> 
> Do you have CONFIG_XENO_HW_FPU disabled? If not, please disable and
> retry. Illegal instructions are maybe due to hard-float instructions in
> the binary. I will check on our Walnut board when time permits...
> hopefully today.

Nobody will understand that the above paragraph was written by myself
without proper quoting!
 
> I set CONFIG_XENO_HW_FPU to 
> # CONFIG_XENO_HW_FPU is not set

Well, that should not be done manually and it could not be set via
"menuconfig", I just realized. It's not the problem anyway, I believe.

> I rebuild the xenomai userspace stuff (make clean;./configure
> --host=powerpc-linux;make;make install), but the same (illegal instruction),
> when i run it on powerpc cpu.

I just tried latency on my Walnut board and it works fine:

-bash-3.2# cat /proc/cpuinfo 
processor	: 0
cpu		: 405GP
clock		: 200.000000MHz
revision	: 1.69 (pvr 4011 0145)
bogomips	: 400.00
timebase	: 200000000
platform	: Walnut
model		: ibm,walnut
Memory		: 32 MB

-bash-3.2# cd /home/wolf/bin/
-bash-3.2# ./latency 
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|     10.840|     11.570|     35.235|       0|     0|     10.840|     35.235
RTD|      9.710|     10.675|     37.205|       0|     0|      9.710|     37.205
RTD|      9.710|     10.465|     35.995|       0|     0|      9.710|     37.205
RTD|      9.710|     10.475|     43.635|       0|     0|      9.710|     43.635
RTD|      9.710|     13.885|     45.525|       0|     0|      9.710|     45.525
RTD|      9.710|     11.605|     37.505|       0|     0|      9.710|     45.525
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS|      9.710|     11.445|     45.525|       0|     0|    00:00:07/00:00:07

And also the example trivial-periodic works:

-bash-3.2# export LD_LIBRARY_PATH=/home/wolf/lib
-bash-3.2# ./trivial-periodic
Time since last turn: 1000.009340 ms
Time since last turn: 1000.008920 ms
Time since last turn: 1000.001100 ms
Time since last turn: 999.989450 ms


> All other "normal" apps are running, only when i link to xenomai userspace
> libs i get illegal instructions. On linux side i dont need
> CONFIG_MATH_EMULATION enabled, because i want to use soft-float, that is
> correct, or?

I'm really puzzled what you are doing. It makes sense that you show us
your build commands step by step.

Wolfgang.


  parent reply	other threads:[~2011-05-17  9:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DD23F8A.5000107@domain.hid \
    --to=wg@domain.hid \
    --cc=F.Koenig@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.