Skip to contentSkip to conversation

Serial console ports on systems with no console connected.

DISCUSSION Arun Dharankar 2 participants 3 messages Jul 9, 2002

lore
Share & tools
lore
#0 lore raw

Greetings...

This question is common to both ppcboot and ppc-linux. The ppcboot I am using is 1.1.5 and Linux kernel 2.4.18.

If there is no console connected to the serial console port, is it true that a thread sending output to it hangs? If this is ppcboot the bootup process would not proceed? What consequences would we see on Linux?

I have a MPC8260ADS based board, and see the above behavior under ppcboot. Under Linux using a BDI debugger the thread sending output to the console hangs. Perhaps under Linux we can set the termio modes to have no flow control, but am not sure if this will solve the problem.

If this is true, is there a clean/proper way to have a setup such that this hang can be avoided?

Best regards,
-Arun.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

This question is common to both ppcboot and ppc-linux. The ppcboot I am using is 1.1.5 and Linux kernel 2.4.18.

If there is no console connected to the serial console port, is it true that a thread sending output to it hangs? If this is

No, this is NOT true.

Why should it? There is no flow control used - neither in the PPCBoot nor in the Linux UART drivers...

Quoted 1 line

I have a MPC8260ADS based board, and see the above

...at least not in the standard MPC8xx and MPC8260 UART drivers.

Quoted 2 lines

behavior under ppcboot. Under Linux using a BDI debugger the thread sending output to the console hangs. Perhaps

You must be doing something wrong.

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] If you believe that feeling bad or worrying long enough will change a past or future event, then you are residing on another planet with a different reality system.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw

Hello, and thanks for your reply!

The board has SCC4 and SMC1 based serial ports. I have tried both of these as console ports under Linux and PPCBOOT. PPCBOOT code is unmodified (as it is from the distribution) for SCC4 and SMC1 code. The Linux code is unmodified for SMC1, and I see this behavior in case of both these serial ports.

The place where the BDI shows the PC to hang is in serial_putc(...) waiting for the transmit buffer to be drained by the 8260:

    /* Wait for last character to go.
    */
    while (tbdf->cbd_sc & BD_SC_READY)
        ;

Ofcourse, when the cable is present, things work well.

Though I dont see any code path, or from hardware perspective what could be wrong, I am open to any guesses/hints at debugging it.

Best regards,
-Arun.

Quoted 14 lines · Wolfgang Denk
Quoted 5 lines · In message <[email protected]> you wrote:

This question is common to both ppcboot and ppc-linux. The ppcboot I am using is 1.1.5 and Linux kernel 2.4.18.

If there is no console connected to the serial console port, is it true that a thread sending output to it hangs? If this is

No, this is NOT true.

Why should it? There is no flow control used - neither in the PPCBoot nor in the Linux UART drivers...

Quoted 1 line

I have a MPC8260ADS based board, and see the above

Quoted 8 lines

...at least not in the standard MPC8xx and MPC8260 UART drivers.

Quoted 2 lines

behavior under ppcboot. Under Linux using a BDI debugger the thread sending output to the console hangs. Perhaps

You must be doing something wrong.

Wolfgang Denk

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/