Re: Serial console problem on MPC8272ADS board

4 messages, 4 authors, 2005-02-02 · open the first message on its own page

Re: Serial console problem on MPC8272ADS board

From: Vitaly Bordug <hidden>
Date: 2005-01-25 08:34:20

Ning,
Well, AFAIK the serial console on the second UART (and second UART on 
SCC4 as well) haven't been included yet to the community tree. To be 
sure you can take a look in the 8260_io/uart.c where in rs_table 
structure second entry should be {0, 0, PROFF_SCC4 ... Implementation is 
not that hard, you need only make proper mentioned entry, enable 
transceiver (BCSR+4), and program parallel port pins (take a look at 
chapter 37 of MPC8272 reference manual, grep for SCC4).

--
Regards, Vitaly

Re: Serial console problem on MPC8272ADS board

From: ning <hidden>
Date: 2005-01-28 10:02:40

Hello,Vitaly

Thanks for your reply.

I added SCC4 to rs_table as following:
static struct serial_state rs_table[] = {
	/* UART CLK   PORT          IRQ      FLAGS  NUM */
	{ 0,     0, PROFF_SCC1, SIU_INT_SCC1,   0,   (0 |
NUM_IS_SCC) }, /* SCC1 ttyS0 */
	{ 0,     0, PROFF_SCC4, SIU_INT_SCC4,   0,   (3 |
NUM_IS_SCC) }, /* SCC4 ttyS1 */
};

ttyS0,ttyS1 work as COM port,but linux boot log only is
outputed at ttyS0,how can I redirect it at ttyS1?
After linux boots successfully,linux prompt will display
at ttyS1,and I use it normally.
(u-boot parameter: setenv bootargs root=/dev/nfs rw
console=ttyS1,115200n8
rootfs: /dev/console --> ttyS1)

at \arch\ppc\boot\simple\m8260_tty.c,Even if I define
SCC_CONSOLE to 4,Linux boot log is outputed at ttyS0.
the following  comment is written at m8260_tty.c:

/* If defined, enables serial console.  The value (1
through 4) should designate which SCC is used, but this
isn't complete.  Only SCC1 is known to work at this time.
*/

#ifdef CONFIG_SCC_CONSOLE
#define SCC_CONSOLE 4
#endif


Maybe it is true.
--- Vitaly Bordug <vvv75@yandex.ru> からのメッセージ:
Ning,
Well, AFAIK the serial console on the second UART
(and second UART on 
SCC4 as well) haven't been included yet to the
community tree. To be 
sure you can take a look in the 8260_io/uart.c where
in rs_table 
structure second entry should be {0, 0, PROFF_SCC4
... Implementation is 
not that hard, you need only make proper mentioned
entry, enable 
transceiver (BCSR+4), and program parallel port pins
(take a look at 
chapter 37 of MPC8272 reference manual, grep for
SCC4).

--
Regards, Vitaly
__________________________________
Let's Celebrate Together!
Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/so2005/

Re: Serial console problem on MPC8272ADS board

From: Vitaly Bordug <hidden>
Date: 2005-02-01 17:17:30

ning wrote:
Hello,Vitaly

Thanks for your reply.

I added SCC4 to rs_table as following:
static struct serial_state rs_table[] = {
/* UART CLK   PORT          IRQ      FLAGS  NUM */
{ 0,     0, PROFF_SCC1, SIU_INT_SCC1,   0,   (0 |
NUM_IS_SCC) }, /* SCC1 ttyS0 */
{ 0,     0, PROFF_SCC4, SIU_INT_SCC4,   0,   (3 |
NUM_IS_SCC) }, /* SCC4 ttyS1 */
};

ttyS0,ttyS1 work as COM port,but linux boot log only is
outputed at ttyS0,how can I redirect it at ttyS1?
After linux boots successfully,linux prompt will display
at ttyS1,and I use it normally.
(u-boot parameter: setenv bootargs root=/dev/nfs rw
console=ttyS1,115200n8
rootfs: /dev/console --> ttyS1)

at \arch\ppc\boot\simple\m8260_tty.c,Even if I define
SCC_CONSOLE to 4,Linux boot log is outputed at ttyS0.
the following  comment is written at m8260_tty.c:

/* If defined, enables serial console.  The value (1
through 4) should designate which SCC is used, but this
isn't complete.  Only SCC1 is known to work at this time.
*/

#ifdef CONFIG_SCC_CONSOLE
#define SCC_CONSOLE 4
#endif


Maybe it is true.
 
Well, I can only advice to try linuxppc_2_4 or -2.4 repositories, adding
bits to support SCC4 console and so on...
--
Regards,

Vitaly

Re: Serial console problem on MPC8272ADS board

From: Jeff Angielski <hidden>
Date: 2005-02-02 12:33:30

On Fri, 2005-01-28 at 05:02, ning wrote:
I added SCC4 to rs_table as following:
static struct serial_state rs_table[] = {
	/* UART CLK   PORT          IRQ      FLAGS  NUM */
	{ 0,     0, PROFF_SCC1, SIU_INT_SCC1,   0,   (0 |
NUM_IS_SCC) }, /* SCC1 ttyS0 */
	{ 0,     0, PROFF_SCC4, SIU_INT_SCC4,   0,   (3 |
NUM_IS_SCC) }, /* SCC4 ttyS1 */
};
Did you configure the SCC4 I/O pins correctly?

Have you programmed the BRGs correctly?  Does it match what is routed to
SCC4 in the CMX registers?

When booting using SCC1 as the console, can you read and write data
using SCC4?  If not, you should get this working and then worry about
configuring it as the console.


Jeff Angielski
The PTR Group
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help