Skip to contentSkip to conversation

Test xen_16500A.ko on different serial port

Xenomai-help Marcel Soulot 4 participants 7 messages Mar 31, 2009

lore
Share & tools
lore
#0 lore raw

Hi

I start with xenomai so I patch the kernel 2.6.26.7 with the version 2.4.6.

So I try to test the xeno_16550A.ko driver generated instead of the standard 16550A on serial port ttyS0 ioaddr=0x3f8 irq=4 (standard one) and also on serial port in PCI card ttyS6 ioaddr=0xe0000400 irq=10.

I used the following command to substitute the 16550A driver used by the xeno_16550A.ko:

Quoted 2 lines

setserial /dev/ttyS0 uart none
insmod ./xeno_16550.ko ioaddr=0x3f8 irq=4

I got the error message :

xeno_16550A: Unkonwn parameter 'ioaddr'
insmod: error inserting './xeno_16550A.ko': -1 Unknown symbol in module

and I got the same thing with the other port.

Can you explain me how I can load correctly the xeno_16550A.ko

Thanks for your help.

Marcel.

#1 lore raw
Quoted 14 lines · Marcel Soulot

Hi

I start with xenomai so I patch the kernel 2.6.26.7 with the version 2.4.6.

So I try to test the xeno_16550A.ko driver generated instead of the standard 16550A on serial port ttyS0 ioaddr=0x3f8 irq=4 (standard one) and also on serial port in PCI card ttyS6 ioaddr=0xe0000400 irq=10.

I used the following command to substitute the 16550A driver used by the xeno_16550A.ko:

Quoted 2 lines

setserial /dev/ttyS0 uart none
insmod ./xeno_16550.ko ioaddr=0x3f8 irq=4

Quoted 8 lines

I got the error message :

xeno_16550A: Unkonwn parameter 'ioaddr'
insmod: error inserting './xeno_16550A.ko': -1 Unknown symbol in module

and I got the same thing with the other port.

Can you explain me how I can load correctly the xeno_16550A.ko

There is no ioaddr parameter to this module, as documented here:
http://www.xenomai.org/index.php/16550A

The "Unknown symbol in module" message alone does not tell us much, module related message appear clearly in the kernel logs, not on the terminal where modprobe is run.

Signature · 1 line
                                                 Gilles.
#2 lore raw
In reply to Marcel Soulot

Hi

Quoted 12 lines · Marcel Soulot

Hi

I start with xenomai so I patch the kernel 2.6.26.7 with the version 2.4.6.

So I try to test the xeno_16550A.ko driver generated instead of the standard 16550A on serial port ttyS0 ioaddr=0x3f8 irq=4 (standard one) and also on serial port in PCI card ttyS6 ioaddr=0xe0000400 irq=10.

I used the following command to substitute the 16550A driver used by the xeno_16550A.ko:

Quoted 9 lines
Quoted 2 lines

setserial /dev/ttyS0 uart none
insmod ./xeno_16550.ko ioaddr=0x3f8 irq=4

I got the error message :

xeno_16550A: Unkonwn parameter 'ioaddr'
insmod: error inserting './xeno_16550A.ko': -1 Unknown symbol in module

Instead of 'ioaddr', try 'io' (without the apostrophes)

Quoted 7 lines

and I got the same thing with the other port.

Can you explain me how I can load correctly the xeno_16550A.ko

Thanks for your help.

Marcel.

Thanx
Vicki

Quoted 4 lines

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

#3 lore raw
In reply to Marcel Soulot
Quoted 11 lines · Marcel Soulot

Hi

I start with xenomai so I patch the kernel 2.6.26.7 with the version 2.4.6.

So I try to test the xeno_16550A.ko driver generated instead of the standard 16550A on serial port ttyS0 ioaddr=0x3f8 irq=4 (standard one) and also on serial port in PCI card ttyS6 ioaddr=0xe0000400 irq=10.

I used the following command to substitute the 16550A driver used by the xeno_16550A.ko:

Quoted 6 lines
Quoted 2 lines

setserial /dev/ttyS0 uart none
insmod ./xeno_16550.ko ioaddr=0x3f8 irq=4

I got the error message :

xeno_16550A: Unkonwn parameter 'ioaddr'

You may try "io="

Signature · 1 line
Sebastian
#4 lore raw

Hi,

thanks for the answer.

now, the command insmod ./xeno_16550.ko io=0x3f8 irq=4 is accepted. My question is: does the xeno_16550A.ko driver has replaced the 16550A and I able to use the serial com as usual ?

Because I try to communication but it doesn't work.

thanks,
Marcel.

2009/3/31 Sebastian Smolorz <[email protected]>

Quoted 29 lines
Quoted 13 lines · Marcel Soulot

Hi

I start with xenomai so I patch the kernel 2.6.26.7 with the version 2.4.6.

So I try to test the xeno_16550A.ko driver generated instead of the standard
16550A on serial port ttyS0 ioaddr=0x3f8 irq=4 (standard one) and also on serial port in PCI card ttyS6 ioaddr=0xe0000400 irq=10.

I used the following command to substitute the 16550A driver used by the xeno_16550A.ko:

Quoted 8 lines

setserial /dev/ttyS0 uart none

Quoted 2 lines

insmod ./xeno_16550.ko ioaddr=0x3f8 irq=4

I got the error message :

xeno_16550A: Unkonwn parameter 'ioaddr'

You may try "io="

--
Sebastian

#5 lore raw

Hi sorry,

I was not very explicit in my last mail.

I try to test with the code from
http://www.captain.at/xenomai-serial-port-example.php

but i got an error: "can't open rtser6" because i try to communicate with the port "ttyS6"

Do I load something related with the RTDM or something else ? I'm a bit confused.

thanks,
Marcel.

2009/3/31 Marcel Soulot <[email protected]>

Quoted 47 lines

Hi,

thanks for the answer.

now, the command insmod ./xeno_16550.ko io=0x3f8 irq=4 is accepted. My question is: does the xeno_16550A.ko driver has replaced the 16550A and I able to use the serial com as usual ?

Because I try to communication but it doesn't work.

thanks,
Marcel.

2009/3/31 Sebastian Smolorz <[email protected]>

Quoted 28 lines · Marcel Soulot
Quoted 14 lines

Hi

I start with xenomai so I patch the kernel 2.6.26.7 with the version 2.4.6.

So I try to test the xeno_16550A.ko driver generated instead of the standard
16550A on serial port ttyS0 ioaddr=0x3f8 irq=4 (standard one) and also on serial port in PCI card ttyS6 ioaddr=0xe0000400 irq=10.

I used the following command to substitute the 16550A driver used by the xeno_16550A.ko:

Quoted 8 lines

setserial /dev/ttyS0 uart none

Quoted 2 lines

insmod ./xeno_16550.ko ioaddr=0x3f8 irq=4

I got the error message :

xeno_16550A: Unkonwn parameter 'ioaddr'

You may try "io="

--
Sebastian

#6 lore raw
Quoted 9 lines · Marcel Soulot

Hi sorry,

I was not very explicit in my last mail.

I try to test with the code from
http://www.captain.at/xenomai-serial-port-example.php

but i got an error: "can't open rtser6" because i try to communicate with the port "ttyS6"

The enumeration of the Xenomai serial driver has nothing to do with the Linux counterpart. Try rtser0. Also note that you have to use the RT serial driver through RTDM calls and not Linux system calls.

Signature · 1 line
Sebastian