Raptor Computing Systems Community Forums (BETA)

Software => Firmware => Topic started by: MPC7500 on December 23, 2019, 07:01:00 pm

Title: Updating FPGA Firmware
Post by: MPC7500 on December 23, 2019, 07:01:00 pm
Hello,

in the next days I plan to update the FPGA firmware of my Blackbird. I would like to know from you if my considerations are correct so far.

I own a:
Bus Pirate v3.6 (TOL-12942)
Bus Pirate cable (CAB-09556)
Fedora 31
FlashROM v1.1

Am I correct in assuming that this patch (https://github.com/flashrom/flashrom/commit/0b59b0dafc219ba73ee2af5404ce626575d74c6f) is already included in v1.1? And I read somewhere that you should buy v3.6 and not v4. I hope this is correct?

Can I proceed as follows:

1. connect Bus Pirate and Blackbird via USB
2. connect Bus Pirate cable (https://cdn.sparkfun.com/assets/learn_tutorials/4/0/4/Bp-cable-color.png) with FPGA header

Wire colorBus Pirate v3.6FPGA header (J10107)
BrownGND1 Ground
PinkClock2 SPI Clock
GreyMOSI3 SPI MOSI
BlackMISO4 SPI MISO
WhiteChip select (active low)5 SPI Slave select (active low)
Red+3.3V6 +3.3V (standby power)

3. boot Blackbird
4. flash firmware
5. shutdown Blackbird
6. disconnect the power supply until the lights go out
7. switch on the power supply

Or do I have to do the whole thing from another computer because the wiki says the following:
"Apply standby power to your system but do not turn it on."

I thought a second computer was not needed because it's an ISP programmer?

Now for the actual programming. Are the following commands correct:

Write Firmware: sudo flashrom -p buspirate_spi:dev=/dev/myPath,spispeed=1M -w Blackbird-system-fpga-v1.01.rom

Verify Firmware: sudo flashrom -p buspirate_spi:dev=/dev/myPath,spispeed=1M -v Blackbird-system-fpga-v1.01.rom

Is this so far correct?
Title: Re: Updating FPGA Firmware
Post by: MPC7500 on December 31, 2019, 12:10:24 pm
I updated the RCS Wiki (https://wiki.raptorcs.com/wiki/Updating_Firmware).