Is there anyway to get spidev0 under /dev
#1
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.
  Reply
#2
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?t...3#pid25663
Come have a chat in the Pine IRC channel >>
  Reply
#3
I did that but still there is nothing like spidev0.0 under /dev directory
  Reply
#4
Check https://github.com/longsleep/build-pine6...b6d049ed9d for an example. With those change one just needs to change https://github.com/longsleep/build-pine6...31c96L1849 to status="okay", so it gets loaded.

Obviously one needs to rebuilds the device tree, see https://github.com/longsleep/build-pine6...nel.sh#L81 for an example how to do this
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)