_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://freenode.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
peeps[zen] is now known as peepsalot
futarisIRCcloud has joined #litex
Degi_ has joined #litex
Degi has quit [Ping timeout: 268 seconds]
Degi_ is now known as Degi
<_florent_> sajattack[m]: With PCIe, on 7-Series I generally used the multiboot feature that allows having a golden bitstream + operational bitstream in SPI Flash
<sajattack[m]> how does that work?
<_florent_> At startup, the FPGA jumps to the operational bitstream and fall back to the golden bitstream if operational bitstream is corrupted
<sajattack[m]> can I do that with openocd?
<_florent_> This way you can safetly update the operational bitstream in SPI Flash and knows it will able to recover even if flashing is not successful
<_florent_> With LitePCIe, LitePCIe already provides the MMAP interface (for AXI-Lite/Wishbone/CSR registers) and the bistream just need to have a SPI core connected to the SPI Flash
<_florent_> you can then just do updates over PCIe
<sajattack[m]> ok cool
<_florent_> So you just need to configure a first time over JTAG, after that you no longer need it
<sajattack[m]> but I need to write something to send the update to the spi flash? or it's already written?
<_florent_> I'm planning to share examples for that for the Acorn soon
<sajattack[m]> sweet
<sajattack[m]> that's awesome
<sajattack[m]> is rescan sufficient or needs a full reboot to work?
<_florent_> but I want to rework it a bit, the current implementation use a hardware SPI core, but for another design I just did the reflashing over bitbanging and it was in fact more flexible and faster, so I want to switch the LitePCIe example SPI Flash update to bitbanging (which would by the way also allow having the SPI Flash mmaped in the SoC for reads).
lkcl has quit [Ping timeout: 260 seconds]
<_florent_> yes this should be enough, you just need to also reload the bitstream first with https://github.com/enjoy-digital/litepcie/blob/master/litepcie/software/user/litepcie_util.c#L233-L252
<sajattack[m]> yes
<sajattack[m]> do I just define CSR_FLASH_BASE in CFLAGS to 1 or is it something that needs to be set up a bit more than that?
Bertl is now known as Bertl_zZ
<_florent_> In fact with the current code you just need to have this in your SoC:
<tpb> Title: Snippet | IRCCloud (at www.irccloud.com)
<sajattack[m]> ok
<_florent_> with the flash pins defined similar to this:
<tpb> Title: Snippet | IRCCloud (at www.irccloud.com)
<_florent_> This will create the defines and will enable Flashing in the LitePCIe driver
<sajattack[m]> cool
<sajattack[m]> thanks!
lkcl has joined #litex
lkcl has quit [Ping timeout: 246 seconds]
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 268 seconds]
lkcl has joined #litex
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 240 seconds]
shorne has quit [Ping timeout: 240 seconds]
pepijndevos has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #litex
<sajattack[m]> looks like `-f`
shorne has joined #litex
midnight has quit [Ping timeout: 276 seconds]
midnight has joined #litex
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
Bertl_zZ is now known as Bertl
peeps[zen] has joined #litex
peepsalot has quit [Ping timeout: 240 seconds]
peepsalot has joined #litex
peeps[zen] has quit [Ping timeout: 246 seconds]
Melkhior has joined #litex
<Melkhior> @somlo Great tutorial on your work with Linux-on-Litex-Rocket at the RISC-V week https://open-src-soc.org/2021-03/ !
<Melkhior> And nice plug of #litex in the Q&A :-)
<tpb> Title: 2nd RISC-V Week: 3rd RISC-V Meeting + OpenHW Day (at open-src-soc.org)
Bertl is now known as Bertl_oO
pepijndevos has joined #litex
m4ssi has joined #litex
<somlo> Melkhior: thanks!
keesj has quit [Ping timeout: 240 seconds]
m4ssi has quit [Remote host closed the connection]
FFY00_ has joined #litex
FFY00_ has quit [Remote host closed the connection]
FFY00_ has joined #litex
FFY00_ has quit [Remote host closed the connection]
FFY00_ has joined #litex
FFY00_ has quit [Remote host closed the connection]
FFY00_ has joined #litex
FFY00_ has quit [Ping timeout: 245 seconds]
FFY00_ has joined #litex
FFY00_ has quit [Remote host closed the connection]
FFY00_ has joined #litex
lkcl has quit [Ping timeout: 246 seconds]
lkcl has joined #litex
lf has quit [Ping timeout: 245 seconds]
lf has joined #litex
FFY00_ has quit [Read error: Connection reset by peer]