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: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to