How to enable spidev in IMX6

hi, i’m unable to view spidev in /dev directory. i’m using linux lxde image from toradex. After a bit of googling

according to this link SPI Linux Toradex

By default our BSP uses the MCP2515 SPI CAN controller as available on our Colibri Evaluation board V3.x. In order to use spidev instead one needs to disable (e.g. status = “disabled”) the mcp2515 device tree node and enable (e.g. status = “okay”) the spidev one and re-generate and deploy the device tree to the target.

I’m using IRIS board. Can someone help me on how to enable SPI once i boot to linux.
I’m new to Embedded Linux Platforms and systems

can someone point me to pre built image with spi enabled for iMX6ull or iMX6DL?
or steps to build kernel with spi enabled

Hi, there is no prebuilt image with spi enabled for Colibri iMX6s. The Steps to build kernel with SPI enabled were already provided above.

Best regards,
Jaski

hi @pratik

Welcome to the Toradex Community!

I’m using IRIS board. Can someone help me on how to enable SPI once i boot to linux. I’m new to Embedded Linux Platforms and systems

You will need to change the device tree, compile it and flash it to the module. There is no possibility to activate Spi, if the module is already booted to Linux.

Best regards,
Jaski