Friday, 2020-05-15

*** tpb has joined #litex00:00
CarlFKkgugala: riscv64-unknown-elf-ld: cannot find ../build/software/libbase/crt0-vexriscv-ctr.o: No such file or directory00:36
CarlFKhttp://paste.ubuntu.com/p/b3SS3zqj7S/00:37
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)00:37
CarlFKoh hey, that doesn't matter: make: Nothing to be done for 'gateware/build'.00:55
CarlFKbuild/gateware/top.bit is on the pi attached to the netv2 - any guess how I flash ?01:01
*** _whitelogger has quit IRC01:08
*** Skip has quit IRC01:23
*** _whitelogger has joined #litex01:26
*** Degi has quit IRC03:25
*** Degi has joined #litex03:27
scanakci_florent_: I noticed that I did not push some files to black-parrot repo due to gitignore structure. Can you please accept this PR (https://github.com/enjoy-digital/black-parrot/pull/2) to fix the issue. Hopefully, this will complete BP simulation and synthesis issues :). I will try again and let you know if everything works fine on my side.04:43
tpbTitle: Missing files due to gitignore by scanakci · Pull Request #2 · enjoy-digital/black-parrot · GitHub (at github.com)04:43
benh_florent_: for running Linux in microwatt in LiteX, we'll have to also bring a XICS model to LiteX (the powerpc interrupt controller)07:30
benh_florent_: we could either wrap the microwatt VHDL or re-implement it... though that probably means that we weon't have whatever LiteX uses normally for interrupts07:31
benh_florent_: something I can look into at some point07:31
benh(the one we have in microwatt is a very cut down version of the XICS which is the previous generation powerpc one... the latest one, XIVE, found in POWER9 is a giant monster)07:32
*** tommythorn has joined #litex08:03
tommythornGreetings.  Anyone with an NeTV2 board around?  I have a mundane confusion: how do you program it?  ISTM it should be possible to drive the JTAG directly from the attached Raspberry Pi08:04
*** captain_morgan has quit IRC09:12
*** captain_morgan has joined #litex09:12
*** futarisIRCcloud has quit IRC09:17
xobsThere was a build failure today with Fomu, but it's probably due to something I did I shouldn't have done.09:43
xobsFomu has its own `system.c` that's adapted from the litex one.  In there, there's a function defined `static inline void warmboot_to_image()` that calls `reboot_ctrl_write()`.  But it was failing because `csr.h` now includes `system.h`, so the `reboot_ctrl_write()` function was never visible.09:44
xobsIt's my fault for putting that function there.  But it just goes to show you how complex these systems are, and how they can fail in surprising ways.09:45
CarlFKtommythorn: https://logs.timvideos.us/%23litex/%23litex.2020-05-14.log.html#t2020-05-14T07:04:3511:09
tpbTitle: Thursday, 2020-05-14 (at logs.timvideos.us)11:09
CarlFK"plug into an RPi so you can use openOCD..."11:09
CarlFKI have checked out https://github.com/enjoy-digital/netv2.git,  openocd, top.bit on pi plugged into netv212:14
CarlFKand no idea how to drive openocd. help help.12:14
*** futarisIRCcloud has joined #litex12:26
*** Skip has joined #litex13:15
_florent_CarlFK: in https://github.com/enjoy-digital/netv2, the NetV2 is expected to be plugged the RPI and programmed with it14:08
_florent_on the RPI, you need to install OpenOCD and LiteX14:08
_florent_you can use this openocd: https://github.com/enjoy-digital/openocd14:09
tpbTitle: GitHub - enjoy-digital/openocd: Spens Official OpenOCD Mirror (no pull requests) (at github.com)14:09
CarlFK_florent_: Openocd installed.  how would I know if litex is installed?14:09
_florent_CarlFK: you can try to run ./netv2.py --load14:10
_florent_it will execute this: https://github.com/enjoy-digital/netv2/blob/master/netv2.py#L298-L30214:10
tpbTitle: netv2/netv2.py at master · enjoy-digital/netv2 · GitHub (at github.com)14:10
CarlFK_florent_:   guessing this means it is not installed (or not in PYTHONPATH) ImportError: No module named 'migen'14:12
CarlFKbut I do see ./code/netv2-fpga/deps/migen14:12
CarlFKthis pi was setup to ... 'work with' netv2 (whatever work with means...)14:13
CarlFKhow do I install litex?14:14
*** FFY00 has quit IRC14:20
*** FFY00 has joined #litex14:23
*** FFY00 has quit IRC14:27
*** FFY00 has joined #litex14:28
_florent_CarlFK: you can avoid installing LiteX, but you will need so call openocd manually14:42
_florent_create a script like this one: https://github.com/enjoy-digital/litex/blob/master/litex/build/openocd.py#L19-L2614:42
tpbTitle: litex/openocd.py at master · enjoy-digital/litex · GitHub (at github.com)14:42
_florent_and run the equivalent command: https://github.com/enjoy-digital/litex/blob/master/litex/build/openocd.py#L2614:43
tpbTitle: litex/openocd.py at master · enjoy-digital/litex · GitHub (at github.com)14:43
_florent_CarlFK: if you want to install LiteX, you can follow step 2 here: https://github.com/enjoy-digital/litex/blob/master/litex/build/openocd.py#L2614:44
tpbTitle: litex/openocd.py at master · enjoy-digital/litex · GitHub (at github.com)14:44
CarlFK_florent_: your last paste .. isn't right14:45
_florent_ah sorry14:45
_florent_https://github.com/enjoy-digital/litex/wiki/Installation14:45
tpbTitle: Installation · enjoy-digital/litex Wiki · GitHub (at github.com)14:45
CarlFKlet me guess: new FireFox where the URL bar is 'better'14:45
_florent_new FireFox indeed, but not sure what i did :)14:50
*** FFY00 has quit IRC15:54
*** FFY00 has joined #litex15:55
tommythornThanks Carl.  I found this which seems to be pointing the right direction: https://github.com/enjoy-digital/netv2/blob/master/openocd/openocd.cfg16:06
tpbTitle: netv2/openocd.cfg at master · enjoy-digital/netv2 · GitHub (at github.com)16:06
tommythornMy OrangeCrab is a r0.1 with a 85F, so I had to build my own config (trivial once you know how).  It starts up fine and initializes the memory. Then lxterm proceeds to load the prebuilt-Linux images (for a long time).  Alas, after --==== Liftoff! ====-- ... nothing.  Suggestions?16:09
*** scanakci has quit IRC16:16
CarlFK_florent_: ./litex_setup.py init install --user ... ImportError: No module named 'markupsafe'16:24
somloso my boss has offered to buy me a new fpga dev board as a consolation prize for having me work on unrelated stuff for $DAYJOB :) And I don't think they meant I can actually splurge on something like this: https://store.digilentinc.com/netfpga-sume-virtex-7-fpga-development-board/ :)16:31
tpbTitle: NetFPGA-SUME Virtex-7 FPGA Development Board - Digilent (at store.digilentinc.com)16:31
Findethe SUME is really a beautiful board16:31
somloso I'm wondering between a genesys2 (kintex, 1GB RAM) and a nexys4video (artix7, 512MB). Which one of them is more likely to have nextpnr_xilinx support first ? :)16:32
somloFinde: it has sodimm slots, which would take care of my resident-ram sufficient to run yosys problem :)16:32
daveshahnexys4video, probably16:32
daveshahGetting HPIO working on Genesys would be a bit more work on the prjxray side16:33
somlobut asking for 6K USD for a side project is not something I want to get turned down on :)16:33
daveshahThe ZCU104 has a SODIMM and nextpnr support16:33
daveshahbut not open bitstream generation at the moment16:34
daveshahMight be out of budget, too16:34
somlodaveshah: thanks, nexys4video it is (I can always try to guilt trip them into getting me another one in another 6-12 months :D )16:34
tommythornThis is probably the most !/$ you'll find in a long time: https://twitter.com/enjoy_digital/status/1257985111469015040?s=2016:34
FindeI do love the genesys216:36
Findewe have about 15 of them16:36
tommythorn(I haven't checked if it can be used with and a $$$ license from Xilinx)16:36
daveshahNo license needed for any Artix-7 devices16:36
tommythorn(Mashing that buy button ...)16:37
somlomy uni has a vivado site license, so that's not a concern -- however I wouldn't bother with anything that doesn't have at least a decent chance of being supported by yosys/nextpnr eventually16:37
somlomy whole *thing* is "self-hosting", anything else is a distant lower priority :)16:38
Findethe G2 really has it all16:38
Finde(genesys2 I mean)16:38
FindeI can't wait for it to be supported by the open tools16:38
daveshahIt should be supported eventually16:39
somloso the zcu104 is a Zynq based board (the hybrid fabric + hard-IP ARM CPUs)16:44
somlocan one access the RAM directly from the fabric if the ARM cores are left unused?16:45
somlohmm, I found the zcu104.py platform file in litex-boards, and there seem to be ddram pads, so that's promising16:47
somlolooking at the board manual, there's "PL-side" for the SODIMM (up to 4GB), and "PS-side" 2GB of soldered-on memory. Wondering what PS vs. PL means...16:54
john_k[m]Programmable Logic vs Processing System (?)16:55
john_k[m]the ARM cores have a hard IP DDR controller, the FPGA side you have to instantiate one to access the DDR there16:57
john_k[m]but PL can also access PS DDR through AXI (I think)16:57
somloright, you have to spin up your arm cores and have them access the PS DDR for you16:57
somloand it appears it's actually the SODIMM that's connected to the fabric, up to 4GB, nice!17:00
daveshahYeah, the SODIMM is on the fabric17:21
daveshahYou can totally ignore the ARM core, although the best way to get a network would be to route it through the ARM17:21
somloanother group at where I work is looking to join a project that uses zcu104 boards, so maybe if I help them out a bit I can scavenge a board when they get bored with them... So it's now down to nexys4video vs. genesys2 (with likelihood of foss toolchain as the first priority, and ram size as a close second, favoring the G2)18:17
somlodecisions, decisions... :D18:17
somlofirst world problems :)18:17
*** sconklin has joined #litex18:20
*** tommythorn has quit IRC19:07
*** Skip has quit IRC19:08
Findedaveshah: can you swap out the DIMMS on Alveo boards like the one you have?19:14
daveshahYes19:28
daveshahNeed to take off the cover but its only a couple of screws19:29
*** FFY00 has quit IRC19:34
Findeok awesome19:38
Findewe're considering buying one to use alongside our Bittware XUPP3R19:38
Findemy other question was can you use it without being connected to the host with PCIe? does it come with a different JTAG cable or something?19:39
daveshahYes there is a micro USB for JTAG and UART via FT2232H19:39
daveshahThe only downside with these boards is that there is a slightly opaque BMC chip and no full schematics19:39
daveshahe.g. I wanted to blink an LED but couldn't because the BMC seemed to have taken control of the LEDs19:40
daveshahThe best documentation for these boards (the Alveu U200/U250 and VCU1525 are effectively the same) is an old VCU1525 manual19:40
daveshahhttps://www.manualslib.com/manual/1329175/Xilinx-Vcu1525.html19:40
tpbTitle: XILINX VCU1525 USER MANUAL Pdf Download. (at www.manualslib.com)19:40
john_k[m]an FPGA card with a BMC? Like Board Management Controller?19:42
daveshahYes, a MSP432 micro19:42
daveshahIt doesn't do much fancy, just keeps an eye on temperatures etc and configures the power supply chips19:42
john_k[m]huh, interesting. I had not heard of that19:42
john_k[m]makes sense19:43
daveshahI think it is possible to read out ID and temperature over SMBus if you have a board that connects it19:43
daveshahSome of the really fancy Xilinx UltraScale devkits have a 7-series Zynq as BMC19:43
Findeok thanks that's useful19:46
Findeyeah I thought it was basically the vcu152519:46
Findewe wanted to buy one but it was exactly the point between them discontinuing vcu1525 and the u2xx not being at volume19:47
Findeso we're reevaluating now19:47
Findewould also be good to use the same board you're trying to support with litedram since that's what we're working on too19:47
Findexupp3r had some quirks19:47
*** CarlFK has quit IRC20:17
_florent_Finde: i should also receive a VCU1525 in the next days (the mining version: BCU1525)20:18
_florent_daveshah: i was doing a quick test with the extract_xdc_pins.py script with the .xdc from the u250 but it does not seem to work correctly, should it just work with the un-modified .xdc?20:21
daveshahNo you need to remove the non-UTF-8 copyright symbol20:22
daveshahThis is the XDC I was using with it https://usercontent.irccloud-cdn.com/file/uq5J999L/alveo-u250-xdc.xdc20:22
_florent_ok thanks20:24

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