All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Wiebe <dwiebe2@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] more questions
Date: Sun, 26 Jun 2011 18:39:16 -0700	[thread overview]
Message-ID: <4E07DF44.1060204@domain.hid> (raw)
In-Reply-To: <4E074D6D.8070606@domain.hid>

On 11-06-26 08:17 AM, Gilles Chanteperdrix wrote:
> On 06/26/2011 05:17 AM, David Wiebe wrote:
>> Hello,
>>
>> I have kernel 2.6.35.9 patched with xenomai for arm(beagleboard xm).
>>
>> #1. rt_dev_ioctl as replacement for ioctl. My test program compiles,
>> runs but does not perform as it should. If I change rt_dev_ioctl back to
>> ioctl, everything works fine. What might I be missing?
> Hi,
>
> We do not know
> - which ioctl you are trying to use
I'm trying to get an spi port on the beagleboard to work in realtime.
I didn't know there were other ioctl's. I wrote a program with ioctl, 
tested it to make sure it worked, which it did, then changed ioctl's to 
rt_dev_ioctl's in hopes that doing so would enable real time behaviour. 
The program with rt_dev_ioctl's did not run as desired(no spi). I guess 
I can't simply change ioctl's with rt_dev_ioctl's to enable real time 
functionality? Do I have to patch xenomai to enable spi or something?
> - which driver you have written/loaded to implement this ioctl
I thought changing ioctl for rt_dev_ioctl was all that was required to 
implement this device in realtime mode. This device is an spi port.
> - what you mean by "my program does not perform as it should", what is
> the return value of this rt_dev_ioctl which is supposed to work?
>
I watch my oscilloscope for activity on the spi port. regular ioctl 
worked, rt_dev_ioctl did not. Both programs ran but only one worked.
>> #2. rtnet. I wrote a test snippet of code to test the ethernet part.
>> Prepended the appropriate functions with rt_dev_ and same results as in #1.
>>
>> I assume that if something wasn't in the library I would get compiler
>> errors and if the code running on the beagleboard  was bad, I would get
>> run time errors. I have seen neither.
> Again, what driver are you trying to use? What happens when you try and
> configure it?
>
So I have to patch the ethernet driver in order for it to work? I though 
that was taken care of when I patched the kernel with xenomai.
>> Are there any books or more learning materials out there for me to
>> study? Any and all feedback appreciated.
> I would suggest starting with "Linux device drivers", it would give you
> an idea of how things are divided between drivers and applications.
> xenomai follows the same division. Then you can read the documents
> listed here:
> http://www.xenomai.org/index.php/Included_documentation_summary
> and here:
> http://www.xenomai.org/index.php/Publications
>
> To have a better idea on how to work with xenomai.
>> David
>>
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
>>
Thanks!


  reply	other threads:[~2011-06-27  1:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 16:44 [Xenomai-help] booting suresh reddy
2011-06-24 17:15 ` Gilles Chanteperdrix
2011-06-26  3:17   ` [Xenomai-help] more questions David Wiebe
2011-06-26 15:17     ` Gilles Chanteperdrix
2011-06-27  1:39       ` David Wiebe [this message]
2011-06-27 11:04         ` Gilles Chanteperdrix
2011-06-27 18:33           ` David Wiebe
2011-06-27 21:37             ` [Xenomai-help] More questions - spi/ethernet David Wiebe
2011-06-27 21:41               ` Gilles Chanteperdrix
2011-06-28  4:42                 ` David Wiebe
2011-06-28  8:33                   ` Gilles Chanteperdrix

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=4E07DF44.1060204@domain.hid \
    --to=dwiebe2@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.