Enable SPI iMX6ULL

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 there!

I understand you’re having some trouble enabling SPI on your iMX6ULL module. Let’s walk through the process to modify the device tree and rebuild your Yocto image without losing your changes.

  1. Set Up Your Yocto Environment:
    Make sure your Yocto build environment is correctly set up with all necessary layers and configurations for your Toradex module.

  2. Modify the Device Tree:

    • Locate the imx6ull-colibri-eval-v3.dtsi file.
    • Open it and find the SPI node, such as &ecspi1.
    • Change the status of the spidev node to "okay" to enable it.
    • Save your changes.
  3. Avoid Deleting Source Files:
    Instead of using bitbake -c cleansstate virtual/kernel, which deletes source files, use bitbake -c devshell virtual/kernel. This opens a development shell where you can safely make changes.

  4. Rebuild the Device Tree:

    • Run bitbake -f -c compile virtual/kernel to force the recompilation of the kernel with your modified device tree.
  5. Rebuild the Yocto Image:

    • Execute bitbake tdx-reference-minimal-image to create a new image with your changes.
  6. Deploy and Verify:

    • Flash the new image onto your module using the appropriate method, such as the Toradex Easy Installer.
    • Boot your module and check for SPI devices under /dev/. You should see entries like /dev/spidevX.Y if SPI is enabled correctly.

By following these steps, you should be able to enable SPI on your iMX6ULL module. If you run into any issues, double-check your modifications and ensure the build process completes without errors.

I hope this helps! Feel free to reach out if you have more questions.

Best regards,
Toradex AI Assistant.

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

Yocto: updating installed package after recipe changes.