On Thu, 16 May 2019 16:40:56 -0300 Fabio Estevam <feste...@gmail.com> wrote:
> On Thu, May 16, 2019 at 2:32 PM Fabio Estevam <feste...@gmail.com> > wrote: > > > > Hi, > > > > I get the following error when trying to boot mx6q sabresd with > > 2019.07-rc2: > > > > U-Boot SPL 2019.07-rc2 (May 16 2019 - 14:28:55 -0300) > > Trying to boot from MMC1 > > spl: could not find mmc device 0. error: -19 > > SPL: failed to boot from all boot devices > > ### ERROR ### Please RESET the board ### > > > > I haven't debugged this yet. > > > > Does anyone have any ideas? > > SPL is able to load u-boot-dtb.img if I disable CONFIG_SPL_DM: > > --- a/configs/mx6sabresd_defconfig > +++ b/configs/mx6sabresd_defconfig > @@ -65,7 +65,6 @@ CONFIG_SPL_MULTI_DTB_FIT=y > CONFIG_SPL_OF_LIST="imx6dl-sabresd imx6q-sabresd imx6qp-sabresd" > CONFIG_ENV_IS_IN_MMC=y > CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y > -CONFIG_SPL_DM=y > CONFIG_USB_FUNCTION_FASTBOOT=y > CONFIG_FASTBOOT_BUF_ADDR=0x12000000 > CONFIG_FASTBOOT_BUF_SIZE=0x10000000 > > Do we really want to use DM within SPL? > > If we do, does anyone know how to fix it? Please find following repository with DM/DTS conversion for TPC70 imx6q board (it also has SPL DM conversion working - board boots from SD card and eMMC): https://github.com/lmajewski/u-boot-dfu/commits/DM-SPL-TPC70 My guess is that you need the pinctrl DM support in SPL, to make the card detect pin working. &pinctrl_usdhc4 { u-boot,dm-spl; }; &pinctrl_usdhc2 { u-boot,dm-spl; }; &gpio2 { u-boot,dm-spl; }; And also the pinctrl-imx6q.c fix to: static struct imx_pinctrl_soc_info imx6_pinctrl_soc_info __section(".data"); To sum up: TPC70 (imx6q) has support for DM/DTS in both SPL and u-boot proper. The issue with this port is that it uses Common Clock Framework from Linux and would need SPL's OF_PLATDATA support in eMMC and uart drivers to reduce SPL size. 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: lu...@denx.de
pgpC9T9r8OQ1G.pgp
Description: OpenPGP digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot