All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Andrey Nechypurenko <andreynech@googlemail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] rt_task_create fails when running over ssh
Date: Sat, 03 Nov 2012 22:19:19 +0100	[thread overview]
Message-ID: <50958A57.8010902@xenomai.org> (raw)
In-Reply-To: <CAOiXNkC=C6A=Mfhqx2rjg61D9UaOB55bnm-n5mOArsmpXdU-sg@mail.gmail.com>

On 11/03/2012 07:42 PM, Andrey Nechypurenko wrote:

> On 3 November 2012 15:09, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org> wrote:
>>
>> Andrey Nechypurenko wrote:
>>>> Ok, but there is no code in xenomai which accesses or relies on the
>>>> console
>>>> could you try to run the latency test from the ssh console to see if you
>>>> get the same issue?
>>>
>>> xeno-test works just fine. So I assume that it is related to how I am
>>> compiling the example. I've tried trivial-periodic.c using the
>>> following command to compile:
>>>
>>> ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- CFLAGS="
>>> -march=armv7-a -fno-tree-vectorize -mthumb-interwork
>>> -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 " LOCALVERSION=""
>>> arm-angstrom-linux-gnueabi-gcc
>>> -I/home/bbcross/rootfs/usr/include/xenomai/ -D_GNU_SOURCE -D_REENTRANT
>>> -D__XENO__ -L/home/bbcross/rootfs/usr/lib -lxenomai -lnative
>>> trivial-periodic.c -o trivial-periodic
>>
> 
>> Could you try to run the latency test without xeno-test ?
> 
> Seams like it does not work in the similar way:
> 
> # latency -t 0
> == Sampling period: 1000 us
> == Test mode: periodic user-mode task
> == All results in microseconds
> latency: failed to create latency task, code -1
> warming up...
> 
> and then it exits. -t 1 and -t 2 works fine.
> 
>> It should be -lnative -lxenomai
> 
> Changing to -lnative -lxenomai does not help
> 
>> please use the xeno-config to obtain the flags, do not hardcode them.
> 
> I am cross-compiling and I did not figured out yet how to convince
> xeno-config to pick right include and library directories. It generats
> -I/usr/include and -L/usr/lib which is not where actual libraries for
> cross-compilation are.


Use the DESTDIR environment variable (you can look inside xeno-config to
see how it works, it should be pretty obvious).


-- 
                                                                Gilles.


  reply	other threads:[~2012-11-03 21:19 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02 20:24 [Xenomai] rt_task_create fails when running over ssh Andrey Nechypurenko
2012-11-03  1:20 ` Gilles Chanteperdrix
2012-11-03  9:49   ` Andrey Nechypurenko
2012-11-03 10:55     ` Gilles Chanteperdrix
2012-11-03 14:00       ` Andrey Nechypurenko
2012-11-03 14:08         ` Gilles Chanteperdrix
2012-11-03 14:09         ` Gilles Chanteperdrix
2012-11-03 18:42           ` Andrey Nechypurenko
2012-11-03 21:19             ` Gilles Chanteperdrix [this message]
2012-11-03 21:32               ` Andrey Nechypurenko
2012-11-03 21:34                 ` Gilles Chanteperdrix
2012-11-04 16:13                   ` Andrey Nechypurenko
2012-11-04 16:27                     ` Gilles Chanteperdrix
2012-11-04 16:48                       ` Andrey Nechypurenko
2012-11-04 16:57                         ` Gilles Chanteperdrix
2012-11-04 16:30                     ` Gilles Chanteperdrix
2012-11-04 16:43                       ` Andrey Nechypurenko
2012-11-04 17:05                         ` Gilles Chanteperdrix
2012-11-04 17:14                           ` Andrey Nechypurenko
2012-11-04 17:36                             ` Gilles Chanteperdrix
2012-11-04 17:34                           ` Andrey Nechypurenko

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=50958A57.8010902@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=andreynech@googlemail.com \
    --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.