i.MX28 and SPI running linux 3.2.15

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX28 and SPI running linux 3.2.15

859 Views
Jean-PaulLePape
Contributor I

Hi all,

 I build the kernel 3.2.15 and created the SPI device node by following these steps:

1) Determination of the major number of the device node:

      cat /proc/devices

     The spi device is listed among other devices

2) Creation of the device node:

        mknod spi_0 c 163 0

Now that I have the device note if a try to open it via a simple c code it will fail to create the file despcritor: This is code to open the device node:

     int fileDescriptor = open("/dev/spi_0", 0_RDWR);

Is there anything that I need to do to be able to use the device node.

Thanks for your help.

Jean-Paul

0 Kudos
3 Replies

611 Views
Jean-PaulLePape
Contributor I

Hi Guys,

 No sweat :-), I was able to port the SPI driver to the 3.2.15 kernel. If anybody is interested, I will more than happy to share that experience :-)

Thanks,

Jean-Paul

0 Kudos

611 Views
cono
Contributor I

Hi Jean-Paul,

nice to hear that you have a ported version of freescale SPI driver for kernel 3.2.15. I am using kernel version V3.4 and so I am very interested in your experience. Can you tell me more according to your port?

Regards,

Christoph

0 Kudos

611 Views
Jean-PaulLePape
Contributor I

Hi,

 I look at the the kernel configuration file an a notice that the option, "Freescale SPI controller" , is not available for the i.MX28 EVK board.

  Do anyone knows where I can get the free scale SPI driver for the i.MX28 so I can build it.

Thanks for your help,

Jean-Paul

0 Kudos