[Resolved] WB-IMX6QP-BW SPL memory problem and solution

Discussion of your EDM baseboard, your add-on boards or other peripherals for your wandboard.

[Resolved] WB-IMX6QP-BW SPL memory problem and solution

Postby VaZso » Fri Nov 17, 2017 11:40 am


I have recently purchased two Wandboard QuadPLUS boards.
I have managed to compile a working u-boot loader, a kernel and put on a Debian 9 system.

However, while the image was working well on one of the boards, the other board usually could not pass through "Trying to boot from MMC1" message.
When I pressed reset button on the board, it was usually booted up well, but sometimes it was also unable to boot up after pressing reset button several times in a row.

I have found it has problems when SPL tries to allocate memory the first time (in fsl_esdhc_initialize function) - it is unsuccessful when it stucks at the message above.
My solution was adding an extra delay after calling DRAM initialization.
A delay of 1 us was enough for me to get both my boards to boot every time I have tried, so by adding a delay of 10 us, the chance of reappearing the problem is minimal.

So, the interesting part of my board/wandboard/spl.c is the following:
Code: Select all
void board_init_f(ulong dummy)

        /* setup AIPS and disable watchdog */


        /* iomux */

        /* setup GP timer */

        /* UART clocks enabled and gd valid - init serial console */

        /* DDR initialization */

        /* wait for memory stabilization as some WB-IMX6QP-BW boards had memory allocation problems */

I hope it may also help others in case of a similar problem.
Anyway, this delay should be put in the official u-boot I think.
Last edited by VaZso on Mon Nov 20, 2017 1:53 pm, edited 1 time in total.
Posts: 2
Joined: Fri Nov 17, 2017 10:20 am

Re: WB-IMX6QP-BW SPL memory problem and solution

Postby VaZso » Mon Nov 20, 2017 1:52 pm

It has been resolved in the official code by reverting a previous patch.
So, everything should work fine now thanks to Fabio Estevam.
Posts: 2
Joined: Fri Nov 17, 2017 10:20 am

Return to Hardware and peripherals

Who is online

Users browsing this forum: Google [Bot] and 11 guests