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

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?
Comments
-
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. -
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!
Categories
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 550 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 11 UP Squared V2
- 26 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral