SPI can not receive data on Ubuntu 18.04 with 4.15 kernel patch

maxxy New Member Posts: 8

I had Ubuntu 18.04 with 4.15 kernel patch on UP board.
I can see /dev/spidev2.0 and /dev/spidev2.1, and it is success to open SPI, but I cannot get any data when running my code to communicate over SPI, the error code of the calling ioctl() is 132.

Did anyone encounter the same problem?


  • DCleri
    DCleri Administrator, AAEON Posts: 1,213 admin

    Hi @maxxy

    The SPI interface is working correctly and depending on what application or driver you have written, you might need to adjust the ASL code provided in the sample applications from our wiki.

    The available code works in general and specifically we tested few devices as you can see from our wiki: https://wiki.up-community.org/Adafruit
    Also our LoRa Gateways are using a SPI based LoRa concentrator which works out of the box with our SPI interfaces with default spidevice code.

  • maxxy
    maxxy New Member Posts: 8

    Thanks DCleri,
    I installed Ubuntu16 and SPI driver, then updated the system to 18.04, SPI worked well.
    This question can be closed, thanks again!

Privacy Policy