Friday, 2019-10-25

*** tpb has joined #litex00:00
mithrofutarisIRCcloud: Oh cool!00:03
mithrokgugala: See the above!00:03
mithro@futarisIRCcloud Awesome thanks!00:06
*** forksand has joined #litex00:06
forksand_florent_: I see the MAC set there, but the value there isn't what gets set on boot (linux-on-litex-vexriscv). Each time the FPGA is flashed, even with the same .svf, it will generate a new random MAC on boot.00:18
forksandthe "traditional" user space tools for this don't work either, fwiw. (`ip`, `macchanger` network/interfaces, etc)00:19
mithroforksand: This is with LiteEth?00:19
mithroforksand: I believe kgugala's team was working on Linux drivers for LiteEth so might have some insight into making that work -- it's probably just something missing from the driver?00:20
forksandmithro: ya, with LiteEth.00:22
mithroforksand: Likely the current driver doesn't do anything to set the mac address...00:24
forksandmithro: _florent_  I see that it gets set in LiteX when TFTP booting to the static value you pointed to in bios/boot.c.  But when the linux kernel boots up and the liteeth kernel module loads, it sets it to a random MAC, not the one in the bios.01:19
mithroforksand: Sorry, you have reached the limit of my surface level knowledge, I could probably dig into it but I'm afraid I don't have the time right now....01:19
mithrokgugala: https://github.com/litex-hub/linux-on-litex-vexriscv/issues/5301:24
tpbTitle: Persistent Files. (Nexys4DDR) · Issue #53 · litex-hub/linux-on-litex-vexriscv · GitHub (at github.com)01:24
john_k[m]futarisIRCcloud: interesting re Panologic G2 DDR2, although that's still using MIG03:06
john_k[m]"By lowering the clock from 300MHz to 125MHz, I was hoping to not need calibrated IOs (and thus no ZIO pin), and that's exactly how it worked out." coudl be helpful hint though03:07
*** lolsborn has joined #litex03:13
*** bonzibuddy has joined #litex03:34
bonzibuddyhey litex gurus - anyone around that has experience with the versa ecp5?  im super n00b and cant seem to get the thing to begin loading the prebuilt binaries... it just mucks around with the demo that came out of the box03:35
bonzibuddygonna RTFM but if anyone has quick pointers, i'd love to hear em!!03:36
bonzibuddyi've gotten as far as setting the jumpers as suggested - i get some pretty esoteric jtag errors on the make.py --load, and an unresponsive process when i try lxterm loading over serial03:40
bonzibuddyi suppose i should be more specific, this is all w.r.t. https://github.com/litex-hub/linux-on-litex-vexriscv03:46
tpbTitle: GitHub - litex-hub/linux-on-litex-vexriscv: Linux on LiteX-VexRiscv (at github.com)03:46
bonzibuddytrying some prjtrellis examples for now, hopefully that gets me on the right path04:12
mithroOh cool -- https://github.com/skiphansen/pano_progfpga04:46
tpbTitle: GitHub - skiphansen/pano_progfpga: Flashing Pano Logic G1 devices without a programmer (at github.com)04:46
mithrokgugala: https://github.com/skiphansen/pano_progfpga04:48
tpbTitle: GitHub - skiphansen/pano_progfpga: Flashing Pano Logic G1 devices without a programmer (at github.com)04:48
daveshahbonzibuddy: follow these jumper instructions https://github.com/SymbiFlow/prjtrellis/tree/master/examples/versa5g06:13
tpbTitle: prjtrellis/examples/versa5g at master · SymbiFlow/prjtrellis · GitHub (at github.com)06:13
daveshahIf you haven't already06:13
bonzibuddydaveshah you spooky bastard i just got that exact example working not 2 minutes ago06:14
bonzibuddyso the issue - i have a versa ECP5 board and not an ECP5G :) had to tweak the makefiles and some openocd conf files were also off06:14
bonzibuddyof curious note, my board has "ECP-5G" silkscreened on it, but the "-5G" is sharpied out.  weird.  anyways, thanks for digging that up for me!06:15
daveshahThere have been a few variants of the board06:16
bonzibuddyso to get the prjtrellis working, i had to specify a different arg to nextpnr-ecp506:25
bonzibuddyfrom --um5G-45k to --um-45k.  I'm having trouble figuring out where that equivalent is in linux-on-litex-vexriscv06:26
daveshahFor linux-on-litex-vexriscv you actually want --um45k and --speed 8 on the nextpnr command line06:26
daveshahOtherwise the timing results will be very pessimistic, less important for a blinky but more annoying for Linux06:27
daveshahI can't remember how to do that on the LiteX side either though06:27
bonzibuddyheh, ok.  thanks.  i imagine its in the litex-boards defs??06:27
bonzibuddypoking around now06:27
bonzibuddyplatforms/versa_ecp5.py:202 might e it06:29
bonzibuddywow, that did it06:35
bonzibuddysuccessful upload anyway06:36
bonzibuddy:D loading the image06:38
*** _franck_ has joined #litex06:50
*** forksand has quit IRC08:30
*** forksand has joined #litex08:45
*** freemint has joined #litex09:58
*** _franck_ has quit IRC11:34
somloforksand: re. liteeth linux driver, I think I've bumped into the same thing on 64bit Rocket (I "ported" the 32bit vexriscv linux driver to 64bit, and it's working well, except for the mac address thing you also encountered)13:34
somloattempts to read the mac address from hardware fail with a "load access fault", so I commented it out and went with the random on-the-fly alternative:13:35
somlohttps://github.com/gsomlo/linux/blob/gls-litex-rocket/drivers/net/ethernet/litex/litex_liteeth.c#L36813:35
tpbTitle: linux/litex_liteeth.c at gls-litex-rocket · gsomlo/linux · GitHub (at github.com)13:35
somloforgot all about it, was going to circle back and take a closer look later, unless it's one of those rare problems that just go away if I ignore it long enough :D13:36
*** CarlFK has joined #litex15:08
forksandsomlo: cool thx15:15
*** ironsteel has joined #litex15:25
*** ambro718 has joined #litex17:20

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!