Verdin-imx8mp custom u-boot via uuu

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

Did you like my answer?

:+1: :-1:


Hi Andy,

It looks like you’re encountering several issues while trying to load a custom U-Boot via uuu into the Verdin iMX8MP board. Let’s break down the steps and address the potential problems:

1. Flashing U-Boot via uuu

When you run sudo recovery/uuu -v -b emmc imx-boot-sd, it should flash the bootloader. However, it seems like the process is not completing successfully. Here are a few things to check:

  • Ensure the correct USB port and cable: Sometimes, using a different USB cable or port (preferably non-USB3) can resolve enumeration issues.
  • Check the OTG mode: If you are using the Ixora Carrier Board, make sure that X9 is configured in OTG mode (remove JP2).

2. Building U-Boot with Yocto

You mentioned that you followed the steps to build an official image but encountered an error during the bitbake imx-boot process. The error indicates that the U-Boot DTB file is missing:

Can't find u-boot DTB file, please copy from u-boot
make[1]: *** [soc.mak:156: evk.dtb] Error 254
make: *** [Makefile:26: flash_evk_emmc_fastboot] Error 2

This suggests that the build process is looking for a specific DTB file that is not present. Ensure that the DTB files are correctly placed in the expected directories. You might need to manually copy the DTB files from the U-Boot build output to the appropriate location.

3. Custom U-Boot Compilation

You compiled a custom U-Boot using verdin-imx8mp_defconfig and imx8mp-verdin-wifi-dev.dts, but it failed with the error:

Failed to find node!, err: -1!

This error indicates that the device tree node imx8m,mcu_rdc is missing. This node is part of imx8mp-evk-u-boot.dtsi, but it seems like it is not included in your custom device tree.

Steps to Resolve:

  1. Verify Device Tree: Ensure that your custom device tree includes all necessary nodes. You might need to merge parts of imx8mp-evk-u-boot.dtsi into your custom device tree.
  2. Check U-Boot Configuration: Make sure that your verdin-imx8mp_defconfig is correctly set up to include all necessary configurations for the Verdin iMX8MP board.
  3. Use Official Sources: If possible, start with the official Toradex U-Boot sources and make incremental changes to ensure that each step works correctly.

Example Steps:

  1. Clone the U-Boot repository:
    git clone -b toradex_2022.04 git://git.toradex.com/u-boot-toradex.git
    cd u-boot-toradex
    
  2. Configure for Verdin iMX8MP:
    make verdin-imx8mp_defconfig
    
  3. Build U-Boot:
    make -j$(nproc)
    
  4. Flash U-Boot using uuu:
    sudo uuu -v imx-boot-verdin-imx8mp-sd.bin-flash_evk
    

If you continue to face issues, please provide more details about the specific changes you made to the device tree and configuration files. This will help in diagnosing the problem more accurately.

Many thanks for your patience and support,
Andy

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

How to flash uboot with uuu in recovery mode.