All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: George Pontis <gpontis@z9.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] cannot open switchtest device ?
Date: Thu, 25 Jul 2013 21:56:20 +0200	[thread overview]
Message-ID: <51F182E4.70907@xenomai.org> (raw)
In-Reply-To: <04a701ce864f$91047590$b30d60b0$@z9.com>

On 07/21/2013 10:19 PM, George Pontis wrote:

> I find a problem trying to run xeno-test when it goes to open the switchtest
> device. Before this post I searched the web and found a thread started by
> "raespi".
> We have a similar situation in which we are both using buildroot, but I'm
> not sure that the underlying cause is the same. I am building a kernel for
> 3.8.13 using
> the patches from git, and also the current git xenomai. ( Current as of a
> month ago ). The target is an custom board based on the iMX53.
>
> To narrow the source of the problem, I modified switchtest.c to report on
> any case where the open() returns a negative number. I also made a temporary
> patch
> to not prepend the name with "/dev/". I might add that I'm using a new RTDM
> driver named fpga_rtdm that can be opened and access successfully.
> Here's what happens:


This may look like a stupid suggestion, but that is the only explanation 
I see: you are probably using glibc's open instead of xenomai's open. 
This may happen for instance if you are compiling xenomai libraries 
statically and switchtest Makefile does not use the "wrap-link.sh" script.
-- 
                                                                 Gilles.


  reply	other threads:[~2013-07-25 19:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-21 20:19 [Xenomai] cannot open switchtest device ? George Pontis
2013-07-25 19:56 ` Gilles Chanteperdrix [this message]
2013-07-26 16:14   ` George Pontis
2013-07-26 18:57     ` Gilles Chanteperdrix
2013-07-28 22:03     ` Gilles Chanteperdrix
2013-07-29  1:59       ` George Pontis

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=51F182E4.70907@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=gpontis@z9.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.