Build U-Boot for NXP i.MX 6/6ULL/7-based SoMs

Hi
Since I am using Colibri imx6ull NAND flash module, after going through [Build U-Boot From Source Code], I have landed up here. The example given is of a imx7 NAND flash module. When I use the same od command I get following result -


mansij@mansij-Inspiron-N5050:~/workdir/u-boot$ od -X -N 0x30 u-boot-nand.imx
0000000 00000000 00000000 00000000 00000000
*
0000060
mansij@mansij-Inspiron-N5050:~/workdir/u-boot$


What do I do now?
Thanks,
Mansij

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

Did you like my answer?

:+1: :-1:


Hello Mansij,

Thank you for reaching out with your question. It seems like you’re encountering an issue with the U-Boot binary for your Colibri iMX6ULL NAND module, as indicated by the ‘od’ command output showing all zeros. Let’s go through some steps to help you resolve this:

  1. Verify U-Boot Configuration:

    • Ensure you are using the correct configuration for the Colibri iMX6ULL NAND module. The appropriate defconfig file is typically named colibri_imx6ull_defconfig or something similar.
  2. Check the Build Process:

    • Confirm that the build process completed without errors. Review the build logs for any warnings or errors that might indicate issues.
  3. Rebuild U-Boot:

    • Clean the build environment using make distclean to remove any previous build artifacts.
    • Reconfigure U-Boot with the correct defconfig: make colibri_imx6ull_defconfig.
    • Compile U-Boot again using make.
  4. Inspect the U-Boot Binary:

    • After rebuilding, check the size and content of the u-boot-nand.imx file. It should not be empty or filled with zeros.
    • Use the file command to verify that the binary is recognized as a valid U-Boot image.
  5. Cross-Check with Documentation:

    • Ensure you are following the specific steps outlined in the Toradex documentation for building U-Boot for NAND-based modules, including any necessary patches or adjustments for the iMX6ULL.

By following these steps, you should be able to identify and correct any issues in the U-Boot build process for your Colibri iMX6ULL NAND module. If the problem persists, double-check the toolchain and environment setup to ensure compatibility with the module’s requirements.

I hope this helps! If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

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

Update image.json file and adding a custom device tree during Yocto build - iMX6ULL BSP 6.

In contrast original instructions used u-boot-dtb.imx as od command argument. Which is correct to look at IVT. *-nand.imx file is padded one, IVT is at offset 1024.

Thanks a lot Edward. This helps