xenomai beginner problem
On 7/11, Jan Kiszka wrote:
Kim Chuan Lim wrote:
I am interested with the hard real time serial port example from..
http://www.captain.at/xenomai-serial-port-example.php
The following is the error message i received when i try to run the program..
./rt_serial_uprog
rt_serial_uprog: PRESS CTRL-C to EXIT
rt_serial_uprog: timer started
rt_serial_uprog: can't open rtser0
rt_serial_uprog: stop timer
May i know which device is "rtser0"? shall i just change it to /dev/ttyS0?
Check Hannes' doku: you have to load the xeno_16550A driver.
I'm also a beginner on Xenomai and I have the same problem as Kim Chuan Lim.
I verified my configuration : RTDM skin and 16550A driver are both integrated
in my 2.6.16 kernel, so these modules don't exist.
Shall I create rtser0 node ?
Martin
Quoted 17 lines · Martin Chaplet
On 7/11, Jan Kiszka wrote:
Kim Chuan Lim wrote:
I am interested with the hard real time serial port example from..
http://www.captain.at/xenomai-serial-port-example.phpThe following is the error message i received when i try to run the program..
./rt_serial_uprog
rt_serial_uprog: PRESS CTRL-C to EXIT
rt_serial_uprog: timer started
rt_serial_uprog: can't open rtser0
rt_serial_uprog: stop timerMay i know which device is "rtser0"? shall i just change it to
/dev/ttyS0?
Quoted 7 lines
Check Hannes' doku: you have to load the
xeno_16550Adriver.I'm also a beginner on Xenomai and I have the same problem as Kim Chuan Lim.
I verified my configuration : RTDM skin and 16550A driver are both integrated
in my 2.6.16 kernel, so these modules don't exist.
Shall I create rtser0 node ?
Nope, there is no such thing as device nodes under Xenomai's RTDM skin. But when your 16550A driver is compiled into the kernel, you have to provide some hardware parameters via the boot command line to configure at least one port:
8250.nr_uarts=0 (to keep Linux away from using the UARTs)
xeno_16550A.ioaddr=0x3f8 (first UART)
xeno_16550A.irq=4 (first UART)
Of course, you can also increase 8250.nr_uarts and move the 16550A driver to some other port etc. I guess this should make it into doc/txt/16550A-driver.txt as well...
Alternatively, turning xeno_16550A into a module again allows you to reconfigure your hardware on a running system. Then that mentioned doc file fully applies again.
Jan
Quoted 17 lines · Martin Chaplet
On 7/11, Jan Kiszka wrote:
Kim Chuan Lim wrote:
I am interested with the hard real time serial port example from..
http://www.captain.at/xenomai-serial-port-example.phpThe following is the error message i received when i try to run the program..
./rt_serial_uprog
rt_serial_uprog: PRESS CTRL-C to EXIT
rt_serial_uprog: timer started
rt_serial_uprog: can't open rtser0
rt_serial_uprog: stop timerMay i know which device is "rtser0"? shall i just change it to
/dev/ttyS0?
Quoted 7 lines
Check Hannes' doku: you have to load the
xeno_16550Adriver.I'm also a beginner on Xenomai and I have the same problem as Kim Chuan Lim.
I verified my configuration : RTDM skin and 16550A driver are both integrated
in my 2.6.16 kernel, so these modules don't exist.
Shall I create rtser0 node ?
I think I had the 16550A driver once also compiled in, but I couldn't configure it. But once you compile it as module, check:
http://www.captain.at/xenomai-xeno_16550A.php
Best regards,
Hannes.