All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javier Martinez Canillas <javier@dowhile0.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Beagleboard: SPL hangs on serial init
Date: Thu, 21 Mar 2013 22:08:07 +0100	[thread overview]
Message-ID: <CABxcv==YLAy6_+1EUsa+Ep3C1pyUdSMFOXA=FMBN1=_NT_Ukig@mail.gmail.com> (raw)
In-Reply-To: <514A41C1.30809@arcor.de>

On Thu, Mar 21, 2013 at 12:09 AM, Manfred Huber <man.huber@arcor.de> wrote:
> Am 20.03.2013 02:27, schrieb Tom Rini:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 03/19/2013 08:05 PM, Javier Martinez Canillas wrote:
>>>
>>> On Tue, Mar 19, 2013 at 3:49 PM, Tom Rini <trini@ti.com> wrote:
>>>>
>>>> On Sat, Mar 16, 2013 at 02:13:54PM +0100, Manfred Huber wrote:
>>>>
>>>>> I'm surprised that no one is interested in a functioning
>>>>> Beagleboard. Has no one tested the Beagleboard since
>>>>> 2012-09-19?
>>>>
>>>>
>>>> I don't see this problem on mine (classic and xM), which is
>>>> probably part of the why.  I'm inclined to accept the patch, but
>>>> can you try two things please: - How reproducible is this
>>>> problem, with the host and beagleboard combination you have?
>>>> 100%? - Do you have another beagleboard or another host PC (or
>>>> USB-Serial dongle) you can try?
>>>>
>>>> Thanks!
>>>>
>>>> -- Tom
>>>
>>>
>>> Hi,
>>>
>>> I had this issue on another TI OMAP3 based board (IGEPv2) which
>>> use an DM3730 processor. Other IGEP board users reported that
>>> U-Boot hung on their boards and that a patch to not wait for the
>>> Transmitter Empty (TEMT) to initialize the serial console fixed
>>> the issue. So I added the CONFIG_SYS_NS16550_BROKEN_TEMT config
>>> option and used it for IGEP boards (igep00x0) to make them boot
>>> again.
>>>
>>> Back then I also tested on a Beagleboard Rev. C4 since it has the
>>> same ns16550 UART controller than the IGEPv2 as far as I
>>> understood. I used the exact U-Boot version, USB-Serial cable,
>>> host PC and terminal emulation program that I used for the IGEPv2
>>> and the Beagleboard booted correctly. This is the same behavior
>>> that Tom had on his Beagleboard.
>>>
>>> Since it worked on the Beagle I thought the issue was only present
>>> on IGEP boards but now Manfred says that he has the same issue on
>>> his Beagleboard. I now wonder if all IGEPv2 are broken or only my
>>> board and the ones of the users that cared to report this and
>>> other IGEPv2 can boot without CONFIG_SYS_NS16550_BROKEN_TEMT.
>>
>>
>> Yeah, this is very perplexing.  I'm thinking we need to enable this
>> "quirk" for all of the "omap" platforms except for OMAP3_ZOOM (which
>> iirc has a different uart chip wired up rather than the SoC uart).
>>
>> - --
>> Tom
>
>
> As I described in my first mail the reason is the missing UART_LSR_TEMT bit
> in the line status register. Comparing the UART_LSR_THRE bit instead works
> in my case.
>
> Maybe Javier can test on his IGEP board if it works for him to compare the
> UART_LSR_THRE bit instead of the UART_LSR_TEMT bit.
>

I see the same behavior in the IGEPv2. I tested mainline U-boot + your
"[PATCH] omap3_beagle: Enable CONFIG_SYS_NS16550_BROKEN_TEMT" patch
and SPL boots OK on my board.

> Another solution would be to make a soft reset of the UART as first command
> in the init function. This works also in my case.
>

I prefer this approach if it doesn't affect other boards.

> On the other hand we can try to identify which OMAP3 has this behavior. The
> module version register of the UART returns version 4.6.
>
> Best regards,
> Manfred
>
>

Best regards,
Javier

  reply	other threads:[~2013-03-21 21:08 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 13:09 [U-Boot] Beagleboard: SPL hangs on serial init man.huber at arcor.de
2013-03-16 13:13 ` Manfred Huber
2013-03-19 14:49   ` Tom Rini
2013-03-19 23:52     ` Manfred Huber
2013-03-20  0:05     ` Javier Martinez Canillas
2013-03-20  1:27       ` Tom Rini
2013-03-20 23:09         ` Manfred Huber
2013-03-21 21:08           ` Javier Martinez Canillas [this message]
2013-03-23 10:11             ` Manfred Huber
2013-03-21 19:03       ` [U-Boot] [PATCH] omap3_beagle: Enable CONFIG_SYS_NS16550_BROKEN_TEMT Manfred Huber
2013-03-21 21:28         ` Javier Martinez Canillas
2013-03-21 22:21         ` Tom Rini
2013-03-21 22:28           ` Scott Wood
2013-03-25 22:02       ` [U-Boot] [PATCH 1/1 v2] omap3_beagle: Enabling UART3 first allows the Transmitter to be empty Manfred Huber
2013-03-27  4:50         ` Manfred Huber
2013-03-27  9:29           ` Javier Martinez Canillas
2013-03-27 13:57             ` Tom Rini
2013-03-28  5:55             ` Manfred Huber
2013-03-29  8:19             ` Manfred Huber
2013-03-28 15:21           ` Tom Rini
2013-03-27 13:37         ` Andreas Bießmann
2013-03-27 17:22           ` Javier Martinez Canillas
2013-03-28  6:06           ` Manfred Huber
2013-03-28  8:45             ` Andreas Bießmann
2013-03-28  9:11               ` Javier Martinez Canillas
2013-03-28  9:50                 ` Andreas Bießmann
2013-03-28 15:21                   ` Tom Rini
2013-03-29  8:33               ` Manfred Huber
2013-03-29  9:20       ` [U-Boot] [PATCH 1/1 v3] " Manfred Huber
2013-03-29  9:43         ` Albert ARIBAUD
2013-03-29 12:34           ` Tom Rini
2013-03-29 12:42       ` [U-Boot] [PATCH 1/1 v4] omap3_beagle: Flush UART3 xmit on enable if TEMT is broken Manfred Huber
2013-03-29 12:52       ` [U-Boot] [PATCH 1/1 v5] " Manfred Huber
2013-04-02  7:46         ` Javier Martinez Canillas
2013-04-02  8:59         ` Andreas Bießmann
2013-04-08 16:56         ` [U-Boot] [U-Boot, 1/1, " Tom Rini
2013-04-10 22:12       ` [U-Boot] [PATCH v1 1/1] omap3: Display MHz instead of mHz on the console Manfred Huber

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='CABxcv==YLAy6_+1EUsa+Ep3C1pyUdSMFOXA=FMBN1=_NT_Ukig@mail.gmail.com' \
    --to=javier@dowhile0.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.