[U-Boot] [PATCH] tegra: Specify debugging serial port at boot.

Wolfgang Denk
2012-03-22T13:25:24Z

Dear Simon Glass,

In message <CAPnjgZ1u8paSeKxozWz1D5YoJaJ2um_q0dWQo=k5_+HEdKh1AQ@mail.gmail.com> you wrote:
>
> >> OK, so revert that commit?
> >
> > It hasn't hit mainline yet, or has it?
>
> Yes, it is there, sorry.

Which commit is that?

> > This is why initializing the serial console has always been one of the
> > very, very first initialization steps in U-Boot.
>
> So if actually you want a pre-console panic() to be silent then that's fine.

I do not _want_ it.

This is a simple matter of facts that cannot be avoided. If we cannot
initialize the consolem then we cannot print anything.

> It's a little unfriendly though - so would you be interested in
> keeping board_pre_console_putc() around if we could solve this
> entirely with code in there? It turns out that Tegra has a setting for
> console UART in the hardware parameters that we can access.( I won't
> ask you about how to handle a panic() in SPL yet).

If you can initialize the console in a way that allows sending
characters, then just do this - do this as part of the recular
fconsole init code, so we do have a working console, and we do not
need ay "pre-console" stuff.

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.
- Franklin D. Roosevelt