*** tpb has joined #litex | 00:00 | |
*** peeps[zen] is now known as peepsalot | 00:21 | |
*** futarisIRCcloud has joined #litex | 00:29 | |
*** Degi_ has joined #litex | 01:18 | |
*** Degi has quit IRC | 01:20 | |
*** Degi_ is now known as Degi | 01:20 | |
_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 | 05:21 |
---|---|---|
sajattack[m] | how does that work? | 05:21 |
_florent_ | At startup, the FPGA jumps to the operational bitstream and fall back to the golden bitstream if operational bitstream is corrupted | 05:21 |
sajattack[m] | can I do that with openocd? | 05:22 |
_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 | 05:23 |
_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 | 05:24 |
_florent_ | you can then just do updates over PCIe | 05:24 |
sajattack[m] | ok cool | 05:24 |
_florent_ | So you just need to configure a first time over JTAG, after that you no longer need it | 05:25 |
sajattack[m] | but I need to write something to send the update to the spi flash? or it's already written? | 05:26 |
_florent_ | I'm planning to share examples for that for the Acorn soon | 05:26 |
sajattack[m] | sweet | 05:26 |
_florent_ | it's already there: https://github.com/enjoy-digital/litepcie/blob/master/litepcie/software/user/litepcie_util.c#L84-L252 | 05:27 |
sajattack[m] | that's awesome | 05:28 |
sajattack[m] | is rescan sufficient or needs a full reboot to work? | 05:28 |
sajattack[m] | like this https://github.com/enjoy-digital/litepcie/issues/36 | 05:30 |
_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). | 05:30 |
*** lkcl has quit IRC | 05:31 | |
_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 | 05:31 |
sajattack[m] | yes | 05:31 |
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? | 05:33 |
*** Bertl is now known as Bertl_zZ | 05:33 | |
_florent_ | In fact with the current code you just need to have this in your SoC: | 05:34 |
_florent_ | https://www.irccloud.com/pastebin/4ioxldCH/ | 05:34 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 05:34 |
sajattack[m] | ok | 05:35 |
_florent_ | with the flash pins defined similar to this: | 05:35 |
_florent_ | https://www.irccloud.com/pastebin/pXclz7TB/ | 05:35 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 05:35 |
_florent_ | This will create the defines and will enable Flashing in the LitePCIe driver | 05:36 |
sajattack[m] | cool | 05:36 |
sajattack[m] | thanks! | 05:36 |
*** lkcl has joined #litex | 05:43 | |
*** lkcl has quit IRC | 06:19 | |
*** kgugala_ has joined #litex | 06:28 | |
*** kgugala has quit IRC | 06:32 | |
*** lkcl has joined #litex | 06:32 | |
*** kgugala has joined #litex | 06:40 | |
*** kgugala_ has quit IRC | 06:42 | |
*** shorne has quit IRC | 07:02 | |
*** pepijndevos has quit IRC | 07:53 | |
*** lkcl has quit IRC | 08:01 | |
*** lkcl has joined #litex | 08:14 | |
* sajattack[m] < https://matrix.org/_matrix/media/r0/download/matrix.org/mfuYEigcoSHfOaghcNVWqDOB/message.txt > | 08:19 | |
sajattack[m] | looks like `-f` | 08:21 |
*** shorne has joined #litex | 08:38 | |
*** midnight has quit IRC | 09:19 | |
*** midnight has joined #litex | 09:23 | |
*** futarisIRCcloud has quit IRC | 10:19 | |
*** Bertl_zZ is now known as Bertl | 11:29 | |
*** peeps[zen] has joined #litex | 12:35 | |
*** peepsalot has quit IRC | 12:36 | |
*** peepsalot has joined #litex | 13:06 | |
*** peeps[zen] has quit IRC | 13:06 | |
*** Melkhior has joined #litex | 13:58 | |
Melkhior | @somlo Great tutorial on your work with Linux-on-Litex-Rocket at the RISC-V week https://open-src-soc.org/2021-03/ ! | 14:00 |
Melkhior | And nice plug of #litex in the Q&A :-) | 14:00 |
tpb | Title: 2nd RISC-V Week: 3rd RISC-V Meeting + OpenHW Day (at open-src-soc.org) | 14:00 |
*** Bertl is now known as Bertl_oO | 15:11 | |
*** pepijndevos has joined #litex | 15:44 | |
*** m4ssi has joined #litex | 17:04 | |
somlo | Melkhior: thanks! | 19:53 |
*** keesj has quit IRC | 20:24 | |
*** m4ssi has quit IRC | 20:51 | |
*** FFY00_ has joined #litex | 21:00 | |
*** FFY00_ has quit IRC | 21:02 | |
*** FFY00_ has joined #litex | 21:02 | |
*** FFY00_ has quit IRC | 21:18 | |
*** FFY00_ has joined #litex | 21:20 | |
*** FFY00_ has quit IRC | 21:22 | |
*** FFY00_ has joined #litex | 21:23 | |
*** FFY00_ has quit IRC | 23:14 | |
*** FFY00_ has joined #litex | 23:14 | |
*** FFY00_ has quit IRC | 23:27 | |
*** FFY00_ has joined #litex | 23:28 | |
*** lkcl has quit IRC | 23:29 | |
*** lkcl has joined #litex | 23:42 | |
*** lf has quit IRC | 23:43 | |
*** lf has joined #litex | 23:43 | |
*** FFY00_ has quit IRC | 23:59 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!