Easy Installer usb init failed

I am using the Easy Installer from:
https://artifacts.toradex.com:443/artifactory/tezi-oe-prod-frankfurt/dunfell-5.x.y/release/3/apalis-imx8/tezi/tezi-run/oedeploy/Apalis-iMX8_ToradexEasyInstaller_5.3.0%2Bbuild.3.zip

I have the USB OTG port (micro connector), ethernet and console connected to my Linux host.
I run recovery-linux.sh from the Linux host

I get the following in the Console output:
U-Boot 2020.04-5.3.0+git.7f3416a28c34 (Jul 06 2021 - 15:49:48 +0000)

CPU:   NXP i.MX8QM RevB A53 at 1200 MHz                                +-----------------------------+
                                                                       |                             |
DRAM:  4 GiB                                                         
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2                           |                             |
Loading Environment from MMC... *** Warning - bad CRC, using default en+-----------------------------+

In:    serial
Out:   serial
Err:   serial
Model: Toradex Apalis iMX8 QuadPlus 2GB V1.2A, Serial# 10774541

 BuildInfo: 
  - SCFW bc122ee1, SECO-FW d63fdb21, IMX-MKIMAGE 8947fea3, ATF 835a8f6
  - U-Boot 2020.04-5.3.0+git.7f3416a28c34 

switch to partitions #0, OK
mmc0(part 0) is current device
Detect USB boot. Will enter fastboot mode!
Net:   eth0: ethernet@5b040000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for                                mfgtools
, using default environment

Run bootcmd_mfg: select_dt_from_module_version && fastboot 0
Hit any key to stop autoboot:  0 
We are in is_imx8
Getting phy ctrl
We are in is_imx8
Getting phy ctrl
No USB device found
USB init failed: -19
Apalis iMX8 TEZI # 

I had no problem getting the EasyInstaller to flash my yocto image when using:
https://artifacts.toradex.com/artifactory/tezi-oe-prod-frankfurt/thud/release/4/apalis-imx8/tezi/tezi-run/oedeploy/Apalis-iMX8_ToradexEasyInstaller_2.0b7-20210415.zip

But now that I have changed to the latest version of tezi, I get this usb init failed error.

Hi @pally

Thanks for writing to the Toradex Community!

Toradex Apalis iMX8 QuadPlus 2GB V1.2A, Serial# 10774541

It looks like that you entered the wrong SN, this Serial number is from the carrier board and not from the module. Could you stop in U-Boot and launch the command cfgblock create and enter the correct SoM information?

This should solve the issue.

Best regards,
Jaski

Hi Jaski,

Thanks for the reply!

I never entered any SN, so I don’t understand how it was entered wrong.

I made the changes you suggest, but I get the same error.

Best,
Paul

Hi Paul,
Thanks for the information.

Could you share the complete serial Bootlog?

Thanks and best regards,
Jaski

And the output of recovery-linux.sh is:
uuu (Universal Update Utility) for nxp imx chips – libuuu_1.4.127-0-g08c58c9

Success 0    Failure 0                                                                                                                                                      
                                                                                                                                                                             
                                                                                                                                                                             
2:3      1/ 1 [=================100%=================] SDPS: boot -f ../imx-boot

And then it hangs.

I am using v1.1c for the SoM, with Ixora V1.2A. I am running recovery-linux.sh from my Ubuntu host.

Here is the complete bootlog:

U-Boot 2020.04-5.3.0+git.7f3416a28c34 (Jul 06 2021 - 15:49:48 +0000)

CPU:   NXP i.MX8QM RevB A53 at 1200 MHz                                                               
                                                                                                      
DRAM:  4 GiB                                                                                          
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2                                                          
Loading Environment from MMC... *** Warning - bad CRC, using default environment                      

In:    serial
Out:   serial
Err:   serial
Model: Toradex Apalis iMX8 QuadMax 4GB IT V1.1C, Serial# 06874843

 BuildInfo: 
  - SCFW bc122ee1, SECO-FW d63fdb21, IMX-MKIMAGE 8947fea3, ATF 835a8f6
  - U-Boot 2020.04-5.3.0+git.7f3416a28c34 

switch to partitions #0, OK
mmc0(part 0) is current device
Detect USB boot. Will enter fastboot mode!
Net:   eth0: ethernet@5b040000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for                                mfgtools
, using default environment

Run bootcmd_mfg: select_dt_from_module_version && fastboot 0
Hit any key to stop autoboot:  0 
We are in is_imx8
Getting phy ctrl
We are in is_imx8
Getting phy ctrl
No USB device found
USB init failed: -19
Apalis iMX8 TEZI # 

U-Boot 2020.04-5.3.0+git.7f3416a28c34 (Jul 06 2021 - 15:49:48 +0000)

CPU:   NXP i.MX8QM RevB A53 at 1200 MHz

