Unable to boot Dahlia imx8mp in recovery mode or load tezi from usb drive

After a long debugging session with the AI, in which it determined that recovery mode does not work on my board, it recommended trying to boat tezi from a usb thumb drive. Following its instructions, I have attempted to do that many ways, all ending in failure. Could you let me know if

a) it is possible to boot tezi from a usb drive on my Dahlia imx8mp system?

b) If so, what would be the instructions for doing so?

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Based on the available documentation, I can answer your questions about booting Toradex Easy Installer from USB on your Dahlia iMX8MP system:

a) Is it possible to boot TEZI from USB on Dahlia iMX8MP?

Yes, it is possible, but with important limitations. The sources indicate that this approach depends heavily on the compatibility between the U-Boot version running on your device and the Easy Installer image on the USB drive (1).

b) Instructions for booting TEZI from USB

Method 1: Manual U-Boot Configuration

The community documentation suggests this approach (1):

  1. Prepare the USB drive:

    • Download the Toradex Easy Installer image
    • Extract the contents to the root directory of your USB drive (FAT32 format)
    • Rename the file boot-tezi.scr to boot.scr (1)
  2. Boot process:

    • Insert the USB drive into your Dahlia carrier board
    • Power on the module
    • If automatic boot fails, interrupt the boot process and access U-Boot console
    • Execute the command run bootcmd_usb0 (1)

Method 2: Modify U-Boot Environment

For automatic USB boot with fallback to eMMC, you would need to modify the U-Boot environment (1):

The default configuration shows:

boot_targets=mmc1 mmc2 dhcp 
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done

(1)

You would need to add usb0 to the boot targets and modify the bootcmd to use distro_bootcmd instead of the default bootcmd_mmc2 (1).

Important Considerations

  • Compatibility is crucial: Ensure the Easy Installer version is compatible with your board’s U-Boot version (1)
  • USB support: USB is not included as a boot target by default starting from BSP 6 (1)
  • Recovery mode remains the official method: The only officially supported way to load Toradex Easy Installer is via recovery mode (2)

If you continue experiencing issues, the compatibility between your current U-Boot and the Easy Installer image may be the limiting factor.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Hey @amh,

For booting into recovery mode, can you verify the cable you are using? Also can you let me know what steps you are taking, as well as any terminal outputs? Also are you on a windows computer or linux?

It’s fairly rare for a board not to go into recovery mode.

-Eric

Hi Eric,

The cable is fine, I can see the expected output on the attached terminal during U-Boot and the Linux bootup. The recovery procedure used to work with this board. I’ve used it with the tezi installer to load Linux software before. I’ve gone through the recovery procedure many times: hold down the recovery button, push the power on button and release, waited a good ten seconds, release the recovery button, check for a new usb on my Linux workstation (which never appears), then tried running the tezi installer, and it just hangs waiting for the usb. I’ve tried unplugging everything but the usb cable from the Dahlia for this procedure, still doesn’t work.

Thanks,
amh

Also, there is no terminal output after the “recovery” power-on and recovery button release in the terminal where I usually get the U-Boot and Linux boot messages.

Thank you AI assistant, but I need human assistance. I think we’ve gotten as far as we can get.

Hey @amh ,

Can you also confirm which usb-c port you are using? It should be the X3 - directly next to the standard USB ports.

Can you try once more, where you unplug all power sources (including usb and barrel). And Try and enter recovery mode, and see if the a new USB device shows up with lsusb command? (not running the recover-linux file).

Also can you tell me which Toradex Easy Installer version/build you are trying?

-Eric

Followed your instructions, and in the process, noticed an apparmor error in the workstation logs. It looks like apparmor prevents the normal usb connection! It wasn’t a problem when I ran tezi before as I had disabled it in order to do a Yocto build, but I have rebooted since.

Thanks for your help!

Hey @amh ,

Glad you got it working! Thanks for the update.

-Eric