Then make dtbs
Then bitbake -f -c compile virtual/kernel
Then executed bitbake tdx-reference-minimal-image
The image was installed with the easy installer
There is no SPI devices under /dev/
If I check: ls /sys/bus/spi/devices/ there is spi0.0
I checked: zcat /proc/config.gz | grep -i spidev CONFIG_SPI_SPIDEV=m
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To enable SPI on your Colibri iMX6ULL module and ensure the spidev device appears under /dev/, please follow these steps:
Device Tree Configuration:
You’ve modified the imx6ull-colibri-eval-v3.dtsi file. Ensure the mcp2515 node is set to status = "disabled"; and the spidev0 node is set to status = "okay";. This is important because the MCP2515 SPI CAN controller might block access to the spidev interface if enabled.
Rebuild the Device Tree:
After making changes, run make dtbs to rebuild the device tree blobs.
Ensure the updated device tree is compiled and included in your build by executing bitbake -f -c compile virtual/kernel followed by bitbake tdx-reference-minimal-image.
Deploy the Updated Image:
Use the Toradex Easy Installer to flash the updated image onto your module. Verify that the correct device tree is being used by checking the boot logs or the /boot directory on your device.
Verify SPI Device:
After booting the updated image, check for the presence of the spidev device by listing the contents of /dev/. You should see a device like /dev/spidev0.0 if everything is configured correctly.
Additionally, verify the SPI bus by checking /sys/bus/spi/devices/ to ensure the spidev device is registered.
Troubleshooting:
If the spidev device still does not appear, double-check the device tree changes and ensure they are correctly applied.
Review the kernel configuration to ensure CONFIG_SPI_SPIDEV is set to m (module) or y (built-in).
Check the boot logs (dmesg) for any errors related to SPI or device tree loading.
By following these steps, you should be able to enable SPI and access the spidev interface on your Colibri iMX6ULL module.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem: