From: Alexis Berlemont <berlemont.hauw@domain.hid>
To: Cristian Axenie <cristian.axenie@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Driver testing procedure ?!
Date: Tue, 26 May 2009 16:29:13 +0200 [thread overview]
Message-ID: <87vdnox7ie.fsf@domain.hid> (raw)
In-Reply-To: <9c789a000905260819t55dd4beajf3f3b68b635bf16d@domain.hid> (Cristian Axenie's message of "Tue\, 26 May 2009 18\:19\:07 +0300")
Cristian Axenie <cristian.axenie@domain.hid> writes:
> On Tue, May 26, 2009 at 5:36 PM, Cristian Axenie <cristian.axenie@domain.hidom> wrote:
>
> On Tue, May 26, 2009 at 4:55 PM, Alexis Berlemont <berlemont.hauw@domain.hide.fr> wrote:
>
> Hi,
>
> On Tue, May 26, 2009 at 12:32 AM, Cristian Axenie
> <cristian.axenie@domain.hid> wrote:
> >
> >
> > ---------- Forwarded message ----------
> > From: Cristian Axenie <cristian.axenie@domain.hid>
> > Date: Tue, May 26, 2009 at 1:16 AM
> > Subject: Re: [Xenomai-help] Driver testing procedure ?!
> > To: Alexis Berlemont <berlemont.hauw@domain.hid>
> >
> >
> >
> >
> > On Tue, May 26, 2009 at 1:10 AM, Alexis Berlemont <berlemont.hauw@domain.hid>
> > wrote:
> >>
> >> Cristian Axenie <cristian.axenie@domain.hid> writes:
> >>
> >> > Hi,
> >> >
> >> > I finally figured out this aspect but I still have one problem, residing
> >> > in the fact that I have no comedi devices in my dev list
> >> > and so I cannot ./comedi_config /dev/comedi0 nipcimio !
> >> >
> >> > As I see it there are no comedi devices
> >> >
> >> > /usr/xenomai/sbin # cat /proc/devices
> >>
> >> You should not look at there. This proc file lists everything but RTDM
> >> devices.
> >>
> >> >
> >> > and the list
> >> >
> >> > /usr/xenomai/sbin # cat /proc/comedi/devices
> >> > -- Comedi devices --
> >> >
> >> > | idx | status | driver
> >> > | 00 | Unused | No driver
> >> > | 01 | Unused | No driver
> >> > | 02 | Unused | No driver
> >> > | 03 | Unused | No driver
> >> > | 04 | Unused | No driver
> >> > | 05 | Unused | No driver
> >> > | 06 | Unused | No driver
> >> > | 07 | Unused | No driver
> >> > | 08 | Unused | No driver
> >> > | 09 | Unused | No driver
> >> > /usr/xenomai/sbin # cat /proc/comedi/drivers
> >> > comedi_config rtcanconfig rtps
> >> > /usr/xenomai/sbin # cat /proc/comedi/drivers
> >> > -- Comedi drivers --
> >> >
> >> > | idx | driver name
> >> > | 00 | pcimio
> >> > | 01 | comedi_8255
> >> > | 02 | comedi_loop
> >> > | 03 | comedi_fake
> >> >
> >> > Shouldn't the specific comedi devices be generated when installing
> >> > Xenomai ?
> >>
> >> That is common comedi behaviour. So far, the comedi drivers are listed,
> >> they are available in the kernel. However, you have to attach them so as
> >> to make them reachable (thanks to comedi_config).
> >>
> >> Once the attach will be done, you will see your driver appear in
> >> /proc/comedi/devices.
> >>
> >> If the comedi_config did not work, the problem is here. In such case,
> >> could you send the traces?
> >
> > The problem is that the comedi devs are not present in /dev and so when I
> > run comedi config
> >
> > /usr/xenomai/sbin # ./comedi_config /dev/comedi0 pcimio
> > comedi_config: comedi_open failed ret=-19
> >
> > Shouldn't the comedi0, comedi1... devices be created when installing Xenomai
> > ?
>
> Here, we are talking about RTDM devices not common Linux /dev files.
> Have a look at /proc/xenomai/rtdm/comediXX.
>
> Thanks for making it clear to me. I've tested with the comedi0 RTDM device and a (sad) SEGFAULT emerged
> here the oops
That was expected considering the amount of code. We need to locate the
segfault origin inside the driver. According to your description, it
must be in the attach procedure (in the function pcimio_attach()).
It is even bound to be located in the function ni_E_init() which is
quite big.
A simple method would be to use dichotomy to find out the faulting line
thanks to traces (rtdm_printk()).
Alexis.
next prev parent reply other threads:[~2009-05-26 14:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 11:46 [Xenomai-help] Driver testing procedure ?! Cristian Axenie
2009-05-25 21:28 ` Alexis Berlemont
2009-05-25 21:35 ` Cristian Axenie
2009-05-25 22:10 ` Alexis Berlemont
[not found] ` <9c789a000905251516j5272ae7bpc60aea8fdc17d50c@domain.hid>
2009-05-25 22:32 ` Cristian Axenie
2009-05-26 13:55 ` Alexis Berlemont
2009-05-26 14:36 ` Cristian Axenie
2009-05-26 15:19 ` Cristian Axenie
2009-05-26 14:29 ` Alexis Berlemont [this message]
2009-05-26 21:48 ` Philippe Gerum
[not found] ` <9c789a000905261525q45cbaa3ag25855befde1cb130@domain.hid>
2009-05-26 22:31 ` [Xenomai-help] Fwd: " Cristian Axenie
2009-05-26 22:35 ` [Xenomai-help] " Cristian Axenie
2009-05-27 21:47 ` Cristian Axenie
2009-05-28 6:38 ` Alexis Berlemont
2009-06-04 0:23 ` Alexis Berlemont
2009-06-04 8:20 ` Cristian Axenie
2009-06-04 9:00 ` Alexis Berlemont
-- strict thread matches above, loose matches on Subject: below --
2009-06-16 15:10 Cristian Axenie
2009-06-16 16:06 ` Alexis Berlemont
[not found] ` <72cf3fb0906160852v46b1602fwe39b135d8b11ba97@domain.hid>
[not found] ` <9c789a000906161348g43721abdu42aa2e727fcfd0cf@domain.hid>
2009-06-16 20:49 ` Cristian Axenie
[not found] ` <9c789a000906161402y53c793f9n93635f9e044e358d@domain.hid>
2009-06-17 12:51 ` Cristian Axenie
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=87vdnox7ie.fsf@domain.hid \
--to=berlemont.hauw@domain.hid \
--cc=cristian.axenie@domain.hid \
--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.