Verdin iMX8MP eMMC Flash

Hi,

I’ve been trying to flash Verdin iMX8MP eMMC using the Yocto generated Reference Minimal Image from Toradex tutorial. When testing booting from SDcard I noticed that initial booting device was always eMMC with Toradex’s Tezi U-Boot. So I tried to flash my own bootloader in the eMMC using plain UUU and the generated wic Image. After that the SoM just didnt boot anymore, so I tried ussing other approaches like Flashing my own uboot and wic (w/ rootfs etc.) image to eMMC on Verdin IMX8MPlus with UUU - #2 by mbessler and still no boot.

After a lot of attempts I decide to Flash a New Image Using Toradex Easy Installer using Toradex Pre-built images. I tried installing the Torizon OS 6 and BSP 6 Downstream Linux Reference Minimal through Toradex installer and the SoC booted but i’m getting the following message:

U-Boot SPL 2022.04-6.7.0+git.7588eb559ca2 (May 28 2024 - 11:19:14 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
DDR configured as dual rank
SEC0: RNG instantiated
Normal Boot
WDT: Started watchdog@30280000 with servicing (60s timeout)
Trying to boot from BOOTROM
Boot Stage: Primary boot
Can’t found uboot image in 640K range
SPL: failed to boot from all boot devices

ERROR ### Please RESET the board

I dont know what else to do so if someone know how to properly flash Verdin iMX8MP SoM using UUU would be very appreciated as we are thinking of the further industrialization process so uuu has bee always our approach on iMX SoM developments.

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


It sounds like you’re encountering issues with the boot process on the Verdin iMX8M Plus SoM after attempting to flash your own bootloader and image using UUU. Here are some steps and considerations to help you troubleshoot and resolve the issue:

  1. Verify U-Boot Configuration:

    • Ensure that the U-Boot configuration in your Yocto build is correctly set up for the Verdin iMX8M Plus. The device tree and configuration files should match the hardware specifications of the SoM.
  2. Check Boot Device Order:

    • The boot order might be causing the issue. Ensure that the boot order in U-Boot is set to prioritize the eMMC if that’s where you want to boot from. You can modify the boot order in the U-Boot environment variables.
  3. Use Toradex Easy Installer:

    • Since you were able to boot using the Toradex Easy Installer, it indicates that the hardware is functioning correctly. Use the Easy Installer to flash a known good image (like Torizon or BSP 6) and then try to boot from it. This can help you verify that the eMMC is working correctly.
  4. Flashing with UUU:

    • When using UUU, ensure that you are using the correct UUU script and image files. The script should correctly partition the eMMC and flash the bootloader, kernel, and root filesystem.
    • Example UUU command:
      sudo uuu -b emmc your_image.wic
      
    • Make sure the .wic image is correctly generated and contains all necessary partitions (bootloader, kernel, rootfs).
  5. Check for Errors in U-Boot SPL:

    • The error message Can't found uboot image in 640K range suggests that the SPL is unable to find the U-Boot image. Ensure that the U-Boot image is correctly placed in the expected location on the eMMC.
    • Verify the partition layout and ensure that the U-Boot image is within the first 640K of the boot partition.
  6. Rebuild U-Boot and Yocto Image:

    • If the issue persists, consider rebuilding U-Boot and the Yocto image from scratch. Ensure that all patches and configurations are correctly applied.
    • Follow the Toradex Yocto Project documentation to build the image:
      Toradex Yocto Project
  7. Consult Toradex Support:

    • If you continue to face issues, consider reaching out to Toradex technical support. They can provide more specific guidance and help troubleshoot the problem.

By following these steps, you should be able to identify and resolve the issue with flashing and booting the Verdin iMX8M Plus SoM using UUU.

Please, also check if these links can help you solve your problem:

Loading Toradex Easy Installer | Toradex Developer Center.

Thanks for the suggestions but i’ve using default Toradex Yocto Reference Images without modifying anything and havent been able to run the generated images in the Verdin Module, literally following each tutorial step and even using Toradex easy installer tools but SPL doesn look to boot correctly with Minimal Image nor Torizon Image neither.

Hi, @misan128!

Could you tell me all the steps that you did trying to install our reference image, please?

You can use Toradex Easy Installer to install the image that you built using SD Card or USB stick (offline installation). Please, refer to this article to see how to load TEZI into the module.

Best regards.
Lucas Azeituno

Hi @lucas_az.tx,

  1. I downloaded Verdin-iMX8MP_ToradexEasyInstaller_6.8.0 from Toradex Easy Installer.
  2. Prepared an SD Card with the following images to test: Verdin-iMX8MP_Reference-Minimal-Image-Tezi_6.7.0, Verdin-iMX8MP_Reference-Minimal-Image-Tezi_5.7.6 and torizon-core-docker-verdin-imx8mp-Tezi_6.7.0.
  3. Enter the SoM in recovery mode and launched recovery-windows.bat from installer.
  4. Loggedin over VNC and used the Torizon Easy Installer GUI to install the reference images.

I tested all of the images and none of them would let me boot past SPL showing the message from my post. I also have patched U-Boot (u-boot-toradex -b toradex_imx_lf_v2022.04) to debug the launch and placed my compiled imx-boot with the Reference Minimal Image but the result is the same.

Regards,
Michael Sandoval

Hi @misan128!

Could you try TEZI (Toradex Easy Installer) version 6.7.0? TEZI 6.8.0 has not been released yet, so we recommend using the latest release.

Furthermore, can you try to install an image from our feeds instead of using an SD Card? In order to do it, you will need ethernet access (you could use an ethernet cable).

Best regards.
Lucas Azeituno.