
On Fri, 17 May 2019 09:39:31 -0300 Fabio Estevam festevam@gmail.com wrote:
On Thu, May 16, 2019 at 11:29 PM Peng Fan peng.fan@nxp.com wrote:
You could enable DEBUG in SPL, and disable SPL_SDP because of size will exceeds. Then see what happends.
Even without DEBUG enabled we get useful error messages:
U-Boot SPL 2019.07-rc2 (May 17 2019 - 09:30:33 -0300) Trying to boot from MMC1 spl: could not find mmc device 0. error: -19
I had similar issue on imx53 (hsc). The problem was with not properly set GPIO pin by DM/DTS in SPL. The GPIO was responsible for eMMC card detect, so the SPL code after checking this got the impression that the card is missing -> hence the -19 error.
Interesting commit: SHA1: 7a0425dd969c44e6afb6936bf8205c8770e9dea9
SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ###
This means that err = uclass_get_device(UCLASS_MMC, mmc_dev, &dev); fails inside common/spl/spl_mmc.c
Why does this happen?
About the size difference:
Original defconfig generates an SPL of 76800 bytes With CONFIG_SPL_DM=y removed the SPL size goes to 68608 bytes.
I have no idea, then. My board is REV C4, chip 1.5
Mine is rev C2 with i.MX6Q rev1.2
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de