All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Failure with rtdm_dev_register in rtdmtest
@ 2016-05-24 17:46 Ran Shalit
  2016-05-24 18:03 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Ran Shalit @ 2016-05-24 17:46 UTC (permalink / raw)
  To: xenomai

Hello,

I am trying to do initial testing of xenomai in my system.
It seems that the boot of kernel with xenomai is without any issues

zynq> dmesg | grep Xenomai
I-pipe: head 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.
zynq> uname -a
Linux 192.168.1.8 3.8.0-xilinx #17 SMP PREEMPT Tue May 24 19:05:08 IDT
2016 armv7l GNU/Linux

But on trying to load rtdmtest, I get no /dev/rtdm :

zynq> insmod xeno_rtdmtest.ko
zynq> lsmod
xeno_rtdmtest 2239 0 - Live 0xbf000000
zynq>

zynq> ls /dev/rt
rtheap  rtp11   rtp15   rtp19   rtp22   rtp26   rtp3    rtp5    rtp9
rtp0    rtp12   rtp16   rtp2    rtp23   rtp27   rtp30   rtp6
rtp1    rtp13   rtp17   rtp20   rtp24   rtp28   rtp31   rtp7
rtp10   rtp14   rtp18   rtp21   rtp25   rtp29   rtp4    rtp8


I tried to debug and it seems that err =
rtdm_dev_register(&device[dev]) has failed.

Is there any idea what might be wrong ?

Regards,
Ran


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Failure with rtdm_dev_register in rtdmtest
  2016-05-24 17:46 [Xenomai] Failure with rtdm_dev_register in rtdmtest Ran Shalit
@ 2016-05-24 18:03 ` Gilles Chanteperdrix
  2016-05-24 18:53   ` Ran Shalit
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2016-05-24 18:03 UTC (permalink / raw)
  To: Ran Shalit; +Cc: xenomai

On Tue, May 24, 2016 at 08:46:54PM +0300, Ran Shalit wrote:
> Hello,
> 
> I am trying to do initial testing of xenomai in my system.
> It seems that the boot of kernel with xenomai is without any issues
> 
> zynq> dmesg | grep Xenomai
> I-pipe: head 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.

So you have the same problem with Xenomai 2.6.4?

> Xenomai: debug mode enabled.
> Xenomai: starting native API services.
> Xenomai: starting POSIX services.
> Xenomai: starting RTDM services.
> zynq> uname -a
> Linux 192.168.1.8 3.8.0-xilinx #17 SMP PREEMPT Tue May 24 19:05:08 IDT
> 2016 armv7l GNU/Linux
> 
> But on trying to load rtdmtest, I get no /dev/rtdm :

You have misread the documentation. /dev/rtdm only exists with
Xenomai 3, not Xenomai 2.

-- 
					    Gilles.
https://click-hack.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Failure with rtdm_dev_register in rtdmtest
  2016-05-24 18:03 ` Gilles Chanteperdrix
@ 2016-05-24 18:53   ` Ran Shalit
  2016-05-24 19:01     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Ran Shalit @ 2016-05-24 18:53 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Tue, May 24, 2016 at 9:03 PM, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> On Tue, May 24, 2016 at 08:46:54PM +0300, Ran Shalit wrote:
>> Hello,
>>
>> I am trying to do initial testing of xenomai in my system.
>> It seems that the boot of kernel with xenomai is without any issues
>>
>> zynq> dmesg | grep Xenomai
>> I-pipe: head 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.
>
> So you have the same problem with Xenomai 2.6.4?
>
>> Xenomai: debug mode enabled.
>> Xenomai: starting native API services.
>> Xenomai: starting POSIX services.
>> Xenomai: starting RTDM services.
>> zynq> uname -a
>> Linux 192.168.1.8 3.8.0-xilinx #17 SMP PREEMPT Tue May 24 19:05:08 IDT
>> 2016 armv7l GNU/Linux
>>
>> But on trying to load rtdmtest, I get no /dev/rtdm :
>
> You have misread the documentation. /dev/rtdm only exists with
> Xenomai 3, not Xenomai 2.
>

Hi,

I see in code that it should have created device in
/dev/rttest-rtdm%d , but I can't find such device:

zynq> ls /dev/rt
rtheap  rtp11   rtp15   rtp19   rtp22   rtp26   rtp3    rtp5    rtp9
rtp0    rtp12   rtp16   rtp2    rtp23   rtp27   rtp30   rtp6
rtp1    rtp13   rtp17   rtp20   rtp24   rtp28   rtp31   rtp7
rtp10   rtp14   rtp18   rtp21   rtp25   rtp29   rtp4    rtp8

I have followed the documentation in
doc/generated/pdf/README.INSTALL.pdf, but didn't find references to
rtdmtest device.

