04-05-2017, 04:51 PM
Move to the tab with Nightly Releases on the Pine64 download page for the mainline images...
Come have a chat in the Pine IRC channel >>
Is SPI Working?
|
04-05-2017, 04:51 PM
Move to the tab with Nightly Releases on the Pine64 download page for the mainline images...
Come have a chat in the Pine IRC channel >>
04-05-2017, 07:46 PM
I download Nightly 4.10.0. After boot (w/o any overlays=) i see next messages
# lsmod|grep spi spidev 20480 0 # dmesg | grep spi [ 1.561446] sun6i-spi 1c68000.spi: could not find pctldev for node /soc/pinctrl@1c20800/spi0@0, deferring probe [ 1.615170] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00 [ 1.615183] m25p80: probe of spi0.0 failed with error -2 #ls /sys/bus/spi/drivers/spidev -la drwxr-xr-x 2 root root 0 Apr 5 10:19 . drwxr-xr-x 6 root root 0 Apr 5 10:19 .. --w------- 1 root root 4096 Apr 5 10:34 bind lrwxrwxrwx 1 root root 0 Apr 5 10:19 module -> ../../../../module/spidev --w------- 1 root root 4096 Apr 5 10:19 uevent --w------- 1 root root 4096 Apr 5 10:19 unbind but # ls /dev/spi* ls: cannot access '/dev/spi*': No such file or directory also i try # echo -n spi0.0 >/sys/bus/spi/drivers/spidev/bind -bash: echo: write error: No such device also i try add overlays= to uEnv.txt but nothing change for ls /dev/spi*
04-06-2017, 08:04 AM
(This post was last modified: 04-06-2017, 08:07 AM by martinayotte.)
The issue is related to the fact that current DT is loading a "jedec,spi-nor" driver.
You will need to edit the main DT and remove the "spi-flash@0" section. Then you will be able to load the overlay, but it need to be done in armbianEnv.txt, not uEnv.txt which doesn't exist in Armbian. (Or wait few more days, until I'll fix the issue in future builds)
04-06-2017, 12:36 PM
(04-06-2017, 08:04 AM)martinayotte Wrote: The issue is related to the fact that current DT is loading a "jedec,spi-nor" driver. Thanks ! I'll wait some days.
04-06-2017, 03:46 PM
In fact, I've done the tasks, it should be present in next nigthly build.
04-10-2017, 02:45 AM
Perfect, download today and check.
Thanks !
04-10-2017, 02:23 PM
Download mainline version.
Now /dev/spidev0.0 exists and open. But not works with software from Raspberry Pi. Read (or write) values not correct.
04-12-2017, 10:06 AM
Which devices you are trying to communicate with ?
Which RaspberryPi software you are using ?
04-14-2017, 03:03 PM
Hi,
i use iC880A hardware and lora-gateway software library (http://github.com/lora-net/lora-gateway) after connect via Visual Studio i can debug software but was busy some days so can see in depth at weekend. |
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
touch screen not working | mike280z | 1 | 4,004 |
12-22-2016, 12:46 PM Last Post: Bluphire |
|
RaZberry Module (z-wave) need support to get it working! | Luxus | 13 | 21,064 |
11-03-2016, 02:04 AM Last Post: Luxus |