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 themcp2515
node is set tostatus = "disabled";
and thespidev0
node is set tostatus = "okay";
. This is important because the MCP2515 SPI CAN controller might block access to the spidev interface if enabled.
- You’ve modified the
-
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 bybitbake tdx-reference-minimal-image
.
- After making changes, run
-
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.
- 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
-
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.
- After booting the updated image, check for the presence of the spidev device by listing the contents of
-
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 tom
(module) ory
(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: