From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <51F182E4.70907@xenomai.org> Date: Thu, 25 Jul 2013 21:56:20 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <04a701ce864f$91047590$b30d60b0$@z9.com> In-Reply-To: <04a701ce864f$91047590$b30d60b0$@z9.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] cannot open switchtest device ? List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: George Pontis Cc: xenomai@xenomai.org 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.