Good day!
i use colibri imx6. Spi device not exist in dev folder.
Can i know what kind of step should i do for get this device in DEV folder ?
Hello @andrey.vatoropin.it ,
Thanks for reaching out to the Toradex community.
Are you using one of our reference images or TorizonCore?
Have you taken a look at these documentations:
Yeah. i use image which i installed from toradex easy installer
i used both 5 kernel and 6 kernel - spi not exist.
spi exist only in torizoncore.
[ 12.110773] mcp251x spi3.0: MCP251x didn’t enter in conf mode after reset
[ 12.120202] mcp251x spi3.0: Probe failed, err=110
[ 12.126317] mcp251x: probe of spi3.0 failed with error -110
in dmesg i see this message
and sometimes i may see this:
[ 3.043120] SPI driver ads7846 has no spi_device_id for ti,tsc2046
[ 3.049539] SPI driver ads7846 has no spi_device_id for ti,ads7843
[ 3.055847] SPI driver ads7846 has no spi_device_id for ti,ads7845
[ 3.062263] SPI driver ads7846 has no spi_device_id for ti,ads7873
Hello @andrey.vatoropin.it,
Thanks for providing more details. This looks more like you haven’t enabled the SPIDEV overlay on the module. This is mentioned in this section.
You will have to add the overlay named colibri-imx6-eval_spidev_overlay.dtbo
into /boot/overlays.txt
on the module and reboot. After that, this problem should be solved. Please let me know if it helped!
no… i added. it is work! bun until moment when i recompile kernel and put new kernel instead previous. After this spi device not exist.
bun until moment when i recompile kernel and put new kernel instead previous.
Could you please elaborate a bit more on that? Which version of our BSP are you using? What type of modifications have you made to the kernel? Other than the kernel modifications have you done any other customizations on the image?
after long fight i got result. it was quite easy. i decided to use M in make menuconfig instead *. after i compiled modules and copy them to rootfs. After i use this:
echo spi3.0 > /sys/bus/spi/drivers/mcp251x/unbind
echo spidev > /sys/bus/spi/devices/spi3.0/driver_override
echo spi3.0 > /sys/bus/spi/drivers/spidev/bind
and Spi work quite good.
That’s great to hear! Thanks for sharing the solution