DRAM:  4 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Toradex Apalis iMX8 QuadMax 4GB IT V1.1C, Serial# 06874843

 BuildInfo: 
  - SCFW bc122ee1, SECO-FW d63fdb21, IMX-MKIMAGE 8947fea3, ATF 835a8f6
  - U-Boot 2020.04-5.3.0+git.7f3416a28c34 

switch to partitions #0, OK
mmc0(part 0) is current device
Detect USB boot. Will enter fastboot mode!
Net:   eth0: ethernet@5b040000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for                                mfgtools
, using default environment

Run bootcmd_mfg: select_dt_from_module_version && fastboot 0
Hit any key to stop autoboot:  0 
We are in is_imx8
Getting phy ctrl
We are in is_imx8
Getting phy ctrl
No USB device found
USB init failed: -19
Apalis iMX8 TEZI #

Hi Paul

I don’ t know why the configblock information was wrong. I checked the production and testing log for this module and the configblock was programmed. Nevertheless, could you reset the environment from U-Boot (env default -a ; saveenv) and check if the SoM is booting?

Thanks and best regards,
Jaski

I am using the Ixora V1.2 carrier board. I see one difference in this board vs V1.1 is the addition of the micro USB connector, which I am using.

Are the tezi images in the artifactory supporting Ixora V1.2? I see only mentions of V1.1 in the file names.

Hi Jaski,

Is the configblock stored in MMC? Could it be that I erased it when flashing the device?

I reset the environment in U-Boot via “env default -a; saveenv)” but it still reports the same (see console log, I think it is the same).

I can still boot the device and flash/recover if I use tezi thud 2.0b7.

Could it be that I am using the Ixora V1.2A version of the carrier board?

Best,
Paul

U-Boot 2020.04-5.3.0+git.7f3416a28c34 (Jul 06 2021 - 15:49:48 +0000)

CPU:   NXP i.MX8QM RevB A53 at 1200 MHz

DRAM:  4 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Model: Toradex Apalis iMX8 QuadMax 4GB IT V1.1C, Serial# 06874843

 BuildInfo: 
  - SCFW bc122ee1, SECO-FW d63fdb21, IMX-MKIMAGE 8947fea3, ATF 835a8f6
  - U-Boot 2020.04-5.3.0+git.7f3416a28c34 

switch to partitions #0, OK
mmc0(part 0) is current device
Detect USB boot. Will enter fastboot mode!
Net:   eth0: ethernet@5b040000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for                                mfgtools
, using default environment

Run bootcmd_mfg: select_dt_from_module_version && fastboot 0
Hit any key to stop autoboot:  0 
We are in is_imx8
Getting phy ctrl
We are in is_imx8
Getting phy ctrl
No USB device found
USB init failed: -19
Apalis iMX8 TEZI #

Hi Paul

Yes, the configblock is stored in eMMC but it is rewritten when flashing an image to the module using Toradex Easy Installer.

Have you connected any USB key to the carrier board?
Just to be sure, could you use this version of Toradex Easy Installer?

Currently I am not able to reproduce your issue.

Thanks and best regards,
Jaski

Hi Jaski,

Thanks for explaining the configblock.

I have no USB sticks attached. I am using unattended flashing over Ethernet. I am providing the image by using a local web server (linux running nginx) that provides DNS (tezi.toradex.com) and DHCP.

The version you mention is the one I am using.

Are you using V1.1C of the SoM and Ixora V1.2A?

Best,
Paul

You are welcome.

Could you test if installing manually using recovery mode is working fine? Additionally maybe also without any local server?

Best regards,
Jaski

Yes, I will try with a USB stick.

When you say you are unable to reproduce, are you using Apalis IMX8 V1.1C and Ixora V1.2A?

Best,
Paul

Ok. Yes, I am using Apalis iMX8 1.1C and Ixora 1.2A.

Best regards,
Jaski

OK, thanks.

I am wondering how can I test manually or without a local server if the Linux image is never loading? I may not have mentioned that, but the console output stops at the U-boot prompt, never loads Linux.

Best,
Paul

Yes, any TEZI for Apalis module will work on Ixora v1.2x. All changes between Ixora v1.1 and Ixora v1.2 do not have any impact on Software.

An iMX8 SOC USB OTG circuit is very picky about signal integrity. Please try to use another USB cable or even host machine.

I have tried several cables and different ports to my host machine. Please note that I do not have these problems with my host machine/cables when I use Apalis-iMX8_ToradexEasyInstaller_2.0b7-20210415.zip.

I also tried a different host, another cable, and another Apalis IMX8. Same error. U-boot never loads the easy installer Linux, just reports the USB error.

Hi @pally

Do you see this issue only on module with Ixora 1.2 or also on other SoMs? If this is only one exact combination of SoM and carrier board, then please file up a RMA here.

Best regards,
Jaski