Best Regards,
Ran


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Failure with rtdm_dev_register in rtdmtest
  2016-05-24 18:53   ` Ran Shalit
@ 2016-05-24 19:01     ` Gilles Chanteperdrix
       [not found]       ` <CAJ2oMhJPet1hNpHo8QnkJJBoLyAgUbeJZahBmLihku__V8jq6A@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2016-05-24 19:01 UTC (permalink / raw)
  To: Ran Shalit; +Cc: xenomai

On Tue, May 24, 2016 at 09:53:46PM +0300, Ran Shalit wrote:
> On Tue, May 24, 2016 at 9:03 PM, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org> wrote:
> > On Tue, May 24, 2016 at 08:46:54PM +0300, Ran Shalit wrote:
> >> Hello,
> >>
> >> I am trying to do initial testing of xenomai in my system.
> >> It seems that the boot of kernel with xenomai is without any issues
> >>
> >> zynq> dmesg | grep Xenomai
> >> I-pipe: head 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.
> >
> > So you have the same problem with Xenomai 2.6.4?
> >
> >> Xenomai: debug mode enabled.
> >> Xenomai: starting native API services.
> >> Xenomai: starting POSIX services.
> >> Xenomai: starting RTDM services.
> >> zynq> uname -a
> >> Linux 192.168.1.8 3.8.0-xilinx #17 SMP PREEMPT Tue May 24 19:05:08 IDT
> >> 2016 armv7l GNU/Linux
> >>
> >> But on trying to load rtdmtest, I get no /dev/rtdm :
> >
> > You have misread the documentation. /dev/rtdm only exists with
> > Xenomai 3, not Xenomai 2.
> >
> 
> Hi,
> 
> I see in code that it should have created device in
> /dev/rttest-rtdm%d , but I can't find such device:

The device rttest-rtdm%d may exist, but not in the filesystem in
Xenomai 2.

Anyway, if you say that rtdm_dev_register fails, this is a real
issue. So, I suggest again to try Xenomai 2.6.4, in order to be sure
that you do not have a bug that has already been fixed.

-- 
					    Gilles.
https://click-hack.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Failure with rtdm_dev_register in rtdmtest
       [not found]       ` <CAJ2oMhJPet1hNpHo8QnkJJBoLyAgUbeJZahBmLihku__V8jq6A@mail.gmail.com>
@ 2016-05-24 19:20         ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2016-05-24 19:20 UTC (permalink / raw)
  To: Ran Shalit; +Cc: Xenomai

On Tue, May 24, 2016 at 10:15:24PM +0300, Ran Shalit wrote:
> On Tue, May 24, 2016 at 10:01 PM, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org> wrote:
> > On Tue, May 24, 2016 at 09:53:46PM +0300, Ran Shalit wrote:
> >> On Tue, May 24, 2016 at 9:03 PM, Gilles Chanteperdrix
> >> <gilles.chanteperdrix@xenomai.org> wrote:
> >> > On Tue, May 24, 2016 at 08:46:54PM +0300, Ran Shalit wrote:
> >> >> Hello,
> >> >>
> >> >> I am trying to do initial testing of xenomai in my system.
> >> >> It seems that the boot of kernel with xenomai is without any issues
> >> >>
> >> >> zynq> dmesg | grep Xenomai
> >> >> I-pipe: head 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.
> >> >
> >> > So you have the same problem with Xenomai 2.6.4?
> >> >
> >> >> Xenomai: debug mode enabled.
> >> >> Xenomai: starting native API services.
> >> >> Xenomai: starting POSIX services.
> >> >> Xenomai: starting RTDM services.
> >> >> zynq> uname -a
> >> >> Linux 192.168.1.8 3.8.0-xilinx #17 SMP PREEMPT Tue May 24 19:05:08 IDT
> >> >> 2016 armv7l GNU/Linux
> >> >>
> >> >> But on trying to load rtdmtest, I get no /dev/rtdm :
> >> >
> >> > You have misread the documentation. /dev/rtdm only exists with
> >> > Xenomai 3, not Xenomai 2.
> >> >
> >>
> >> Hi,
> >>
> >> I see in code that it should have created device in
> >> /dev/rttest-rtdm%d , but I can't find such device:
> >
> > The device rttest-rtdm%d may exist, but not in the filesystem in
> > Xenomai 2.
> >
> > Anyway, if you say that rtdm_dev_register fails, this is a real
> > issue. So, I suggest again to try Xenomai 2.6.4, in order to be sure
> > that you do not have a bug that has already been fixed.
> >
> Sorry, my mistake !
> It does not fail, it returns 0.

Ok, but I really strongly suggest that you switch to Xenomai 2.6.4.

> 
> But still I don't understand , if it succeeded , why there is no
> /dev/rttest-rtdm0.

Because in Xenomai 2: no device gets created in the filesystem for
RTDM devices.

> Also, If the device exist but not in filesystem, how can we
> communicate with the defice ( ioctl probably won't work).

You use Xenomai version of ioctl which will be able to communicate
with the device. Either using ioctl with the POSIX skin, or
rt_dev_ioctl() with the RTDM skin.

-- 
					    Gilles.
https://click-hack.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-24 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-24 17:46 [Xenomai] Failure with rtdm_dev_register in rtdmtest Ran Shalit
2016-05-24 18:03 ` Gilles Chanteperdrix
2016-05-24 18:53   ` Ran Shalit
2016-05-24 19:01     ` Gilles Chanteperdrix
     [not found]       ` <CAJ2oMhJPet1hNpHo8QnkJJBoLyAgUbeJZahBmLihku__V8jq6A@mail.gmail.com>
2016-05-24 19:20         ` Gilles Chanteperdrix

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.