[U-Boot] DM-SERIAL-SPL on MX6

Hannes Schmelzer hannes at schmelzer.or.at
Thu Jun 7 11:05:47 UTC 2018


>>>>> 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.

many thanks to all.
cheers,
Hannes



More information about the U-Boot mailing list