proppy has joined #litex
freemint has joined #litex
_whitelogger has joined #litex
freemint has quit [Ping timeout: 265 seconds]
freemint has joined #litex
<xobs> Is there a recommended way to get litex working on a system without much room for a rom?
<xobs> On Fomu I hacked it by coming up with my own "bios" target and redirecting it, but that was painful to set up.
<xobs> Esden is porting litex to the icebreaker, and he'll run into the limitation now
<xobs> I 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.
esden has joined #litex
<esden> o/ :)
freemint has quit [Remote host closed the connection]
freemint has joined #litex
rohitksingh has quit [Ping timeout: 248 seconds]
<xobs> So 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.
<tpb> Title: litex-boards/icebreaker.py at icebreaker · xobs/litex-boards · GitHub (at github.com)
<xobs> I 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?
<_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 yes
<xobs> Okay, he's reported that it works, so that's what I'll stick with.
<xobs> The problem comes from the fact that `spiflash` is already at that offset, so I use that trick to avoid that conflict error.
<xobs> Also, it's at `0x1a000` from the start, which isn't block-aligned.
<_florent_> xobs: ok, i'm going to compare what you did with what we use on others designs for that
<xobs> It'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.
<tpb> Title: litex-buildenv/base.py at master · timvideos/litex-buildenv · GitHub (at github.com)
<_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.
<_florent_> xobs: but i agree this should be simplified
freemint has quit [Ping timeout: 248 seconds]
m4ssi has joined #litex
<mithro> _florent_ / xobs: That is something I would like to be solved too
<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 on
<xobs> mithro: 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.
<tpb> Title: LiteX SPI Flash Improvements - Google Docs (at docs.google.com)
<mithro> xobs: What was timing out?
<xobs> Ended up needing to switch to the `lite` core to get the BIOS to finish.
<xobs> mithro: 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.
<tpb> Title: litex/litex/soc/cores/spi at d7184b97494012a8c21ee93df231b758a61e9dec · mithro/litex · GitHub (at github.com)
<mithro> xobs: I agree that speeding up the core would be good too
<xobs> It would help both fomu and icebreaker.
<mithro> xobs: Putting the spiflash in a different clock domain (which is much faster) would be a big improvement
<mithro> xobs: Would it help for betrusted at all?
<xobs> mithro: 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.
<mithro> xobs: Interesting...
<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 it
<_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 things
massi_ has joined #litex
m4ssi has quit [Ping timeout: 265 seconds]
massi_ has quit [Remote host closed the connection]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 265 seconds]
rohitksingh has joined #litex
feig has joined #litex
tumbleweed has quit [*.net *.split]
bunnie[m] has quit [*.net *.split]
rohitksingh has quit [Ping timeout: 268 seconds]
feig has quit [Ping timeout: 260 seconds]
tumbleweed has joined #litex
bunnie[m] has joined #litex
feig has joined #litex
tumbleweed has quit [*.net *.split]
bunnie[m] has quit [*.net *.split]
feig has quit [Ping timeout: 260 seconds]
feig has joined #litex
<feig> Has 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.
<daveshah> I think an issue like this was discussed recently
<tpb> Title: KC705 DDR3 calibration regression · Issue #361 · enjoy-digital/litex · GitHub (at github.com)
<feig> Thank you very much! that helps a lot
bunnie[m] has joined #litex
tumbleweed has joined #litex
feig has quit [Ping timeout: 260 seconds]
CarlFK has quit [Quit: Leaving.]
mickdermack has joined #litex
mickdermack has left #litex ["The Lounge - https://thelounge.chat"]
freemint has joined #litex
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 265 seconds]
freemint has quit [Remote host closed the connection]
freemint has joined #litex
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 268 seconds]
tpb has quit [Remote host closed the connection]
tpb has joined #litex