iMX8MM USB support?

Fabio Estevam festevam at gmail.com
Fri Jul 2 16:50:41 CEST 2021


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.

Thanks


More information about the U-Boot mailing list