Monday, 2020-02-03

*** tpb has joined #litex00:00
*** proppy has joined #litex01:28
*** freemint has joined #litex01:30
*** _whitelogger has quit IRC01:32
*** _whitelogger has joined #litex01:35
*** freemint has quit IRC02:09
*** freemint has joined #litex02:15
xobsIs there a recommended way to get litex working on a system without much room for a rom?02:42
xobsOn Fomu I hacked it by coming up with my own "bios" target and redirecting it, but that was painful to set up.02:43
xobsEsden is porting litex to the icebreaker, and he'll run into the limitation now02:43
xobsI managed to get the bios to work on Fomu by stripping out almost everything but I gather that's not the recommended way of doing it.02:44
*** esden has joined #litex04:15
esdeno/ :)04:16
*** freemint has quit IRC05:27
*** freemint has joined #litex05:27
*** rohitksingh has quit IRC06:41
xobsSo the thing I did for esden to get it to work was https://github.com/xobs/litex-boards/blob/icebreaker/litex_boards/partner/targets/icebreaker.py#L202 which sets the `rom` memory region to point to just after the bitstream.07:31
tpbTitle: litex-boards/icebreaker.py at icebreaker · xobs/litex-boards · GitHub (at github.com)07:31
xobsI had to hack it that way because litex has a check to make sure it's along some boundary, which the address `0x2001a000` doesn't satisfy.  Is there a better way to do that?07:31
_florent_Hi xobs, esden, if you are able to use the SPI Flash to store the BIOS and execute it from there, then that's what i would recommend yes07:38
xobsOkay, he's reported that it works, so that's what I'll stick with.07:39
xobsThe problem comes from the fact that `spiflash` is already at that offset, so I use that trick to avoid that conflict error.07:39
xobsAlso, it's at `0x1a000` from the start, which isn't block-aligned.07:40
_florent_xobs: ok, i'm going to compare what you did with what we use on others designs for that07:43
xobsIt's a common enough pattern, but this is the first time I've decided to try and work with the bios build system rather than scrapping it.  Also he doesn't really need a bootloader or a bios in this case.07:44
_florent_xobs: here is how it's done in litex-buildenv: https://github.com/timvideos/litex-buildenv/blob/master/targets/mimasv2/base.py#L213-L22907:51
tpbTitle: litex-buildenv/base.py at master · timvideos/litex-buildenv · GitHub (at github.com)07:51
_florent_xobs: to define a memory region that will only be used by the linker (and that overlap with another already defined memory region), you can add the "+linker" to the type.07:52
_florent_xobs: but i agree this should be simplified07:53
*** freemint has quit IRC08:01
*** m4ssi has joined #litex08:05
mithro_florent_ / xobs: That is something I would like to be solved too08:33
mithro_florent_ / xobs: I really think we should also invest in solving the spiflash issue and finishing of the spi flash module system I was working on08:33
xobsmithro: I think speeding up SPI flash would be more helpful.  esden was having trouble getting anything working because it would time out after 500 ms.08:34
mithrohttps://docs.google.com/document/d/1JZ7pU7roOaJwsv_LlXDKpWrLMSp254-tuof5KIFcC-I/edit#08:34
tpbTitle: LiteX SPI Flash Improvements - Google Docs (at docs.google.com)08:34
mithroxobs: What was timing out?08:34
xobsEnded up needing to switch to the `lite` core to get the BIOS to finish.08:34
xobsmithro: wishbone.  `wishbone-tool` has a timeout of one second, so if the bridge doesn't respond within that time, it assumes the bus has locked up.08:35
mithroxobs: https://github.com/mithro/litex/tree/d7184b97494012a8c21ee93df231b758a61e9dec/litex/soc/cores/spi08:35
tpbTitle: litex/litex/soc/cores/spi at d7184b97494012a8c21ee93df231b758a61e9dec · mithro/litex · GitHub (at github.com)08:35
mithroxobs: I agree that speeding up the core would be good too08:37
xobsIt would help both fomu and icebreaker.08:37
mithroxobs: Putting the spiflash in a different clock domain (which is much faster) would be a big improvement08:39
mithroxobs: Would it help for betrusted at all?08:39
xobsmithro: It might!  One thing I've found is that using 32-bit CSRs gives us much better timing.  I see it meeting up to 60 MHz for the 48 MHz domain, versus the 50 MHz we were seeing before.08:40
mithroxobs: Interesting...08:40
mithro_florent_: I was looking at your changes and I don't feel like all the csr/bus width checking stuff belongs in the area you put it08:42
_florent_mithro: indeed, i was also thinking the same after doing it, but this was just a sketch to show you that we have the same general ideas, i just need to spend more time working on that to refine things09:13
*** massi_ has joined #litex15:26
*** m4ssi has quit IRC15:29
*** massi_ has quit IRC16:54
*** rohitksingh has joined #litex17:36
*** rohitksingh has quit IRC19:54
*** rohitksingh has joined #litex20:00
*** feig has joined #litex20:02
*** tumbleweed has quit IRC20:04
*** bunnie[m] has quit IRC20:04
*** rohitksingh has quit IRC20:18
*** feig has quit IRC20:19
*** tumbleweed has joined #litex20:25
*** bunnie[m] has joined #litex20:25
*** feig has joined #litex20:49
*** tumbleweed has quit IRC21:05
*** bunnie[m] has quit IRC21:05
*** feig has quit IRC21:08
*** feig has joined #litex21:16
feigHas anyone built litedram on VC707? I noticed that the V7DDRPHY is there, and the SO-DIMM module is the same as the one used in KC705. So I basically copied the setting(clock freq, termination resistance) for KC705. But the memory initialization failed.21:17
daveshahI think an issue like this was discussed recently21:17
daveshahhttps://github.com/enjoy-digital/litex/issues/36121:18
tpbTitle: KC705 DDR3 calibration regression · Issue #361 · enjoy-digital/litex · GitHub (at github.com)21:18
feigThank you very much! that helps a lot21:20
*** tumbleweed has joined #litex21:23
*** bunnie[m] has joined #litex21:23
*** feig has quit IRC21:36
*** CarlFK has quit IRC21:39
*** mickdermack has joined #litex21:43
*** mickdermack has left #litex21:44
*** freemint has joined #litex21:47
*** rohitksingh has joined #litex22:29
*** rohitksingh has quit IRC22:51
*** freemint has quit IRC22:58
*** freemint has joined #litex22:58
*** rohitksingh has joined #litex23:00
*** rohitksingh has quit IRC23:16

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!