_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://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
Degi has quit [Ping timeout: 250 seconds]
Degi has joined #litex
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
nickoe has quit [Quit: Client closed]
nickoe has joined #litex
_franck_ has quit [Ping timeout: 252 seconds]
FabM has joined #litex
FabM has joined #litex
FabM has quit [Changing host]
<_florent_> somlo: Good for the Fedora progress. Charles got his 64-bit NaxRiscv booting Debian, this could probably be a nice alternative to Rocket for your project (but it's optimized for 7-series for now, tests on ECP5 will have to be done)
<_florent_> minute: The RGMII PHY only works with a 1Gbps Switch/Port in front, so I would recommend making sure speed is negotiated at 1Gbps.
_franck_ has joined #litex
Brinx has quit [Remote host closed the connection]
FabM has quit [Ping timeout: 260 seconds]
Brinx has joined #litex
Brinx has quit [Ping timeout: 264 seconds]
FabM has joined #litex
FabM has joined #litex
FabM has quit [Changing host]
oter has quit [Remote host closed the connection]
oter has joined #litex
nickoe has quit [Quit: Client closed]
nickoe has joined #litex
_franck_ has quit [Ping timeout: 265 seconds]
<minute> _florent_: thanks for confirming. for some reason, i get only a 100mbit link at the moment. there's no way to make the phy work with 100 mbit, yes?
nickoe has quit [Quit: Client closed]
nickoe has joined #litex
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
<minute> _florent_: ok i swapped out the PHY chip and it works now with 1gbe
_franck_ has joined #litex
<minute> in linux i get > [ 293.997306] liteeth f0003000.mac eth0: LITEETH_READER_READY not ready
<minute> ah, dts issue
<minute> _florent_: are there any examples of OHCI host code i can copy? i now have a new revision of the kintex-7 module where i have USB DP/DN on fpga pads, plus a 1.5k pull resistor output (copied from valentyusb)
<minute> ah, i see there is USBOHCI
nickoe has quit [Quit: Client closed]
nickoe has joined #litex
Brinx has quit [Remote host closed the connection]
<somlo> gatecat: just for grins, I did a little experiment trying to build a fpu-capable litex+rocket for the ecpix5:
<somlo> litex-boards/litex_boards/targets/lambdaconcept_ecpix5.py --build \
<somlo> [ --yosys-abc9 --yosys-nowidelut ]
<somlo> --cpu-type rocket --cpu-variant fulld --sys-clk-freq 50e6 \
<somlo> --nextpnr-seed $RANDOM --nextpnr-timingstrict \
<somlo> --with-ethernet --with-sdcard \
<somlo> I'm trying to get fmax 50MHz (I suspect it's why the thing fails to properly train litedram). Here's the box plot of `nowidelut` vs. `abc9`:
<tpb> Title: Imgur: The magic of the Internet (at imgur.com)
<somlo> tldr -- `yosys-abc9` by itself (without `yosys-nowidelut`) results in the highest (40-ish MHz) fmax, when asking for 50
<somlo> I did 9 runs for each combination, so not a huge sample size, but still :)
<minute> hmm hmm i have the ohci controller from spinalhdl building in litex, but the dts generator is looking for if "usb_ohci_ctrl" in d["memories"]:
<minute> usb_ohci.py doesn't mention anything about CSRs...
<minute> it has a wishbone dma interface, i guess i have to map that into memory somehow
<somlo> gatecat: in case you can think of any additional "knobs" (on either yosys or nextpnr) I could be turning for extra optimizations; if not, take it as just a bunch of data points :)
<somlo> _florent_: does Charles have a write-up (maybe similar to linux-on-litex-rocket) with his litex build command line, dts, and whatever else he did to boot the OS?
<somlo> I could try to replicate that on one of my xilinx boards, then see how well it translates to ecpix5 and/or trellisboard with yosys/trellis/nextpnr
<somlo> honestly I'm not really stuck on rocket, if I can get a Free rv64gc design to boot fedora, I can declare victory, retire, become a consultant, whatever :)
<_florent_> minute: sorry, was away. Good the the Ethernet PHY
<_florent_> minute: it should be possible to get things working at 100mbps, but someone needs to have a look at it :) (haven't spent time on it yet)
<_florent_> minute: otherwise, for OHCI, I'm pretty sure this has been integrated in linux-on-litex-vexriscv recently, let me look
<_florent_> minute: looking at https://github.com/litex-hub/linux-on-litex-vexriscv/pull/293/files should allow you to see what needs to be done
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
<gatecat> somlo: I would investigate the flow3 stuff at https://github.com/Ravenslofty/yosys-cookbook/blob/master/ecp5.md
<gatecat> it's the best remaining knob I can think of
minute has quit [Ping timeout: 252 seconds]
minute has joined #litex
FabM has quit [Ping timeout: 268 seconds]
nickoe has quit [Quit: Client closed]
nickoe has joined #litex
<minute> _florent_: thank you, ohci works now! i have some new weirdness with the framebuffer, somehow there's address confusion. i will dig into it tomorrow. i've moved the framebuffer base to 0x4fc00000 (in soc.py). but i've noticed that writing to memory at 0x4fc00000 doesn't have any effect on the random pixels. but when i set the base address to 0x0fc00000 via videophy register poke, i can see those
<minute> changes in memory
<minute> (on screen)
_franck_ has quit [Ping timeout: 244 seconds]
_franck_ has joined #litex
slagernate has joined #litex
nickoe has quit [Quit: Client closed]
nickoe has joined #litex
Brinx has joined #litex
slagernate has quit [Quit: Client closed]
_franck_8 has joined #litex
_franck_ has quit [Ping timeout: 260 seconds]
_franck_8 is now known as _franck_
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex