All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Beagleboard and RTDM serial example
@ 2010-05-30  1:44 Everett Wang
  2010-05-30  7:22 ` Wolfgang Grandegger
  0 siblings, 1 reply; 2+ messages in thread
From: Everett Wang @ 2010-05-30  1:44 UTC (permalink / raw)
  To: xenomai

Hi All,

I have made some progress in getting RTDM 16550A working for my
beagleboard. Followed
Wolfgang's instructions, I first set uart 0,1 free from kernel then
load 16550A driver.

setserial /dev/ttyS0 uart none
setserial /dev/ttyS1 uart none

I can load the driver fine:
insmod /lib/modules/2.6.33.3/kernel/drivers/xenomai/serial/xeno_16550A.ko
mem=0x4806a000 irq=72 baud_base=3000000

The baud_base is set to 3000000 since the
linux/arch/arm/plat-omap/include/plat/serial.h defined
OMAP24XX_BASE_BAUD  3000000. Hope this is OK.
after that I can see the rtser0 in the /proc/xenomai/rtdm:

cat /proc/xenomai/rtdm/rtser0/information
driver:         xeno_16550A
version:        1.5.2
peripheral:     UART 16550A
provider:       Jan Kiszka
class:          2
sub-class:      0
flags:          EXCLUSIVE  NAMED_DEVICE

But I can only create one rtser. When I tried to create an other rtser
for ttyS1, I had this:

insmod /lib/modules/2.6.33.3/kernel/drivers/xenomai/serial/xeno_16550A.ko
mem=0x4806c000 irq=73 baud_base=3000000
insmod: error inserting
'/lib/modules/2.6.33.3/kernel/drivers/xenomai/serial/xeno_16550A.ko':
-1 File exists

I could also do the ttyS1 first. It will create an rtser0 as well. But
when I do insmod for ttyS0, it will have the same error message.

How can I create rtser0 and rtser1 for beagleboard?

In the xenomai example cross-link, it requires two rtsers, one for
read and another for write. Can I have just one for both read and
write?
Currently I have a GPS connected to ttyS1. It sends some data every
0.1 second. I want to modify the example so I can read the
GPS data in real time. This should be easy to do?

Have a nice weekend,

Everett


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

* Re: [Xenomai-help] Beagleboard and RTDM serial example
  2010-05-30  1:44 [Xenomai-help] Beagleboard and RTDM serial example Everett Wang
@ 2010-05-30  7:22 ` Wolfgang Grandegger
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Grandegger @ 2010-05-30  7:22 UTC (permalink / raw)
  To: Everett Wang; +Cc: xenomai

On 05/30/2010 03:44 AM, Everett Wang wrote:
> Hi All,
> 
> I have made some progress in getting RTDM 16550A working for my
> beagleboard. Followed
> Wolfgang's instructions, I first set uart 0,1 free from kernel then
> load 16550A driver.
> 
> setserial /dev/ttyS0 uart none
> setserial /dev/ttyS1 uart none
> 
> I can load the driver fine:
> insmod /lib/modules/2.6.33.3/kernel/drivers/xenomai/serial/xeno_16550A.ko
> mem=0x4806a000 irq=72 baud_base=3000000
> 
> The baud_base is set to 3000000 since the
> linux/arch/arm/plat-omap/include/plat/serial.h defined
> OMAP24XX_BASE_BAUD  3000000. Hope this is OK.
> after that I can see the rtser0 in the /proc/xenomai/rtdm:
> 
> cat /proc/xenomai/rtdm/rtser0/information
> driver:         xeno_16550A
> version:        1.5.2
> peripheral:     UART 16550A
> provider:       Jan Kiszka
> class:          2
> sub-class:      0
> flags:          EXCLUSIVE  NAMED_DEVICE
> 
> But I can only create one rtser. When I tried to create an other rtser
> for ttyS1, I had this:
> 
> insmod /lib/modules/2.6.33.3/kernel/drivers/xenomai/serial/xeno_16550A.ko
> mem=0x4806c000 irq=73 baud_base=3000000
> insmod: error inserting
> '/lib/modules/2.6.33.3/kernel/drivers/xenomai/serial/xeno_16550A.ko':
> -1 File exists
> 
> I could also do the ttyS1 first. It will create an rtser0 as well. But
> when I do insmod for ttyS0, it will have the same error message.
> 
> How can I create rtser0 and rtser1 for beagleboard?

insmod ... mem=0x4806a000,0x4806c000 irq=72,73 baud_base=3000000,3000000

Wolfgang.


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

end of thread, other threads:[~2010-05-30  7:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-30  1:44 [Xenomai-help] Beagleboard and RTDM serial example Everett Wang
2010-05-30  7:22 ` Wolfgang Grandegger

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.