From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2
Date: Thu, 16 May 2019 23:49:10 +0200 [thread overview]
Message-ID: <20190516234910.3f3edc48@jawa> (raw)
In-Reply-To: <CAOMZO5AnScYwFW8Y0EiZJRthHJkdWHfswcbDBVRxqKA35pQ-jA@mail.gmail.com>
On Thu, 16 May 2019 16:40:56 -0300
Fabio Estevam <festevam@gmail.com> wrote:
> On Thu, May 16, 2019 at 2:32 PM Fabio Estevam <festevam@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: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190516/ce5edb60/attachment.sig>
next prev parent reply other threads:[~2019-05-16 21:49 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-16 17:32 [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2 Fabio Estevam
2019-05-16 17:37 ` Jagan Teki
2019-05-16 18:23 ` Fabio Estevam
2019-05-16 19:40 ` Fabio Estevam
2019-05-16 21:49 ` Lukasz Majewski [this message]
2019-05-17 2:21 ` Fabio Estevam
2019-05-17 2:17 ` Peng Fan
2019-05-17 2:22 ` Fabio Estevam
2019-05-17 2:29 ` Peng Fan
2019-05-17 12:39 ` Fabio Estevam
2019-05-17 12:57 ` Lukasz Majewski
2019-05-20 14:07 ` Fabio Estevam
2019-05-20 14:15 ` Jagan Teki
2019-05-23 16:11 ` Jagan Teki
2019-05-23 16:48 ` Fabio Estevam
2019-05-23 17:07 ` Jagan Teki
2019-05-23 17:09 ` Fabio Estevam
2019-05-23 17:26 ` Schrempf Frieder
2019-05-23 17:45 ` Fabio Estevam
2019-05-23 17:54 ` Marek Vasut
2019-05-23 17:59 ` Fabio Estevam
2019-05-23 18:00 ` Jagan Teki
2019-05-23 18:03 ` Fabio Estevam
2019-05-23 18:28 ` Adam Ford
2019-05-23 18:35 ` Fabio Estevam
2019-05-23 18:37 ` Adam Ford
2019-05-23 22:03 ` Marek Vasut
2019-05-23 22:04 ` Marek Vasut
2019-05-23 22:08 ` Fabio Estevam
2019-05-23 22:11 ` Marek Vasut
2019-05-23 23:14 ` Fabio Estevam
2019-05-27 6:40 ` Schrempf Frieder
2019-05-28 0:01 ` Fabio Estevam
2019-05-31 9:10 ` Shyam Saini
2019-06-03 6:55 ` Schrempf Frieder
2019-05-31 6:04 ` Peng Fan
2019-05-24 17:43 ` Tom Rini
2019-05-24 20:08 ` Simon Goldschmidt
2019-05-30 10:06 ` Peng Fan
2019-05-21 13:23 ` Fabio Estevam
2019-05-22 1:38 ` Peng Fan
2019-05-22 2:34 ` Tom Rini
2019-05-22 5:52 ` Lukasz Majewski
2019-05-22 14:23 ` Fabio Estevam
2019-05-22 15:15 ` Tom Rini
2019-05-22 15:49 ` Marek Vasut
2019-05-22 18:39 ` Ezequiel Garcia
2019-05-23 13:49 ` Fabio Estevam
2019-05-23 13:59 ` Tom Rini
2019-05-23 14:04 ` Marek Vasut
2019-05-23 15:17 ` Tom Rini
2019-05-23 17:52 ` Marek Vasut
2019-05-31 3:21 ` Peng Fan
2019-05-23 14:08 ` Abel Vesa
2019-05-23 14:33 ` Tom Rini
2019-05-23 14:47 ` Michael Nazzareno Trimarchi
2019-05-23 14:50 ` Tom Rini
2019-05-23 17:51 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190516234910.3f3edc48@jawa \
--to=lukma@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox