Using Orange Pi One as an SPI programmer with flashrom
30 October 2019
That's quite simple. I was using Armbian Buster with 4.19.62-sunxi kernel.
You need to enable the spi-spidev
overlay, which you can do by using armbian-config
utility (go to System -> Hardware and enable spi-spidev), or by adding overlays=spi-spidev
line to /boot/armbianEnv.txt
.
You also need to add param_spidev_spi_bus=0
to /boot/armbianEnv.txt
.
Then reboot, make sure that spidev
module is loaded and that you have /dev/spidev0.0
device.
Then you're ready to use flashrom:
# flashrom -p linux_spi:dev=/dev/spidev0.0
P.S. Here is the pinout for SPI:
+--------------------------------------------------------------+
| |
| |
| |
| |
| |
| Orange Pi # |
| # # |
| # # |
| # H 3 # |
| # # |
| # # |
| # |
| GND CS |
| | | |
| x x x x x x x x x x x x x x x x x x x x |
| x x x x x x x x x x x x x x x x x x x x |
+--------------------------------------------------------------+
| | | |
3.3V | | CLK
| |
MOSI MISO
If you have any comments, contact me by email.