All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruno Tunes de Mello <bruno_v05_2005@yahoo.com.br>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] User Space Problems
Date: Sun, 23 Feb 2014 15:32:28 -0800 (PST)	[thread overview]
Message-ID: <1393198348.29895.YahooMailNeo@web140605.mail.bf1.yahoo.com> (raw)
In-Reply-To: <530766CD.3060707@xenomai.org>

Hi Gilles,

The problem was the second statement: the toolchain I was using is diferente from the used on root filesystem. My filesystem is a recent version from Linaro, but I was using an old Linaro toolchain version (4.7, I think), then I changed to the new version (4.8) and I can run now Xenomai commands. Thanks.
I had to recompile the kernel too because I didn't disable CONFIG_CPU_FREQ and CONFIG_CPU_FREQ_IMX (I got unexpected values).

I have only one more question. I executed the latency command and, initially, I was getting latencies with negative numbers. But executing the command some times, it appear ok. Below a result with no load.
linaro@linaro-alip:/usr/xenomai/bin$ sudo ./latency 
== Sampling period: 1000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|      1.255|      1.383|      4.184|       0|     0|      1.255|      4.184
RTD|      1.265|      1.656|     13.080|       0|     0|      1.255|     13.080
RTD|      1.260|      1.502|     17.409|       0|     0|      1.255|     17.409
RTD|      1.267|      1.499|     14.593|       0|     0|      1.255|     17.409
RTD|      1.260|      1.525|     12.126|       0|     0|      1.255|     17.409
RTD|      1.249|      1.709|     12.853|       0|     0|      1.249|     17.409
RTD|      1.260|      1.512|     18.265|       0|     0|      1.249|     18.265
RTD|      1.257|      1.522|     17.191|       0|     0|      1.249|     18.265
RTD|      1.260|      1.492|     14.492|       0|     0|      1.249|     18.265
RTD|      1.257|      1.671|     13.712|       0|     0|      1.249|     18.265
RTD|      1.244|      1.510|     14.555|       0|     0|      1.244|     18.265
RTD|      1.239|      1.484|     13.525|       0|     0|      1.239|     18.265
RTD|      1.272|      1.532|     17.608|       0|     0|      1.239|     18.265
RTD|      1.262|      1.661|     13.472|       0|     0|      1.239|     18.265
RTD|      1.270|      1.487|     16.542|       0|     0|      1.239|     18.265
RTD|      1.267|      1.717|     15.383|       0|     0|      1.239|     18.265
RTD|      1.249|      1.507|     16.411|       0|     0|      1.239|     18.265
RTD|      1.242|      1.661|     17.873|       0|     0|      1.239|     18.265
RTD|      1.234|      1.494|     12.537|       0|     0|      1.234|     18.265
RTD|      1.277|      1.699|     13.628|       0|     0|      1.234|     18.265
RTD|      1.262|      1.502|     16.914|       0|     0|      1.234|     18.265
RTT|  00:00:22  (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|      1.262|      1.661|     12.856|       0|     0|      1.234|     18.265
RTD|      1.270|      1.510|     12.661|       0|     0|      1.234|     18.265
RTD|      1.270|      1.492|     17.161|       0|     0|      1.234|     18.265
RTD|      1.227|      1.499|     15.984|       0|     0|      1.227|     18.265
RTD|      1.280|      1.712|     15.186|       0|     0|      1.227|     18.265
RTD|      1.249|      1.515|     16.888|       0|     0|      1.227|     18.265
RTD|      1.255|      1.593|     13.333|       0|     0|      1.227|     18.265
RTD|      1.267|      1.489|     16.810|       0|     0|      1.227|     18.265
RTD|      1.252|      1.664|     13.318|       0|     0|      1.227|     18.265
RTD|      1.267|      1.479|     11.202|       0|     0|      1.227|     18.265
RTD|      1.249|      1.497|     12.868|       0|     0|      1.227|     18.265
RTD|      1.265|      1.517|     16.853|       0|     0|      1.227|     18.265
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS|      1.227|      1.555|     18.265|       0|     0|    00:00:34/00:00:34

I was getting large values too (lat avg, lat max), sometimes more than 2000 us. But with a 'top' command I verified that there were processes using more than 80% of CPU, so I think it's the cause of these values. I executed a xeno-test command and I got the partial result below.
Started child 11510: dohell 900
Started child 11512: /usr/xenomai/bin/latency
== Sampling period: 1000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|      4.530|     10.681|     20.570|       0|     0|      4.530|     20.570
RTD|      4.588|     11.494|    309.452|       0|     0|      4.530|    309.452
RTD|      4.580|     10.944|     37.656|       0|     0|      4.530|    309.452
RTD|      4.489|     11.696|    492.573|       0|     0|      4.489|    492.573
RTD|      4.489|     11.303|    460.818|       0|     0|      4.489|    492.573
RTD|      4.085|     11.704|    133.328|       0|     0|      4.085|    492.573
RTD|      8.707|     13.636|    656.525|       0|     0|      4.085|    656.525
RTD|      4.967|     13.671|    664.366|       0|     0|      4.085|    664.366
RTD|      6.108|     12.156|     50.393|       0|     0|      4.085|    664.366
RTD|      3.957|     12.883|    384.060|       0|     0|      3.957|    664.366
RTD|      4.022|     12.578|    962.146|       0|     0|      3.957|    962.146
RTD|      3.982|     12.565|   1080.361|       1|     0|      3.957|   1080.361
RTD|      4.507|     10.906|    452.252|       1|     0|      3.957|   1080.361
RTD|      4.845|     11.047|    112.396|       1|     0|      3.957|   1080.361
RTD|      4.803|     10.782|     55.315|       1|     0|      3.957|   1080.361
RTD|      3.906|     10.464|   1043.691|       2|     0|      3.906|   1080.361
RTD|      3.959|      8.335|     46.666|       2|     0|      3.906|   1080.361
RTD|      4.042|     10.772|     45.176|       2|     0|      3.906|   1080.361
RTD|      3.999|     11.555|    696.714|       2|     0|      3.906|   1080.361
RTD|      4.010|     10.982|     35.601|       2|     0|      3.906|   1080.361
RTD|      3.972|     11.550|     42.679|       2|     0|      3.906|   1080.361
RTT|  00:00:22  (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|      4.303|     12.760|     43.477|       2|     0|      3.906|   1080.361
RTD|      3.636|     10.439|    208.924|       2|     0|      3.636|   1080.361
RTD|      3.681|     13.588|    820.573|       2|     0|      3.636|   1080.361
RTD|      4.065|     14.502|    885.888|       2|     0|      3.636|   1080.361
RTD|      3.987|     14.954|    989.131|       2|     0|      3.636|   1080.361
RTD|      3.926|     14.542|   1383.499|       3|     0|      3.636|   1383.499
RTD|      3.853|     14.560|   1154.987|       4|     0|      3.636|   1383.499
RTD|      4.659|     13.555|    924.207|       4|     0|      3.636|   1383.499
RTD|      3.893|     13.777|    663.159|       4|     0|      3.636|   1383.499
RTD|      4.426|     13.454|    808.964|       4|     0|      3.636|   1383.499
RTD|      4.744|     14.840|    827.146|       4|     0|      3.636|   1383.499
RTD|      4.386|     12.659|    572.785|       4|     0|      3.636|   1383.499
RTD|      3.999|     15.138|   1152.191|       5|     0|      3.636|   1383.499
RTD|      3.954|     14.227|    993.108|       5|     0|      3.636|   1383.499
RTD|      4.489|     12.805|    666.755|       5|     0|      3.636|   1383.499
RTD|      3.921|     12.608|    703.176|       5|     0|      3.636|   1383.499
RTD|      4.022|     12.424|    574.785|       5|     0|      3.636|   1383.499
RTD|      4.553|     12.891|    717.265|       5|     0|      3.636|   1383.499
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS|      3.636|     12.446|   1383.499|       5|     0|    00:00:39/00:00:39

Could you say if these results are right or not.

Thank you for the reply,

Bruno





Em Sexta-feira, 21 de Fevereiro de 2014 11:46, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> escreveu:
 
On 02/21/2014 03:31 PM, Bruno Tunes de Mello wrote:

> Hi,
>
> I'm using a Sabre Lite board with IMX6Q for a project.
> I
> installed xenomai with the kernel 3.0.35 from boundary Devices, its not
> the version indicated in README file, but I applied the patches and it
> seems work. When it boots can see the messages:
>
> I-pipe: Domain Xenomai registered.
> Xenomai: hal/arm started.
> Xenomai: scheduling class idle registered.
> Xenomai: scheduling class rt registered.
> Xenomai: real-time nucleus v2.6.3 (Lies and Truths) loaded.
> Xenomai: debug mode enabled.
> Xenomai: starting native API services.
> Xenomai: starting POSIX services.
> Xenomai: starting RTDM services.
>
> But the user space is not working. When I try to execute latency and xeno-test commands I get a error message: not
>   found.
>
> linaro@linaro-alip:/usr/xenomai/bin$ ./latency
> bash: ./latency: No such file or directory
> linaro@linaro-alip:/usr/xenomai/bin$ ./xeno-test
> bash: ./xeno-test: /usr/xenomai/bin/xeno-test-run: bad interpreter: No such file or directory
> linaro@linaro-alip:/usr/xenomai/bin$ sudo ./xeno latency
> ./xeno: 15: exec: /usr/xenomai/bin/latency: not found
>
> The only command that work is xeno-config. I started using Linux for this project so I don't know how to solve it.
>
> I
>   tried to search some solution on mailing list, but anything yet. In
> troubleshooting guide I read about EABI and OABI compilers mismatch, but
>   I compiled both kernel and user space with Linaro toolchain
> (arm-linux-gnueabi). I tried with Ubuntu cross-compiler too
> (arm-linux-gnueabihf), but same result.

Xenomai user-space support is probably mis-compiled:
- either you did not compile it for ARM;
- or you compile it with a toolchain which is not the same as the one 
used to generate the rest of the root filesystem.


-- 
                        Gilles.

  reply	other threads:[~2014-02-23 23:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 14:31 [Xenomai] User Space Problems Bruno Tunes de Mello
2014-02-21 14:46 ` Gilles Chanteperdrix
2014-02-23 23:32   ` Bruno Tunes de Mello [this message]
2014-02-23 23:37     ` Gilles Chanteperdrix
2014-02-24  1:11       ` Bruno Tunes de Mello
2014-02-24 12:12         ` Gilles Chanteperdrix
2014-02-25  3:26           ` Bruno Tunes de Mello
2014-02-25  9:27             ` Gilles Chanteperdrix
2014-02-25 10:04             ` Gilles Chanteperdrix
2014-02-25 13:35               ` Bruno Tunes de Mello
2014-02-25 13:41                 ` Gilles Chanteperdrix
2014-03-03 18:32                   ` Bruno Tunes de Mello
2014-03-03 18:45                     ` Gilles Chanteperdrix
2014-03-04  3:47                       ` Bruno Tunes de Mello
2014-03-04 15:11                         ` Gilles Chanteperdrix
2014-03-11  0:51                           ` Bruno Tunes de Mello

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=1393198348.29895.YahooMailNeo@web140605.mail.bf1.yahoo.com \
    --to=bruno_v05_2005@yahoo.com.br \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.