Thursday, 2022-09-15

*** tpb <[email protected]> has joined #litex00:00
*** Degi <[email protected]> has quit IRC (Ping timeout: 250 seconds)00:28
*** Degi <[email protected]> has joined #litex00:29
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)04:23
*** TMM_ <[email protected]> has joined #litex04:23
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)05:51
*** nickoe <[email protected]> has joined #litex05:52
*** _franck_ <[email protected]> has quit IRC (Ping timeout: 252 seconds)06:24
*** FabM <FabM!~FabM@2a03:d604:103:600:2e60:8c7c:e8fb:7990> has joined #litex06:27
_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) 06:42
_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.06:43
*** _franck_ <[email protected]> has joined #litex07:38
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)07:53
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 260 seconds)07:57
*** Brinx <[email protected]> has joined #litex08:21
*** Brinx <[email protected]> has quit IRC (Ping timeout: 264 seconds)08:26
*** FabM <FabM!~FabM@2a03:d604:103:600:2e60:8c7c:e8fb:7990> has joined #litex09:02
*** oter <oter!5e7a0135f3@2604:bf00:561:2000::25f> has quit IRC (Remote host closed the connection)09:15
*** oter <oter!5e7a0135f3@2604:bf00:561:2000::25f> has joined #litex09:18
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)09:57
*** nickoe <[email protected]> has joined #litex09:58
*** _franck_ <[email protected]> has quit IRC (Ping timeout: 265 seconds)10:07
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? 10:19
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)10:36
*** nickoe <[email protected]> has joined #litex10:36
*** Brinx <[email protected]> has joined #litex10:57
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)11:01
*** Brinx <[email protected]> has joined #litex11:03
minute_florent_: ok i swapped out the PHY chip and it works now with 1gbe11:19
*** _franck_ <[email protected]> has joined #litex11:23
minutein linux i get > [  293.997306] liteeth f0003000.mac eth0: LITEETH_READER_READY not ready11:42
minuteah, dts issue11:47
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)12:11
minuteah, i see there is USBOHCI12:16
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)12:24
*** nickoe <[email protected]> has joined #litex12:24
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)12:32
somlogatecat: just for grins, I did a little experiment trying to build a fpu-capable litex+rocket for the ecpix5:13:09
somlolitex-boards/litex_boards/targets/lambdaconcept_ecpix5.py --build \13:10
somlo     --cpu-type rocket --cpu-variant fulld --sys-clk-freq 50e6 \13:10
somlo     --with-ethernet --with-sdcard \13:10
somlo     --nextpnr-seed $RANDOM --nextpnr-timingstrict \13:10
somlo     [ --yosys-abc9 --yosys-nowidelut ]13:10
somlo(also at https://pastebin.com/LCwjhR3K)13:10
somloI'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`:13:11
somlohttps://imgur.com/a/IQftIDa13:11
tpbTitle: Imgur: The magic of the Internet (at imgur.com)13:11
somlotldr -- `yosys-abc9` by itself (without `yosys-nowidelut`) results in the highest (40-ish MHz) fmax, when asking for 5013:12
somloI did 9 runs for each combination, so not a huge sample size, but still :)13:12
minutehmm 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"]:13:18
minuteusb_ohci.py doesn't mention anything about CSRs...13:18
minuteit has a wishbone dma interface, i guess i have to map that into memory somehow13:19
somlogatecat: 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 :)13:19
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?13:20
somloI 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/nextpnr13:21
somlohonestly 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 :)13:23
minuteahh, here's an usb host integration example https://github.com/litex-hub/litex-boards/blob/cf030402d496102005161023b8d27123546ae53d/litex_boards/targets/machdyne_schoko.py#L13213:27
_florent_minute: sorry, was away. Good the the Ethernet PHY14:16
_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)14:17
_florent_minute: otherwise, for OHCI, I'm pretty sure this has been integrated in linux-on-litex-vexriscv recently, let me look14:17
_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 done14:19
*** Brinx <[email protected]> has joined #litex14:25
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)15:14
gatecatsomlo: I would investigate the flow3 stuff at https://github.com/Ravenslofty/yosys-cookbook/blob/master/ecp5.md15:57
gatecatit's the best remaining knob I can think of15:57
*** minute <[email protected]> has quit IRC (Ping timeout: 252 seconds)16:05
*** minute <[email protected]> has joined #litex16:07
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 268 seconds)16:15
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)16:36
*** nickoe <[email protected]> has joined #litex16:37
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 those16:53
minutechanges in memory16:53
minute(on screen)16:53
*** _franck_ <[email protected]> has quit IRC (Ping timeout: 244 seconds)18:03
*** _franck_ <[email protected]> has joined #litex18:05
*** slagernate <[email protected]> has joined #litex19:11
*** nickoe <[email protected]> has quit IRC (Quit: Client closed)19:49
*** nickoe <[email protected]> has joined #litex19:49
*** Brinx <[email protected]> has joined #litex20:24
*** slagernate <[email protected]> has quit IRC (Quit: Client closed)22:21
*** _franck_8 <[email protected]> has joined #litex22:40
*** _franck_ <[email protected]> has quit IRC (Ping timeout: 260 seconds)22:42
*** _franck_8 is now known as _franck_22:42
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)23:22
*** TMM_ <[email protected]> has joined #litex23:23

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