Is there anyway to get spidev0 under /dev - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +---- Forum: Pi2, Euler and Exp GPIO Ports (https://forum.pine64.org/forumdisplay.php?fid=34) +---- Thread: Is there anyway to get spidev0 under /dev (/showthread.php?tid=4257) |
Is there anyway to get spidev0 under /dev - serdarot5 - 03-09-2017 I need to use flashrom utility for flashing my bios rom. And flashrom need spi and spi device should be in spidev0.0 how can i do that in pine64? I searched a lot but i couldnt found. Someone said i should change device tree but i dont know how. Thanks a lot. RE: Is there anyway to get spidev0 under /dev - xalius - 03-09-2017 There are two ways to go about this. The SPI interface is by default no configured on the pins, because UART3/4 are mapped there. If you are not using Armbian, you need to manually change your devicetree to configure SPI pins. If you are using Armbian, you can use the boot-time overlay via your ArmbianEnv configugration as outlined here: http://forum.pine64.org/showthread.php?tid=1297&pid=25663#pid25663 RE: Is there anyway to get spidev0 under /dev - serdarot5 - 03-12-2017 I did that but still there is nothing like spidev0.0 under /dev directory RE: Is there anyway to get spidev0 under /dev - longsleep - 03-12-2017 Check https://github.com/longsleep/build-pine64-image/commit/b2598283405d0a8f3c6313dd5fc4dfb6d049ed9d for an example. With those change one just needs to change https://github.com/longsleep/build-pine64-image/commit/b2598283405d0a8f3c6313dd5fc4dfb6d049ed9d#diff-7470f11d040c23e6eb8db02003f31c96L1849 to status="okay", so it gets loaded. Obviously one needs to rebuilds the device tree, see https://github.com/longsleep/build-pine64-image/blob/master/kernel/install_kernel.sh#L81 for an example how to do this |