Skip to contentSkip to conversation

Serial console for Linux at SCC1?

U-Boot-Users Steven Scholz 2 participants 4 messages Aug 13, 2003

lore
Share & tools
lore
#0 lore raw

Hi there,

on my MPC8xx board I use SMC1 as serial console for U-Boot and Linux.

I start linux using these bootargs

setenv bootargs root=/dev/mtdblock0 rw console=ttyS0

Linux tells me
...
CPM UART driver version 0.04
ttyS0 on SMC1 at 0x0280, BRG1
ttyS1 on SMC2 at 0x0380, BRG2
ttyS2 on SCC1 at 0x0000, BRG3
...

Everything is fine.
BUT:
Now I just wanted to set bootargs to "root=/dev/mtdblock0 rw console=ttyS2" in order to get a Linux console at a different Port.
But it's not working, i.e. I can't see any messages at ttyS2.

Could it be that since I configured U-Boot to use SMC for console, it's not going work with SCC anyway?

Thanks,

Steven

#1 lore raw

Dear Steven,

Quoted 4 lines · in message <[email protected]> you wrote:

Now I just wanted to set bootargs to "root=/dev/mtdblock0 rw console=ttyS2" in order to get a Linux console at a different Port.
But it's not working, i.e. I can't see any messages at ttyS2.

Maybe you just used a wrong baudrate?

Quoted 2 lines

Could it be that since I configured U-Boot to use SMC for console, it's not going work with SCC anyway?

The Linux driver init code is completely independend from what any bootloader might be doing.

Maybe you should pass a baudrate with the boot argument, something like "... console=ttyS2,9600 ..." ?

Best regards,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
There comes to all races an ultimate crisis which  you  have  yet  to
face  ....  One  day  our  minds became so powerful we dared think of
ourselves as gods.
	-- Sargon, "Return to Tomorrow", stardate 4768.3
#2 lore raw

Dear Wolfgang,

Quoted 14 lines
Quoted 3 lines · in message <[email protected]> you wrote:

Now I just wanted to set bootargs to "root=/dev/mtdblock0 rw console=ttyS2" in order to get a Linux console at a different Port.
But it's not working, i.e. I can't see any messages at ttyS2.

Maybe you just used a wrong baudrate?

Quoted 2 lines

Could it be that since I configured U-Boot to use SMC for console, it's not going work with SCC anyway?

Quoted 5 lines

The Linux driver init code is completely independend from what any bootloader might be doing.

Maybe you should pass a baudrate with the boot argument, something like "... console=ttyS2,9600 ..." ?

I tried console=ttyS2,9600 and others.
But even with a scope I can't see signals coming out ... :-( So I know it's probably a linux question, but please:

Do you know of any (MPC8xx) boards that use SCC1 as serial console under linuxppc_2_4_devel from your CVS?

BTW U-Boot is working with SCC1 as console!

Steven

#3 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

Do you know of any (MPC8xx) boards that use SCC1 as serial console under linuxppc_2_4_devel from your CVS?

No. We never tested such a configuration yet.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Put your Nose to the Grindstone!
                 -- Amalgamated Plastic Surgeons and Toolmakers, Ltd.