From: Jan Kiszka <jan.kiszka@domain.hid>
To: Bachman Kharazmi <bahkha@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] serial module problems
Date: Sun, 09 Sep 2007 16:51:11 +0200 [thread overview]
Message-ID: <46E4085F.3080509@domain.hid> (raw)
In-Reply-To: <1ce16a2c0709090730o1a803c99r70aea4410eda49ed@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2845 bytes --]
Bachman Kharazmi wrote:
> Hi, after doing some modifications as mentioned in your patch I did
> compile serial as module without problems.
>
> My problem is now that I don't have any /dev/rtserX devices :(
> Do I need that?
Nope. RTDM devices don't show up as Linux devices.
>
> My goal is to get serial communication working with xenomai for
> controlling devices.
>
> Linux default serial support ain't builtin to kernel anymore.
> I'm running
> Linux sandbox 2.6.22 #14 Sun Sep 9 15:01:50 CEST 2007 i686 GNU/Linux
>
> I've checked out xenomai using svn according to:
> svn co http://svn.gna.org/svn/xenomai/trunk xenomai
> Adeos:
> adeos-ipipe-2.6.22-i386-1.10-03.patch
>
> sandbox:/lib/modules/2.6.22/kernel/drivers/xenomai/serial# insmod
> ./xeno_16550A.ko io=0x3f8,0xbc00 irq=4,3 tx_fifo=10,20 start_index=0
I bet the IRQ of your external serial adapter is NOT 3. Please check the
hardware manual.
> sandbox:/lib/modules/2.6.22/kernel/drivers/xenomai/serial# ls /dev/rtser*
> ls: /dev/rtser*: No such file or directory
>
> But I do have:
> sandbox:/lib/modules/2.6.22/kernel/drivers/xenomai/serial# find /proc/
> | grep rtser
> /proc/xenomai/rtdm/rtser1
> /proc/xenomai/rtdm/rtser1/information
> /proc/xenomai/rtdm/rtser0
> /proc/xenomai/rtdm/rtser0/information
>
> There's a serial example coming with xenomai, I'm unsure about
> exactlly what it's supposed to do, or how I should use it. Would be
> glad if somebody could explain more about how to use the serial ports
> with xenomai driver.
>
> with a crossed cable between serialport1 at mobo and serialport1 at
> sunix4066 8port controllercard I get:
Basically, you already got its usage. It is a local cross link test,
running between two serial ports on the same box, that are connected via
a null modem cable. If the test is successful, you will see some round
trip statistics (yeah, needs to be documented more explicitly...).
>
> sandbox:/usr/src/xenomai/examples/rtdm/profiles/serial# ./cross-link
> main : write-file opened
> main : write-config written
> main : read-file opened
> main : read-config written
> main : write-task created
> main : read-task created
> main : starting write-task
> main : starting read-task
> Nr | write->irq | irq->read | write->read |
> -----------------------------------------------------------
> read_task: error on rt_dev_read, code Success
> main : rtser1 (read) -> closed
> read_task: exit
There is no output likely due to one adapter being unable to get any
IRQ. You can check the IRQ activity under /proc/xenomai/irq.
>
> dmesg: http://pastebin.ca/688553
> .config: http://pastebin.ca/688558
Also note that Xenomai warns you about potential SMI-related latencies.
Please see the Xenomai TROUBLESHOOTING doc on this.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-09-09 14:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-08 18:59 [Xenomai-help] serial module problems Bachman Kharazmi
2007-09-08 21:02 ` Jan Kiszka
2007-09-08 21:04 ` Philippe Gerum
2007-09-09 14:30 ` Bachman Kharazmi
2007-09-09 14:51 ` Jan Kiszka [this message]
2007-09-09 15:09 ` Bachman Kharazmi
2007-09-09 15:29 ` Jan Kiszka
2007-09-09 16:13 ` Bachman Kharazmi
2007-09-09 16:17 ` Bachman Kharazmi
2007-09-09 16:42 ` Jan Kiszka
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=46E4085F.3080509@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=bahkha@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.