* Serial console problem on MPC8272ADS board
@ 2005-01-23 8:56 ning
2005-01-24 18:28 ` annamaya
0 siblings, 1 reply; 6+ messages in thread
From: ning @ 2005-01-23 8:56 UTC (permalink / raw)
To: linuxppc-embedded
Hello to all
I am trying to use ttyS1(SCC4) as Linux serial console
port on on MPC8272ADS board.
but it doesn't work.
My linux kernel is 2.4.22,and using u-boot-1.1.1 as a
bootload.
Linux kernel doesn't output any log information after
u-boot's message:
Uncompressing kernel Image ... OK
If I use ttyS0(SCC1) as a serial console port,Linux will
startup successfully.
CPM UART driver version 0.01
ttyS0 at 0x8000 is a SCC
ttyS1 at 0x8300 is a SCC
...
I found serial console port seems be defined in
/arch/ppc/8260_io/uart.c,
but it doesn't work enen if I change
CONFIG_SERIAL_CONSOLE_PORT to 1 (default:0)
I wonder serial console port only can be set to
ttyS0(SCC1) on MPC8272ADS?
Thanks.
__________________________________
Do You Yahoo!?
Upgrade Your Life
http://bb.yahoo.co.jp/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial console problem on MPC8272ADS board
2005-01-23 8:56 ning
@ 2005-01-24 18:28 ` annamaya
0 siblings, 0 replies; 6+ messages in thread
From: annamaya @ 2005-01-24 18:28 UTC (permalink / raw)
To: ning, linuxppc-embedded
I do not know much about the MPC82702ADS but are you
sure that the SCC4 is actually hooked up to an
external serial port on this board? It may be that the
SCC4 may not even be used on this board. Take a look
at the datasheet for the board and see if SCC4 is used
at all.
--- ning <ningmin@yahoo.co.jp> wrote:
> Hello to all
>
> I am trying to use ttyS1(SCC4) as Linux serial
> console
> port on on MPC8272ADS board.
> but it doesn't work.
> My linux kernel is 2.4.22,and using u-boot-1.1.1 as
> a
> bootload.
> Linux kernel doesn't output any log information
> after
> u-boot's message:
> Uncompressing kernel Image ... OK
>
> If I use ttyS0(SCC1) as a serial console port,Linux
> will
> startup successfully.
>
> CPM UART driver version 0.01
> ttyS0 at 0x8000 is a SCC
> ttyS1 at 0x8300 is a SCC
> ...
>
> I found serial console port seems be defined in
> /arch/ppc/8260_io/uart.c,
> but it doesn't work enen if I change
> CONFIG_SERIAL_CONSOLE_PORT to 1 (default:0)
>
> I wonder serial console port only can be set to
> ttyS0(SCC1) on MPC8272ADS?
>
> Thanks.
>
> __________________________________
> Do You Yahoo!?
> Upgrade Your Life
> http://bb.yahoo.co.jp/
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
>
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial console problem on MPC8272ADS board
@ 2005-01-25 8:27 Vitaly Bordug
2005-01-28 10:02 ` ning
0 siblings, 1 reply; 6+ messages in thread
From: Vitaly Bordug @ 2005-01-25 8:27 UTC (permalink / raw)
To: ningmin, linuxppc-embedded
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial console problem on MPC8272ADS board
2005-01-25 8:27 Serial console problem on MPC8272ADS board Vitaly Bordug
@ 2005-01-28 10:02 ` ning
2005-02-01 17:10 ` Vitaly Bordug
2005-02-02 12:28 ` Jeff Angielski
0 siblings, 2 replies; 6+ messages in thread
From: ning @ 2005-01-28 10:02 UTC (permalink / raw)
To: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial console problem on MPC8272ADS board
2005-01-28 10:02 ` ning
@ 2005-02-01 17:10 ` Vitaly Bordug
2005-02-02 12:28 ` Jeff Angielski
1 sibling, 0 replies; 6+ messages in thread
From: Vitaly Bordug @ 2005-02-01 17:10 UTC (permalink / raw)
To: ning; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial console problem on MPC8272ADS board
2005-01-28 10:02 ` ning
2005-02-01 17:10 ` Vitaly Bordug
@ 2005-02-02 12:28 ` Jeff Angielski
1 sibling, 0 replies; 6+ messages in thread
From: Jeff Angielski @ 2005-02-02 12:28 UTC (permalink / raw)
To: ning; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-02-02 12:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 8:27 Serial console problem on MPC8272ADS board Vitaly Bordug
2005-01-28 10:02 ` ning
2005-02-01 17:10 ` Vitaly Bordug
2005-02-02 12:28 ` Jeff Angielski
-- strict thread matches above, loose matches on Subject: below --
2005-01-23 8:56 ning
2005-01-24 18:28 ` annamaya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).