All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagannadh.teki@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] DM-SERIAL-SPL on MX6
Date: Mon, 18 Jun 2018 17:56:39 +0530	[thread overview]
Message-ID: <CAD6G_RS6sBobA4KkqRN7mQarx3xk1OnrE+7s8BHfvQiW8yp9sg@mail.gmail.com> (raw)
In-Reply-To: <25709b68-2f5c-8f17-e8c6-a6c7841b99cc@schmelzer.or.at>

On Thu, Jun 7, 2018 at 4:35 PM, Hannes Schmelzer <hannes@schmelzer.or.at> wrote:
>
>>>>>> i'm actually trying to convert my i.mx6 boards to DM, many things are
>>>>>> already doing well.
>>>>>> But I've trouble getting the console (UART) runnin SPL.
>>>>>>
>>>>>> The "preloader_console_init" is called very early in board_init_f, i
>>>>>> guess
>>>>>> that DM isn't ready at this point.
>>>>>>
>>>>>> has anyone experience in this?
>>>>>
>>>>> Yes I've faced the same, look like DEBUG Uart doesn't support low
>>>>> level init. Peng or someone can explain more.
>>>>
>>>> When converting the OPOS6UL to DM, I had to move the
>>>> preloader_console_init call into the spl_board_init function.
>>>
>>> thanks for this hint, i also tried this. But unfortunately without
>>> success.
>>> But it is good to know that this way on your side works.
>>>
>>> what i've done to try make it work:
>>>
>>> add to my dts:
>>>      chosen {
>>>          stdout-path = &uart1;
>>>      };
>>>
>>> &uart1 {
>>>      u-boot,dm-spl;
>>>      u-boot,dm-preloc;
>>>      status = "okay";
>>> };
>>
>> Don't you need pins muxing properties in uart1 ( pinctrl-names /
>> pinctrl-0 ) ?
>>
>>> so the device should be present during spl stage and console should be
>>> set to it.
>>>
>>> # Serial drivers
>>> #
>>> CONFIG_BAUDRATE=115200
>>> CONFIG_SERIAL_PRESENT=y
>>> CONFIG_SPL_SERIAL_PRESENT=y
>>> CONFIG_DM_SERIAL=y
>>> CONFIG_SPL_DM_SERIAL=y
>>> CONFIG_MXC_UART=y
>>>
>>> maybe i'm still missing something.
>
> Finally converting the tips from Sebastian in addition with converting
> "CONFIG_SPL_BOARD_INIT" to Kconfig did the trick.
> Don't know why there is a difference, but doesn't matter since defining such
> stuff in board-config-header is deprecated.

imx6ul seems working for me with DM_SERIAL, i.MX6QDL has still not
getting console.

  reply	other threads:[~2018-06-18 12:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07  6:55 [U-Boot] DM-SERIAL-SPL on MX6 Hannes Schmelzer
2018-06-07  7:14 ` Jagan Teki
2018-06-07  7:50   ` Sébastien Szymanski
2018-06-07  8:35     ` Hannes Schmelzer
2018-06-07  9:18       ` Sébastien Szymanski
2018-06-07  9:40         ` Hannes Schmelzer
2018-06-07 11:05         ` Hannes Schmelzer
2018-06-18 12:26           ` Jagan Teki [this message]
2018-06-18 13:14             ` Hannes Schmelzer

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=CAD6G_RS6sBobA4KkqRN7mQarx3xk1OnrE+7s8BHfvQiW8yp9sg@mail.gmail.com \
    --to=jagannadh.teki@gmail.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 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.