Is SPI Working?
#51
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 >>
  Reply
#52
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*
  Reply
#53
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)
  Reply
#54
(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.
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)

Thanks !
I'll wait some days.
  Reply
#55
In fact, I've done the tasks, it should be present in next nigthly build.
  Reply
#56
Perfect, download today and check.
Thanks !
  Reply
#57
Download mainline version.
Now /dev/spidev0.0 exists and open.
But not works with software from Raspberry Pi.
Read (or write) values not correct.
  Reply
#58
Which devices you are trying to communicate with ?
Which RaspberryPi software you are using ?
  Reply
#59
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.
  Reply
#60
@x893
Which os image are you using where the spidev shows up? I can't seem to get mine to show, and currently running the latest armbian image (5.30_Pine64_Ubuntu_xenial_default_3.10.105)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  touch screen not working mike280z 1 4,058 12-22-2016, 12:46 PM
Last Post: Bluphire
  RaZberry Module (z-wave) need support to get it working! Luxus 13 21,424 11-03-2016, 02:04 AM
Last Post: Luxus

Forum Jump:


Users browsing this thread: 2 Guest(s)