Skip to contentSkip to conversation

How can I use DBAu1550 UART3 instead of UART0?

DISCUSSION Charles C.K.Lai 2 participants 4 messages May 3, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

Dear All,

I have a AMD DBAu1550 Development board,
if I have to use the uart port 3 instead of uart port 0, what can I do?

Thanks a lot.

Charles C.K. Lai

#1 lore raw

Hi Charles,

Quoted 3 lines · Charles C.K.Lai

I have a AMD DBAu1550 Development board,
if I have to use the uart port 3 instead of uart port 0, what can I do?

Using /dev/ttyS3 instead of /dev/ttyS0 might be the thing to do. Do you see both ports get detected during boot ($ dmesg)? That should give you a clue.

Signature · 4 lines
$ cat ~/.signature
Freddy Spierenburg <[email protected]>  http://freddy.snarl.nl/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
#2 lore raw

Dear Freddy,

If I'd like to build my kernel starting with UART port 3, not starting with UART port 0,
which files should I modify?
Or what should I take care?

Thanks a lot.

Charles C.K. Lai

#3 lore raw

Hi Charles,

I'm not sure what you try to accomplish, so I'll try to answer your question in two ways.

Quoted 2 lines · Charles C.K.Lai

If I'd like to build my kernel starting with UART port 3, not starting with UART port 0,

Do you want UART port 3 to become /dev/ttyS0 and completely ignore the fact that your CPU has a UART port 0 and 1 too? So you just only want to use 1 UART namely port 3 of you CPU? If this is the case you can start fiddling around with drivers/serial/8250_au1x00.c and also have a loog at include/asm/mach-au1x00/au1000.h

If you just want to have your serial console on UART port 3 instead of port 0 you have to do a little bit more. First you need to tell yamon (the bootloader I expect you to use) to use UART port 3 instead of port 0 and then you just boot the kernel with the console= option. See Documentation/kernel-parameters.txt for more information.

Hope this will help. Otherwist try to explain a little bit more thoroughly what you try to accomplish. Good luck!

Signature · 4 lines
$ cat ~/.signature
Freddy Spierenburg <[email protected]>  http://freddy.snarl.nl/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!