From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?S=c3=a9bastien_Szymanski?= Date: Thu, 7 Jun 2018 11:18:46 +0200 Subject: [U-Boot] DM-SERIAL-SPL on MX6 In-Reply-To: <44cf5810-3118-915f-2d52-fa610c25fae2@schmelzer.or.at> References: <5709d178-ef8b-241d-5813-11e215e03848@schmelzer.or.at> <1359c385-b865-5eab-1ca2-09751adc6228@armadeus.com> <44cf5810-3118-915f-2d52-fa610c25fae2@schmelzer.or.at> Message-ID: <462f1517-9ede-6f4a-7b86-fd19e93dbaa5@armadeus.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 06/07/2018 10:35 AM, Hannes Schmelzer wrote: > On 06/07/2018 09:50 AM, Sébastien Szymanski wrote: >> Hi, > Hi Sébastien, >> >> On 06/07/2018 09:14 AM, Jagan Teki wrote: >>> + Add few imx maintainers >>> >>> On Thu, Jun 7, 2018 at 12:25 PM, Hannes Schmelzer >>> wrote: >>>> hi, >>>> >>>> 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. > -- Sébastien Szymanski Software engineer, Armadeus Systems Tel: +33 (0)9 72 29 41 44 Fax: +33 (0)9 72 28 79 26