public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Strange / Unreadable console output
Date: Tue, 14 Aug 2012 14:03:55 +0200	[thread overview]
Message-ID: <502A3EAB.3050504@gmail.com> (raw)
In-Reply-To: <20120814110608.fa204f95-ffbf-419c-aa7e-4f48cd82f991.mhubig@imko.de>

Dear Markus Hubig,

On 14.08.2012 11:08, Markus Hubig wrote:
> On Tue, Aug 14, 2012 at 08:22:11AM +0200, Andreas Bie?mann wrote:
>> On 27.07.12 11:16, Markus Hubig wrote:
>>> one minor Problem I often read about in this list is some crappy / unreadable
>>> console output at beginning of the U-Boot start procedure. Now I have the same
>>> "visual" Problem.
>>>
>>> | H?NAND:  128 MiB
>>> | *** Warning - bad CRC, using default environment
>>> | 
>>> | In:    serial
>>> | Out:   serial
>>> | Err:   serial
>>> | Net:   macb0
>>> | macb0: Starting autonegotiation...
>>> | macb0: Autonegotiation timed out (status=0x7849)
>>> | macb0: link down (status: 0x7849)
>>> | Hit any key to stop autoboot:  0 
>>> | ...
> 
> <snipp>
> 
>>>
>>> Has anyone an ideea how to fix this? Or what's the cause of it? Is it even
>>> related to u-boot or is it something at91bootstrap is doing wrong?
>>
>> can you please check http://patchwork.ozlabs.org/patch/107896/
>>
>> It seems this patch was set to 'Accepted' but never applied to the
>> master repository. Unfortunately this got lost in nirvana end of last
>> year. I will apply it in any case but can you please check if it fixes
>> your problem?
> 
> Unfortunately not ... but it dosen't do any harm.

How sad!

I wonder if this has something to do with the ominous PC9. It is
possible that this PC9 switches some vital element e.g. power supply,
'output enable' of UART level shifter or something else which needs some
settling. Have you tried adding some delay in between setting this pin
and activating the serial port output pins?
Did you investigate the PCB? Which device is directly behind the DB9
connector? Can you find a datasheet for that device and check if it has
some power saving features? Can you check if these power saving features
switched with the PC9? Did taskit respond to your request for detailed
information?

Another possible reason can be the fact that you enable the output pins
after serial port is enabled (serial_init runs way before board_init).
Therefore your output is put into the TX register but I don't know what
happens then. Eventually the output is delayed until the output pins are
enabled in conjunction with the 'SYS' clock. Maybe the TX logic is
happily shifting the bits into nirvana until you switch on the output
pins. In conjunction with the PC9 thing this could be your problem.

best regards

Andreas Bie?mann

  reply	other threads:[~2012-08-14 12:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-27  9:16 [U-Boot] Strange / Unreadable console output Markus Hubig
2012-08-11 12:15 ` Jerry Van Baren
2012-08-13 11:17   ` Markus Hubig
2012-08-14  0:12     ` Jerry Van Baren
2012-08-14  9:16       ` Markus Hubig
2012-08-14  6:22 ` Andreas Bießmann
2012-08-14  9:08   ` Markus Hubig
2012-08-14 12:03     ` Andreas Bießmann [this message]
2012-08-14 15:11       ` Markus Hubig
2012-08-15 10:55         ` Andreas Bießmann
     [not found]           ` <20120816150738.GA17112@imko.de>
2012-08-16 15:33             ` Andreas Bießmann
2012-08-16 16:51               ` [U-Boot] [SOLVED] " Markus Hubig
2012-08-16 17:30                 ` Andreas Bießmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=502A3EAB.3050504@gmail.com \
    --to=andreas.devel@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox