How to add serial driver to RTEMS?

Yanjun Luo yjluo at panjet.net
Wed Sep 1 03:39:51 UTC 2004


Hi, all,
I'm running RTEMS at my AT92RM9200 designed by myself
(similar with AT91RM9200DK).

My RTEMS is ported from here:
http://www.lopingdog.com/rtems

The AT91RM9200 DBGU port are working very well.(Thinks to Mike and Jay).

Now I need to support another 4 USART in my board, so I need
write the driver for them. I compared registers of DBGU and USART,
found it's similar, so I want to change DBGU's driver to support USART.

I changed Console_Port_Tbl table in uarts.c, added another 4 ports.
How can I register to system and get a name? I mean, ttyS0, ttyS1...

I know DBGU's name is "/dev/console", but where it registered by
rtems_io_register_name? I write some code to open "/dev/console",
it failed(return -1).

I'm new to RTEMS, thanks for any kind of help. 
And I'll send a patch when I finished this job.

Yanjun Luo.



More information about the users mailing list