All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexis Berlemont <berlemont.hauw@domain.hid>
To: Ettore Pedretti <epedrett@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Help on analogy_ni_pcimio (Alexis Berlemont?)
Date: Thu, 07 Jan 2010 22:58:39 +0100	[thread overview]
Message-ID: <4B46590F.2060308@domain.hid> (raw)
In-Reply-To: <4bed572e1001071124x55a964f8u22558c05c2a4485c@domain.hid>

Hi,

Ettore Pedretti wrote:
> Hi,
> 
> I did not quite understand how to checkout  the analogy branch. When I
> do git branch -a either in xenomai-head or in xenomai-2.5 I get only:
> 
> * master
>   origin/HEAD
>   origin/master
> 
> no other branch is available for checkout. I'm obviously missing something.
> 
> I tried to apply the patch but it failed. At the end I edited
> mio_common.c directly. I hope I did not introduce any error.
> Everything compiled and installed fine.
> 
> The attach command did not complain this time:
> 
> analogy_config analogy0 analogy_ni_pcimio
> 
> The error trace is attached (dmesg_07Jan2010.txt). I also attached the
> kernel config as you asked: (config_analogy).
> 
> However the device /dev/analogy0 does not seem to be created.

That's the common behaviour. The dev files you find in the /dev
directory belong to the Linux drivers. The RTDM dev nodes can be listed
in the following proc file:

# cat /proc/xenomai/rtdm/named_devices
Hash Name Driver /proc
1B analogy0 rtdm_analogy analogy0
1C analogy1 rtdm_analogy analogy1
1D analogy2 rtdm_analogy analogy2
1E analogy3 rtdm_analogy analogy3
1F analogy4 rtdm_analogy analogy4
20 analogy5 rtdm_analogy analogy5
21 analogy6 rtdm_analogy analogy6
22 analogy7 rtdm_analogy analogy7
23 analogy8 rtdm_analogy analogy8
24 analogy9 rtdm_analogy analogy9

Roughly, a user application which communicates with RTDM drivers does
not use the same channels as a user application which communicates with
Linux drivers. Unlike Linux' ones, the RTDM devices are not reachable
through specific files.

So, instead of calling open("/dev/analogy0",...), we call
rtdm_open("analogy0", ...).

> 
> The content of /proc/analogy/drivers is:
> 
> --  Analogy drivers --
> 
> | idx | driver name
> |  00 | analogy_ni_pcimio
> |  01 | analogy_8255
> 
> /proc/analogy/devices is:
> 
> --  Analogy devices --
> 
> | idx | status | driver
> |  00 | Linked | analogy_ni_pcimio
> |  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
Ok. The attach procedure went well.

> 
> /proc/analogy/00-analogy_ni_pcimio
> 
> --  Subdevices --
> 
> | idx | type
> |  00 | Unused subdevice
> |  01 | Analog output subdevice
> |  02 | Digital input/output subdevice
> |  03 | Unused subdevice
> |  04 | Unused subdevice
> |  05 | Calibration subdevice
> |  06 | Memory subdevice
> |  07 | Digital input/output subdevice
> |  08 | Unused subdevice
> |  09 | Serial subdevice
> |  10 | Unused subdevice
> |  11 | Counter subdevice
> |  12 | Counter subdevice
> |  13 | Counter subdevice
> 
> When I try cmd_write I get this
> 
> cmd_write: triggering failed (ret=-16)
-16 means -EBUSY. Did you get this error at the first launch?

Before checking asynchronous writes (with cmd_write), could you test the
synchronous writes (with insn_write)?

> 
> I was expecting complaints about /dev/analogy0 not existing. I'm confused.
> 
> Progress though!
> 
> Ettore
> 

Alexis.


  reply	other threads:[~2010-01-07 21:58 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-22 19:35 [Xenomai-help] Help on analogy_ni_pcimio (Alexis Berlemont?) Ettore Pedretti
2009-11-22 22:41 ` Alexis Berlemont
     [not found] ` <200911222337.02840.alexis.berlemont@domain.hid>
2009-11-23  8:28   ` Ettore Pedretti
2009-11-23 12:24     ` Alexis Berlemont
2009-11-23 17:26       ` Ettore Pedretti
2009-11-23 22:10         ` Alexis Berlemont
2009-11-24 21:34           ` Ettore Pedretti
2009-11-24 22:51             ` Alexis Berlemont
2009-11-24 22:57             ` Alexis Berlemont
2009-11-26  8:22               ` Ettore Pedretti
2009-11-26  9:34                 ` Alexis Berlemont
2009-11-26 14:22                   ` Philippe Gerum
2009-11-27  0:43                     ` Alexis Berlemont
2009-11-27 18:14                       ` Philippe Gerum
2009-11-27 18:30                         ` Philippe Gerum
2009-11-26 23:38                   ` Ettore Pedretti
2009-11-27  0:47                     ` Alexis Berlemont
2009-11-29 23:02                     ` Alexis Berlemont
2009-11-30  8:41                       ` Ettore Pedretti
2009-12-02 23:21                         ` Alexis Berlemont
2009-12-15 15:41                           ` Ettore Pedretti
2009-12-15 23:49                             ` Alexis Berlemont
2009-12-16 12:58                               ` Ettore Pedretti
2009-12-18 21:32                                 ` Alexis Berlemont
2010-01-05 18:15                                   ` Ettore Pedretti
2010-01-05 22:34                                     ` Alexis Berlemont
2010-01-06 13:57                                       ` Ettore Pedretti
2010-01-06 22:15                                         ` Alexis Berlemont
2010-01-07 19:24                                           ` Ettore Pedretti
2010-01-07 21:58                                             ` Alexis Berlemont [this message]
2010-01-08 11:14                                               ` Ettore Pedretti
2010-02-09 17:21                                                 ` Felipe Brandão Cavalcanti
2010-02-10 23:00                                                   ` Alexis Berlemont
2010-02-10 23:03                                                   ` Alexis Berlemont
2010-01-07 22:18                                             ` Alexis Berlemont

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=4B46590F.2060308@domain.hid \
    --to=berlemont.hauw@domain.hid \
    --cc=epedrett@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.