I finally get flash written with just using the same SPI0 on RPI and JP5 connector
JP5 connector on RV901T
In Xilinx ISE it it required to set the output bitstream format as bin (right click on the "Generate Programming File" > "Process Properties..." > "Create Binary Configuration File" ☑ ).
Then
Code:
sudo apt install -y flashrom
sudo flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=10000
> Found Winbond flash chip "W25Q32.V" (4096 kB, SPI) on linux_spi.
sudo flashrom -f -p linux_spi:dev=/dev/spidev0.0,spispeed=10000 -w ~/Downloads/TopGCSPIHostMot2.bin
> Error: Image size (524288 B) doesn't match the expected size (4194304 B)!
dd if=/dev/zero bs=1 count=1 seek=4194303 of=TopGCSPIHostMot2.bin
sudo flashrom -f -p linux_spi:dev=/dev/spidev0.0,spispeed=10000 -w ~/Downloads/TopGCSPIHostMot2.bin
> Found Winbond flash chip "W25Q32.V" (4096 kB, SPI) on linux_spi.
> Reading old flash chip contents... done.
> Erasing and writing flash chip... Erase/write done.
> Verifying flash... VERIFIED.
I also tried to make a kind of SPI-bridge bitstream for the board to avoid disconnecting of the rv901t board from the RPi, but it is not my level of fpga configuring yet.
Anyway, I think I can mark it as [solved].
Many thanks to PCW and cornholio!
Not sure, probably this thread better to move to the
Hardware & Machines
section.