*** tpb has joined #litex | 00:00 | |
*** st-gourichon-fid has quit IRC | 00:11 | |
*** st-gourichon-fid has joined #litex | 00:14 | |
*** bunnie has quit IRC | 00:28 | |
*** xobs has quit IRC | 00:28 | |
*** CarlFK[m] has quit IRC | 00:28 | |
*** bunnie has joined #litex | 00:30 | |
*** xobs has joined #litex | 00:35 | |
*** CarlFK[m] has joined #litex | 00:36 | |
*** simeonm has quit IRC | 00:56 | |
*** futarisIRCcloud has quit IRC | 01:31 | |
*** lambda has quit IRC | 01:46 | |
*** lambda has joined #litex | 02:04 | |
*** simeonm has joined #litex | 02:05 | |
*** lambda has quit IRC | 02:21 | |
*** Degi has quit IRC | 02:59 | |
*** Degi has joined #litex | 03:00 | |
*** lambda has joined #litex | 03:04 | |
*** CarlFK has joined #litex | 05:50 | |
*** peeps[zen] has joined #litex | 05:53 | |
*** peepsalot has quit IRC | 05:55 | |
*** peeps[zen] is now known as peepsalot | 06:10 | |
*** futarisIRCcloud has joined #litex | 07:06 | |
somlo | _florent_: https://github.com/enjoy-digital/litex/blob/master/litex/boards/targets/nexys4ddr.py#L107 | 11:50 |
---|---|---|
tpb | Title: litex/nexys4ddr.py at master 路 enjoy-digital/litex 路 GitHub (at github.com) | 11:50 |
somlo | one of those should be `args.with_sdcard` (without the `spi` part) | 11:50 |
_florent_ | somlo: thanks, that's fixed | 13:32 |
*** Skip has joined #litex | 14:43 | |
*** scanakci has quit IRC | 18:14 | |
somlo | anybody successfully built a mor1kx based soc on a nexys4ddr recently? | 18:47 |
somlo | and I mean *LiteX* soc, preferably from current upstream :) | 18:49 |
_florent_ | somlo: on my side i only tested it with lxsim recently, but could do the test tomorrow on the nexys4ddr | 18:57 |
_florent_ | somlo: is lxsim --cpu-type=mor1kx working? | 18:57 |
somlo | _florent_: `lxsim` doesn't work directly, but `litex/litex/tools/litex_sim.py --cpu-type=mor1kx` gets me all the way to a bios prompt. I can't actually interact with it (nothing happens when I type stuff into it), but that's further than I get on the fpga | 19:09 |
somlo | typing works when I use vexriscv instead of mor1kx, btw (in sim) | 19:10 |
_florent_ | ok, i'll do the test tomorrow | 19:15 |
CarlFK | bunnie: kgugala_ can someone get me a netv2 bitstream with some easy to verify behavior so I can figure out if my pi loading system here is working? | 19:45 |
bunnie | https://github.com/AlphamaxMedia/netv2-fpga/tree/master/production-images | 19:46 |
tpb | Title: netv2-fpga/production-images at master 路 AlphamaxMedia/netv2-fpga 路 GitHub (at github.com) | 19:46 |
bunnie | this has the production bitstream images, assuming you have the 35T version, use user-35.bit | 19:46 |
bunnie | if you load it, the green LED near the TX port should flash | 19:46 |
CarlFK | perfect | 19:47 |
bunnie | this LED will flash even if there is no firmware to load, it's tied to a hardware counter that divides down the crystal directly. | 19:47 |
CarlFK | bunnie: well... the led is already flashing. so .. about all this tells me is my attempts at loading kgugala_'s is failing. which I kinda guessed | 19:58 |
CarlFK | do you have something handy that doesn't flash the led? | 19:59 |
bunnie | the LED is already flashing? | 19:59 |
CarlFK | yes. I'm guessing is was shipped that way | 19:59 |
bunnie | oh right, because of the default bitstream already on the board | 19:59 |
bunnie | ah yah here's a way | 20:03 |
bunnie | on your board there is an ethernet connector | 20:03 |
bunnie | just north of it, to the right of the "PROG" button | 20:03 |
bunnie | there is a depopulated header that says "JTAG MODE" on it | 20:03 |
bunnie | jam a pair of tweezers in that, and hit the PROG button | 20:04 |
CarlFK | while it is powered? | 20:04 |
bunnie | you should see the LEDs go to a sort of dim-orange state as the FPGA GPIOs all go into tri-state and stays in an unprogrammed state waiting for a JTAG bitstream | 20:04 |
CarlFK | yes | 20:04 |
bunnie | yah, you can do it while it's powered on | 20:04 |
bunnie | punching the PROG button should make the FPGA latch the JTAG MODE pins and go into the wait-for-bitstream state | 20:07 |
bunnie | yah i just tried it here and that works | 20:07 |
CarlFK | bunnie: /home/pi/AlphamaxMedia/netv2-fpga/production-images/user-35.bit:4143: Error: unmatched "[" | 20:14 |
CarlFK | (pastbin off all the things coming up... | 20:14 |
bunnie | not sure what is producing this error? | 20:16 |
bunnie | is this the output of openocd or some shell script? | 20:17 |
CarlFK | https://paste.debian.net/1149450/ sudo ~/AlphamaxMedia/openocd/src/openocd -f ~/AlphamaxMedia/netv2-fpga/production-images/user-35.bit | 20:18 |
tpb | Title: debian Pastezone (at paste.debian.net) | 20:18 |
CarlFK | doh..neever mind | 20:18 |
CarlFK | I see my probelm | 20:19 |
bunnie | ah yep | 20:19 |
CarlFK | success! | 20:20 |
CarlFK | light off, light on. | 20:21 |
bunnie | great! | 20:21 |
bunnie | every journey of a million lines of code start with the blinking LED 馃檪 | 20:21 |
CarlFK | new angle of "turn it off and on again" | 20:22 |
CarlFK | bunnie: do you have some time to test this, tell us if it enumerates as a pci device? https://github.com/antmicro/netv2/tree/v4l2 | 20:38 |
tpb | Title: GitHub - antmicro/netv2 at v4l2 (at github.com) | 20:38 |
bunnie | unfortunately, i don't have a convenient setup to test PCI at the moment. | 20:39 |
CarlFK | k | 20:39 |
bunnie | one small gotcha -- you want to make sure you are specifying the correct bitstream loading mode if you're doing PCI. you have like...some 100ms or so...to respond to enumeration on boot. if you go with default bitstream generation options, the FPGA can take too long and it will fail to enumerate because of that delay | 20:40 |
bunnie | the tolerance to this delay depends on the system | 20:40 |
bunnie | so some people might see it, others might not | 20:41 |
bunnie | but this was a driving factor behind the choice of the SPI part, to make sure it could support a config mode that can roughly meet that timing requirement | 20:42 |
CarlFK | bunnie: oh right. also.. I forgot to flash while the linux box was at grub. | 20:46 |
CarlFK | I was doing that, and ... at some point fogot I needed to do that :p | 20:46 |
CarlFK | bunnie: for you todo list: pi 4. | 20:48 |
CarlFK | openocd says "loaded file top.bit..." but it didn't make the led flash | 20:50 |
CarlFK | so I'll stop using my pi 4. pi everywhere. | 20:51 |
bunnie | yah the pi 4 probably has a different "timing coefficient" required in the .cfg file | 20:56 |
CarlFK | more success!!! lspci 02:00.0 Memory controller: Xilinx Corporation Device 7021 | 20:58 |
CarlFK | kgugala_: woo!!! ^^^ | 20:58 |
bunnie | woohoo! | 20:58 |
bunnie | gratz | 20:58 |
CarlFK | :D | 20:59 |
kgugala_ | yaay | 20:59 |
*** scanakci has joined #litex | 20:59 | |
CarlFK | ok, onto Building and loading kernel module: | 21:00 |
CarlFK | kgugala_: why does this need IP/username ? | 21:04 |
kgugala_ | the instructions assumed that the test PC is different than the one you work on | 21:06 |
kgugala_ | when we were developing the FPGA gateware and drivers it was not so stable | 21:07 |
kgugala_ | so testing on a different machine was a natural choice | 21:08 |
CarlFK | got it | 21:12 |
CarlFK | kgugala_: kinda success - gst is displaying a skewed image of my pi | 21:39 |
* CarlFK[m] uploaded an image: 20200528_164050_502530674672938939.jpg (4286KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/JXqoNZszEnAsaDvAvzJeOXkc > | 21:41 | |
*** captain_morgan has quit IRC | 21:56 | |
*** captain_morgan has joined #litex | 21:57 | |
CarlFK | kgugala_: at a minimum, can you make the default localhost/$USER | 22:11 |
CarlFK | and do you think the remote stuff is still needed? | 22:11 |
awordnot | got my CLE-215 up and running (with the world's worst JTAG cable) :D https://imgur.com/a/Aar75hL | 22:14 |
tpb | Title: Imgur: The magic of the Internet (at imgur.com) | 22:14 |
awordnot | next step: play with litepcie | 22:14 |
CarlFK | kgugala_: how do I connect to the console? | 23:14 |
futarisIRCcloud | awordnot: It's not the worst JTAG cable. Poor's man programmer for FOMU: https://github.com/im-tomu/fomu-hardware/tree/master/hacker | 23:56 |
tpb | Title: fomu-hardware/hacker at master 路 im-tomu/fomu-hardware 路 GitHub (at github.com) | 23:56 |
awordnot | futarisIRCcloud: ha, I stand corrected! | 23:57 |
awordnot | that is delightfully terrible | 23:57 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!