This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

spidev problem

I have two boards to develop my project: one beaglebone and one EVM.

When I enable the SPI on the Beaglebone it works fine, but when I do the exact same thing on the EVM there is no /dev/spidev2.0 device and I can't find anywhere why...

Building the Kernel I enable both:

Device Drivers ---> [*] SPI support ---> <*> McSPI driver for OMAP
Device Drivers ---> [*] SPI support ---> <M> User mode SPI device driver support

Then I copy the folder /lib/modules/ from where it is located on my machine to the filesystem used on the target in order to make the file /lib/modules/3.2.0/kernel/drivers/spi/spidev.ko available for the insmod command.

The differences between those two boards is that the Bealgebone uses the filesystem in the second partition of the SDCard (ext3) and the EVM uses it from the NAND (jffs2). I also made some changes on the EVM board to make it possible to get to the pins of the SPI1, but there is no chance that this would interfere on the software.

Browsering the forum I found this topic: http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/791/t/214756.aspx

It didn't help me much, but if anyone should ask, when I try find /sys -name "*spi*" the files that are missing on the EVM are:

/sys/devices/platform/omap/omap2_mcspi.2/spi2.0
/sys/devices/platform/omap/omap2_mcspi.2/spi2.0/spidev
/sys/devices/platform/omap/omap2_mcspi.2/spi2.0/spidev/spidev2.0
/sys/bus/spi/devices/spi2.0
/sys/bus/spi/drivers/spidev/spi2.0
/sys/class/spidev/spidev2.0

The rest of the output is the same:

/sys/devices/platform/omap/omap2_mcspi.1
/sys/devices/platform/omap/omap2_mcspi.1/spi_master
/sys/devices/platform/omap/omap2_mcspi.1/spi_master/spi1
/sys/devices/platform/omap/omap2_mcspi.2
/sys/devices/platform/omap/omap2_mcspi.2/spi_master
/sys/devices/platform/omap/omap2_mcspi.2/spi_master/spi2
/sys/bus/platform/devices/omap2_mcspi.1
/sys/bus/platform/devices/omap2_mcspi.2
/sys/bus/platform/drivers/omap2_mcspi
/sys/bus/platform/drivers/omap2_mcspi/omap2_mcspi.1
/sys/bus/platform/drivers/omap2_mcspi/omap2_mcspi.2
/sys/bus/spi
/sys/bus/spi/drivers/spidev
/sys/class/spi_master
/sys/class/spi_master/spi1
/sys/class/spi_master/spi2
/sys/class/spidev
/sys/module/spidev
/sys/module/spidev/drivers/spi:spidev

So, anyone have a clue of what's going on?

Thanks Davi