03-01-2015 01:47 PM
I'm trying to use the PS SPI peripheral to speak to some logic in the PL over an EMIO channel. I've gotten this to work to the point where I can boot petalinux, cat some control bytes to the /dev/spidev-device and then read back the reply data.
I'd like this to work in my debian Zynq build as well but here I'm running into trouble. Using the same kernel and device-tree, performing the same level shifting enabling boot logic, I still fail to use the spidev under Debian.
The error message is:
root@zynq:~# cat /dev/spidev32766.0
cat: /dev/spidev32766.0: Message too long
Anyone have some ideas what to look at?
03-04-2015 09:26 AM
Excellent, thank you! That works :)
Any idea why the Petalinux rootfs would behave differenly from Debian? I am using the same kernel and device-tree for both. In petalinux 'cat' works both for reading and writing.
08-31-2016 01:38 AM
i have a question of SPI recognition.
i also use spi as a PS.
SPI does NOT appear in /proc/devices after start in my petalinux env.
i use the zynq706 and petalinux 2014.4 .
could u let me know how did you set DTS file(spi part) ?
any kindly comment will be helpful.
Best Regards. Steven.