Jean-Paul Le Pape

i.MX28 and SPI running linux 3.2.15

Discussion created by Jean-Paul Le Pape on May 23, 2012
Latest reply on Feb 24, 2014 by Christoph Stoidner

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.