Wednesday, 2021-03-31

*** tpb has joined #litex00:00
*** peeps[zen] is now known as peepsalot00:21
*** futarisIRCcloud has joined #litex00:29
*** Degi_ has joined #litex01:18
*** Degi has quit IRC01:20
*** Degi_ is now known as Degi01: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 Flash05: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 corrupted05: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 successful05: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 Flash05:24
_florent_you can then just do updates over PCIe05:24
sajattack[m]ok cool05:24
_florent_So you  just need to configure a first time over JTAG, after that you no longer need it05: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 soon05:26
sajattack[m]sweet05:26
_florent_it's already there: https://github.com/enjoy-digital/litepcie/blob/master/litepcie/software/user/litepcie_util.c#L84-L25205:27
sajattack[m]that's awesome05: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/3605: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 IRC05: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-L25205:31
sajattack[m]yes05: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_zZ05: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
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)05:34
sajattack[m]ok05:35
_florent_with the flash pins defined similar to this:05:35
_florent_https://www.irccloud.com/pastebin/pXclz7TB/05:35
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)05:35
_florent_This will create the defines and  will enable Flashing in the LitePCIe driver05:36
sajattack[m]cool05:36
sajattack[m]thanks!05:36
*** lkcl has joined #litex05:43
*** lkcl has quit IRC06:19
*** kgugala_ has joined #litex06:28
*** kgugala has quit IRC06:32
*** lkcl has joined #litex06:32
*** kgugala has joined #litex06:40
*** kgugala_ has quit IRC06:42
*** shorne has quit IRC07:02
*** pepijndevos has quit IRC07:53
*** lkcl has quit IRC08:01
*** lkcl has joined #litex08: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 #litex08:38
*** midnight has quit IRC09:19
*** midnight has joined #litex09:23
*** futarisIRCcloud has quit IRC10:19
*** Bertl_zZ is now known as Bertl11:29
*** peeps[zen] has joined #litex12:35
*** peepsalot has quit IRC12:36
*** peepsalot has joined #litex13:06
*** peeps[zen] has quit IRC13:06
*** Melkhior has joined #litex13: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
MelkhiorAnd nice plug of #litex in the Q&A :-)14:00
tpbTitle: 2nd RISC-V Week: 3rd RISC-V Meeting + OpenHW Day (at open-src-soc.org)14:00
*** Bertl is now known as Bertl_oO15:11
*** pepijndevos has joined #litex15:44
*** m4ssi has joined #litex17:04
somloMelkhior: thanks!19:53
*** keesj has quit IRC20:24
*** m4ssi has quit IRC20:51
*** FFY00_ has joined #litex21:00
*** FFY00_ has quit IRC21:02
*** FFY00_ has joined #litex21:02
*** FFY00_ has quit IRC21:18
*** FFY00_ has joined #litex21:20
*** FFY00_ has quit IRC21:22
*** FFY00_ has joined #litex21:23
*** FFY00_ has quit IRC23:14
*** FFY00_ has joined #litex23:14
*** FFY00_ has quit IRC23:27
*** FFY00_ has joined #litex23:28
*** lkcl has quit IRC23:29
*** lkcl has joined #litex23:42
*** lf has quit IRC23:43
*** lf has joined #litex23:43
*** FFY00_ has quit IRC23:59

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!