All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Everett Wang <everteq@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] problem with serial example
Date: Sun, 23 May 2010 18:28:09 +0200	[thread overview]
Message-ID: <4BF95799.1050508@domain.hid> (raw)
In-Reply-To: <4BF94DE3.90001@domain.hid>

Hello,

some more insights:

On 05/23/2010 05:46 PM, Wolfgang Grandegger wrote:
> On 05/23/2010 04:59 PM, Everett Wang wrote:
>> On Sun, May 23, 2010 at 5:37 PM, Wolfgang Grandegger <wg@domain.hid> wrote:
>>> On 05/23/2010 05:48 AM, Everett Wang wrote:
>>>> Hi All,
>>>>
>>>> I am trying to make my serial work with xenomai. I have managed to
>>>> compile and almost run the cross-link example.
>>>> When I tried to run it, I got a shared library problem:
>>>>
>>>> examples
>>>> ./cross-link
>>>> ./cross-link: error while loading shared libraries: libxenomai.so.0: cannot...
>>>>
>>>> I then added this:
>>>>
>>>> $LD_LIBRARY_PATH=/usr/xenomai/lib
>>>> $export LD_LIBRARY_PATH
>>>>
>>>> Is this the right thing to do?
>>>>
>>>> I tried it again. I got a little further:
>>>>
>>>> root@domain.hid# ./cross-link
>>>> main : can't open rtser0 (write), No such device
>>>>
>>>> I googled a little bit and still can't find a solution. Here is the system I am
>>>> using: Beagleboard C4, xenomai 2.5.3, linux 2.6.33.3, cross-compiler CSL
>>>> 2010Q1. In my kernel configuration, I do have CONFIG_XENO_DRIVERS_16550A
>>>> enabled as a module.
>>>
>>> Is the module loaded. If not, it's no surprise that there is no rtser0
>>> device. Anyway, I'm not sure if Xenomai's 16550A RTserial driver is
>>> fully compatible with OMAPs 8250 devices, especially the proper access
>>> method might not be supported.

I think the serial ports for the beagle boards are configured in:

http://lxr.linux.no/#linux+v2.6.34/arch/arm/mach-omap2/serial.c

Therein you find entries like:

http://lxr.linux.no/#linux+v2.6.34/arch/arm/mach-omap2/serial.c#L82

As you can see, a regshift of 2 is used, which is not yet supported by
the 16550A RTDM driver. Should not be a big deal to add it, though.
Also, as baud_base you should use OMAP24XX_BASE_BAUD.

Wolfgang.


  parent reply	other threads:[~2010-05-23 16:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-23  3:48 [Xenomai-help] problem with serial example Everett Wang
2010-05-23  9:37 ` Wolfgang Grandegger
2010-05-23 14:59   ` Everett Wang
2010-05-23 15:29     ` Gilles Chanteperdrix
2010-05-23 16:12       ` Everett Wang
2010-05-23 15:46     ` Wolfgang Grandegger
2010-05-23 16:19       ` Everett Wang
2010-05-23 16:28         ` Wolfgang Grandegger
2010-05-23 23:36           ` Everett Wang
2010-05-24  7:32             ` Everett Wang
2010-05-24 15:45               ` Wolfgang Grandegger
2010-05-25 13:47                 ` Everett Wang
2010-05-26  5:38                   ` Wolfgang Grandegger
2010-05-27  1:22                     ` Everett Wang
2010-05-27  7:34                       ` Wolfgang Grandegger
2010-05-23 16:28       ` Wolfgang Grandegger [this message]
2011-02-24  9:29       ` [Xenomai-help] problem with xeno_16550A:Fatal Module not found zair
2011-02-24 10:46         ` Gilles Chanteperdrix
     [not found]           ` <AANLkTinRd-KQ1HKy1tn1USfxL-8GT8FdZKujKTzfo_HE@mail.gmail.com>
2011-02-25 18:36             ` 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=4BF95799.1050508@domain.hid \
    --to=wg@domain.hid \
    --cc=everteq@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.