iMX8MM USB support?

Tim Harvey tharvey at gateworks.com
Fri Jul 2 23:12:56 CEST 2021


On Fri, Jul 2, 2021 at 7:50 AM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Tim,
>
> On Thu, Jul 1, 2021 at 10:36 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> > But I still get:
> >
> > U-Boot SPL 2021.07-rc5-00002-g5f269bf8bd14-dirty (Jul 01 2021 - 22:28:29 -0300)
> > WDT:   Not starting
> > SPL: Unsupported Boot Device!
> > SPL: failed to boot from all boot devices
> > ### ERROR ### Please RESET the board ###
> >
> > Please let me know if you get any progress with SDP.
>
> The USB_BOOT option was missing in imx8mm_evk spl:
>
> --- a/board/freescale/imx8mm_evk/spl.c
> +++ b/board/freescale/imx8mm_evk/spl.c
> @@ -33,6 +33,8 @@ DECLARE_GLOBAL_DATA_PTR;
>  int spl_board_boot_device(enum boot_device boot_dev_spl)
>  {
>         switch (boot_dev_spl) {
> +       case USB_BOOT:
> +               return BOOT_DEVICE_BOARD;
>         case SD2_BOOT:
>         case MMC2_BOOT:
>                 return BOOT_DEVICE_MMC1;
>
> After that I can load flash.bin and u-boot.itb via uuu like this
> (thanks to Heiko's suggestion!)
>
> sudo uuu flash.bin
> sudo uuu SDPV: write -f u-boot.itb -addr 0x42000000
> sudo uuu SDPV: jump -addr 0x42000000
>
> I will submit the support for imx8mm-evk SDP soon. Will also add these
> commands into the readme.
>

Fabio,

After applying the other patches in your diff I'm able to get SDP
booting on my board as well.

Please CC me when you submit your SDP series. It will overlap with my
'usb: ehci-mx6: move mode set/detect to probe'.

Also, when you prepare your patches note you don't need the following
in your include/config/imx8mm_evk.h
#define CONFIG_MXC_USB_PORTSC   (PORT_PTS_UTMI | PORT_PTS_PTW)
^^^  this is defaulted in drivers/usb/host/ehci-mx6.c
#define CONFIG_MXC_USB_FLAGS 0
^^^ doesn't appear to be used by ehci-mx6.c

Unfortunately enabling SPL SDP for my board brings me over the SPL
size. I really want to come up with a way to load dram config
dynamically.

Best regards,

Tim


More information about the U-Boot mailing list