All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Problem with multiport serial board
@ 2006-11-10 16:00 Marco Rossi
  2006-11-10 16:11 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Rossi @ 2006-11-10 16:00 UTC (permalink / raw)
  To: xenomai




Hi every body. I'm testing my multiport serial board (2 extra serial port) 
with shared interrupt using the program found at 
http://www.rts.uni-hannover.de/rtaddon/rt_serial_uprog.tar.bz2 .

I insert the module xeno_16550A.ko in the follow way:
insmod /.../xeno_16550A.ko ioaddr=0x3f8, 0x2f8, 0xd800, 0xdc00 irq=4,3,5,5 
start_index=0

When I use only a extra port the program works, but when I try to write in 
the first extra port and to read in the second extraport I got an error 
opening the second extraport.

For example if I write in ttS0 and I read from ttyS2 all work; if   I write 
in ttS2 and I read from ttyS3 i get :
can't open rtser3 (the rt_dev_open return a negative file descriptor).
Thank in advance
Marco

_________________________________________________________________
Idee per i tuoi viaggi... 
http://search.live.com/results.aspx?q=viaggi&mkt=it-it&FORM=LVSP&go.x=18&go.y=15



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] Problem with multiport serial board
  2006-11-10 16:00 [Xenomai-help] Problem with multiport serial board Marco Rossi
@ 2006-11-10 16:11 ` Jan Kiszka
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2006-11-10 16:11 UTC (permalink / raw)
  To: Marco Rossi; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

Marco Rossi wrote:
> 
> 
> 
> Hi every body. I'm testing my multiport serial board (2 extra serial
> port) with shared interrupt using the program found at
> http://www.rts.uni-hannover.de/rtaddon/rt_serial_uprog.tar.bz2 .
> 
> I insert the module xeno_16550A.ko in the follow way:
> insmod /.../xeno_16550A.ko ioaddr=0x3f8, 0x2f8, 0xd800, 0xdc00
> irq=4,3,5,5 start_index=0
> 
> When I use only a extra port the program works, but when I try to write
> in the first extra port and to read in the second extraport I got an
> error opening the second extraport.
> 
> For example if I write in ttS0 and I read from ttyS2 all work; if   I
> write in ttS2 and I read from ttyS3 i get :
> can't open rtser3 (the rt_dev_open return a negative file descriptor).

The negative number is the error code (see documentation). It likely
says -EBUSY, meaning here that the IRQ line is already in use. Check
your Xenomai kernel configuration, I guess you haven't switched on
shared edge-triggered IRQ support yet, have you?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] Problem with multiport serial board
@ 2006-11-10 16:33 Marco Rossi
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Rossi @ 2006-11-10 16:33 UTC (permalink / raw)
  To: xenomai

Yes, I  haven't switched on shared edge-triggered IRQ support. When i 
compiled the kernel i missed to set this option, I'm not yet practical in 
xenomai.
Thanks again.
Marco


>From: Jan Kiszka <jan.kiszka@domain.hid>
>To: Marco Rossi <cicciobombo123@domain.hid>
>CC: xenomai@xenomai.org
>Subject: Re: [Xenomai-help] Problem with multiport serial board
>Date: Fri, 10 Nov 2006 17:11:19 +0100
>
>Marco Rossi wrote:
> >
> >
> >
> > Hi every body. I'm testing my multiport serial board (2 extra serial
> > port) with shared interrupt using the program found at
> > http://www.rts.uni-hannover.de/rtaddon/rt_serial_uprog.tar.bz2 .
> >
> > I insert the module xeno_16550A.ko in the follow way:
> > insmod /.../xeno_16550A.ko ioaddr=0x3f8, 0x2f8, 0xd800, 0xdc00
> > irq=4,3,5,5 start_index=0
> >
> > When I use only a extra port the program works, but when I try to write
> > in the first extra port and to read in the second extraport I got an
> > error opening the second extraport.
> >
> > For example if I write in ttS0 and I read from ttyS2 all work; if   I
> > write in ttS2 and I read from ttyS3 i get :
> > can't open rtser3 (the rt_dev_open return a negative file descriptor).
>
>The negative number is the error code (see documentation). It likely
>says -EBUSY, meaning here that the IRQ line is already in use. Check
>your Xenomai kernel configuration, I guess you haven't switched on
>shared edge-triggered IRQ support yet, have you?
>
>Jan
>


><< signature.asc >>

_________________________________________________________________
Chiama gratis con Windows Live Messenger  
http://imagine-msn.com/messenger/launch80/?locale=it-it&TAB=2



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-10 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-10 16:00 [Xenomai-help] Problem with multiport serial board Marco Rossi
2006-11-10 16:11 ` Jan Kiszka
  -- strict thread matches above, loose matches on Subject: below --
2006-11-10 16:33 Marco Rossi

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.