Recovery Mode on Apalis iMX8 failing

Since I am unable to install images any other way, I am trying to get the Toradex Easy Installer installed via recovery mode.

Following the instructions given here, I shorted the pads on the module, connected the USB cable to the PC, and then ran the recovery-windows.bat script. (I had to try several times before anything happened.)

On the attempts that result with any activity, the script fails on step 1 of 9 with Failure open usb device and the following was displayed on the console:

U-Boot 2018.03-toradex_imx_v2018.03_4.14.98_2.3.0_bringup+g553fb1fa86 (Nov 02 2020 - 09:44:18 +0000)

CPU:   Freescale i.MX8QM revB A53 at 1200 MHz at 39C
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 Wi-Fi / BT IT V1.0B, Serial# 06494646

 BuildInfo:
  - SCFW b929edfe, SECO-FW 27167ff2, IMX-MKIMAGE d7f9440d, ATF bb209a0
  - U-Boot 2018.03-toradex_imx_v2018.03_4.14.98_2.3.0_bringup+g553fb1fa86

switch to partitions #0, OK
mmc0(part 0) is current device
Detected a V1.0 module, setting correct devicetree
Saving Environment to MMC... Writing to MMC(0)... OK
Detect USB boot. Will enter fastboot mode!
Net:   eth0: ethernet@5b040000
Fastboot: Normal
Boot from USB for mfgtools
Use default environment for                              mfgtools
Run bootcmd_mfg: select_dt_from_module_version && fastboot 0
Hit any key to stop autoboot:  0
Detected a V1.0 module, setting correct devicetree
Saving Environment to MMC... Writing to MMC(0)... OK

Repeated attempts yield the same result, except now my module has a corrupted u-boot environment. :frowning:

I would appreciate help on this issue as I have been stuck in problems like this for the past week!

What is an output of recovery-windows.bat or recovery-linux.sh on your dev computer?

Here is the final output of recover-windows.bat:

Downloading Toradex Easy Installer...
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.43-0-ga9c099a

Success 0    Failure 1


1:9      1/ 0 [Failure open usb device               ]


ECHO is off.
Downloading Toradex Easy Installer failed...
Press any key to continue . . .

Some of the output is erased: I start recovery-windows.bat and it says it is waiting; I then power up the Apalis evaluation board with the recovery pads shorted; then I plug in the USB cable; at this point uuu detects the module and starts the first step of loading and on the serial console I see:

U-Boot 2018.03-toradex_imx_v2018.03_4.14.98_2.3.0_bringup+g553fb1fa86 (Nov 02 2020 - 09:44:18 +0000)

CPU:   Freescale i.MX8QM revB A53 at 1200 MHz at 26C
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 Wi-Fi / BT IT V1.0B, Serial# 06494646

 BuildInfo:
  - SCFW b929edfe, SECO-FW 27167ff2, IMX-MKIMAGE d7f9440d, ATF bb209a0
  - U-Boot 2018.03-toradex_imx_v2018.03_4.14.98_2.3.0_bringup+g553fb1fa86

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
Use default environment for                              mfgtools
Run bootcmd_mfg: select_dt_from_module_version && fastboot 0
Hit any key to stop autoboot:  0
Detected a V1.0 module, setting correct devicetree
Saving Environment to MMC... Writing to MMC(0)... OK

Then it gives the error message shown immediately above.

I set up a Linux system and I am able to flash the Toradex Easy Installer. However, the Ethernet port does not seem to be enabled, so I cannot install a Toradex pre-built image.

  • What was a version of Easy Installer you flashed?

  • You can download an image from our website and put on USB stick or SD card .

This is the file: 106378-apalis-imx8_toradexeasyinstaller_beta.zip

When unzipped, it creates a folder called Apalis-iMX8_ToradexEasyInstaller_2.0b6-20201102

On the HDMI monitor, it shows: Toradex Easy Installer 2.0b6 (g17a403f) - Built: Nov 2 2020

Will try an image from the website in a couple of minutes.

2.0b6 version of Toradex Easy installer has no issue with Ethernet on Ixora board. Could you check your connections (cables, router etc) ?

I am using an Apalis carrier.

Tried Linux Reference Minimal Downstream SoC vendor based kernel Wayland/XWayland graphics back-end supported but not included 5.0.0: Apalis iMX8 (2020-10-06) from Toradex Embedded Linux Quarterly Releases

Linux boots, but Ethernet link cycles up and down and is unusable. Also, run bootcmd_usb0 fails due to some misconfiguration as described in my other posts, so I must use recovery mode to install a different image. I will try the latest monthly release next.

I tried the latest monthly with the same result.

Ethernet problem is apparently due to an incompatability with 100baseT Ethernet switches. This prints out on the console every 60 seconds or so:

[  112.194046] 005: fec 5b040000.ethernet eth0: Link is Up - Unknown/Unknown - flow control off
[  112.194095] 005: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  112.196572] 004: fec 5b040000.ethernet eth0: Graceful transmit stop did not complete!
[  112.196600] 004: fec 5b040000.ethernet eth0: Link is Down
[  112.205316] 000: arm-smmu 51400000.iommu: Unhandled context fault: fsr=0x402, iova=0x00000000, fsynr=0x130001, cbfrsynra=0x852, cb=1

Moving the Ethernet connection to a gigabit switch allows access to internet.

Ixora is an Apalis carrier board. Do you mean Apalis evaluation board? Ethernet works there as well. Please replace an Ethernet cable and\or Ethernet router.

Summary of the solutions to the problems I encountered:

  • Use a Linux machine with Recovery Mode; Windows 10 does not work.

  • Use a gigabit Ethernet switch with the Apalis module; the most recent versions of Easy Installer, TorizonCore, the Embedded Reference Images, and reference images built from yocto have a bug that prevents the Ethernet port from working with 100baseT switches.

  • Use Recovery Mode to install new images; the version of u-boot installed by any of the above images has incorrect settings that cause run bootcmd_usb0 to fail.

I hope that these problems can be addressed soon, especially the last one, since updating via USB stick is much faster without having to first go through Recovery Mode.

Hi @aunt_enna

The HW version 1.0B of Apalis iMX8 is not supported anymore. Please talk to the local Sales to get the version 1.1B.

Best regards,
Jaski