_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://freenode.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
lf has quit [Ping timeout: 260 seconds]
lf_ has joined #litex
tpb has joined #litex
kgugala has joined #litex
kgugala has quit [Ping timeout: 244 seconds]
kgugala has joined #litex
scanakci has quit [Quit: Connection closed for inactivity]
ambro718 has quit [Ping timeout: 260 seconds]
atommann has joined #litex
Degi has quit [Ping timeout: 265 seconds]
Degi_ has joined #litex
Degi_ is now known as Degi
Swimming1ode has quit [Ping timeout: 260 seconds]
SwimmingCode has joined #litex
jaseg has quit [Ping timeout: 260 seconds]
jaseg has joined #litex
FFY00 has quit [Ping timeout: 246 seconds]
FFY00 has joined #litex
m4ssi has joined #litex
m4ssi has quit [Remote host closed the connection]
kgugala_ has joined #litex
kgugala has quit [Read error: Connection reset by peer]
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 264 seconds]
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 246 seconds]
<benh> _florent_: hola ! do you happen to know which one is pin 2 on the picoezmate connector ? (the jtag one for the acorn)
<benh> the pin on the flash side or tthe pin on the side of the other pico (P2) ?
atommann has quit [Remote host closed the connection]
atommann has joined #litex
<benh> if you don't know I'll dig out the multimeter... it's just in a box between offices right now
<zyp> I asked the same question a couple of weeks ago :)
<zyp> 12:06:26 < zyp> wiring up jtag to my cle-215 now, can somebody confirm which end of the connector is pin 1?
<zyp> 12:15:33 < zyp> nevermind, I measured it out, pin 1 is closest to the m.2 connector edge
ambro718 has joined #litex
<benh> zyp: hehe, so towards the flash chip
<benh> with my phone zooming I can see a faint triangle pointing at it which I can't see with my bare eyes so that's matches :)
<benh> probably too tired to do a half decent soldering job tonight tho
kgugala has joined #litex
kgugala_ has quit [Read error: Connection reset by peer]
_whitelogger has joined #litex
<benh> allright, time to try this thing out, jtag seems to work
<benh> $ ./acorn_cle_215.py --build --with-pcie --driver
<benh> litex.build.generic_platform.ConstraintError: Resource not found: serial:None
<benh> (skipped the backtrace)
<benh> I must be missing something...
<benh> ah --uart-name=crossover... should be default for acorn
<benh> on another note, how does litex --load or --flash work ? openocd ? How do I teach it about my hacked up FTDI JTAG cable ?
<benh> I've hacked up xc3sprogs...
<_florent_> benh: yes we should improve default/unsupported config, i have ideas on it but need to work on others things first
<benh> _florent_: we need a PCI vendor ID :-)
<benh> or ask a vendor to donate us a few device IDs ;-)
<benh> interesting, the horrid fan on that thing speeds up during programming... I thought it was running at a fixed speed of the 3.3v rail..
<_florent_> benh: it's indeed probably controlled by one IO with a PWM
<benh> ok, I'll look at the schematics again later
<benh> what is that litex_server referenced on the github issue ?
<zyp> schematics says fan gets fixed 3.3V
<tpb> Title: litex/litex_server.py at master · enjoy-digital/litex · GitHub (at github.com)
<benh> zyp: thanks
<benh> zyp: yeah that's what I thought I remembered... but the fans definitly zip up when programming
<benh> and a tiny bit on host reboot
<benh> haven't managed to talk to the uart yet but I see the LEDs dancing so it's working :-)
<zyp> that sounds worrying, could be a sign the power supply from the slot is not very well regulated
<benh> zyp: possibly ... it's a PCIe cable card (one of those cheap one that uses a USB cable), it gets power via a SATA power cable
<benh> it's a temporary setup... I'll put the toy in a proper slot at some point on a test system
<benh> that I can remotely turn on/off
<zyp> ah
<benh> I'll probably run a UART on P2 as well, it's 3.3v and my FTDI toy has 2 channels
<benh> so it can do UART on the one that isn't doing JTAG
<benh> (afaik the FTDI 2232H is 3.3V IOs and I don't think that ClickUSB thingy has any voltage conversion)
<benh> _florent_: your kernel driver doesn't build against 5.7 :-)
<benh> it's missing #include <linux/poll.h> and #include <linux/cdev.h>
<_florent_> benh: possible, i'm still on an old kernel
<tpb> Title: Kernel driver improvements by sergachev · Pull Request #33 · enjoy-digital/litepcie · GitHub (at github.com)
<tpb> Title: Kernel driver improvements by sergachev · Pull Request #33 · enjoy-digital/litepcie · GitHub (at github.com)
<benh> allright, it works
<benh> :-)
<benh> I have the vexriscv console, I'll play with microwatt and clean up my setup later
<_florent_> but with #33 there is still an issue when unloading, so it's not yet merged
<benh> _florent_: ah that PR has the fix for the missing includes
<benh> I could help if I had a bit more time ... maybe ask joel ?
<zyp> benh, I'm planning to play with usb over P2 eventually
<benh> the little spare time I have I want to spend in integrating our interrupt controller in litex
<benh> and maybe finally spend time on the CSR accessor business
<benh> zyp: ok
<benh> do those Artix support partial reconfig ?
<zyp> AFAIK yes
<benh> dunno if that's something mere mortals like us can use but it would be nice to have a fixed PCIe UART + management
<benh> and be able to use that to reprogram whatever we hack on
<benh> to avoid the jtag cable etc...
<benh> that said I know nothing about how you practically use partial reconfig
<benh> zyp: keep the USB thing optional, I don't want to accidentally fry something with my UART attached to it :-)
<benh> isn't USB 5V ?
<_florent_> benh: sure no problem, that was just for info, i haven't been able to look at it yet
<zyp> benh, VBUS is 5V but signalling is 3.3V
<benh> zyp: ah ok
<benh> allright, bed time ! at least the toy works ! I though I'd never get it, it took 2 month to arrive
<benh> Fabien (the seller in France) had given up and refunded me !
<benh> I'm too nice, I sent him his money back via paypal :)
<benh> this is the best bargain you can get for such a big Artix I reckon !
<benh> there's a guy on evblog talking of doing a base board to host it that would provide a PCIe clock and a host slot
<zyp> yeah, mine also took over a month
<benh> _florent_: I'm thinking ...maybe mithro can get us some PCI device IDs...
<benh> _florent_: we could do simpler than DT initially maube ... a little ROM that has the CSR "base" and a table of 8-bit IP "ID" (0 = nothing, 1 = UART etc..)
<benh> or something simple like that
<benh> a full DT would be better but runtime DT innjection in Linux isn't really a thing yet
<benh> from there the driver would pop sub-devices for the various functions on the card exposed to PCIe and match them against the exact same driver we would use for native litex SoCs
<benh> anyway, food for thoughts
<benh> cia
atommann_ has joined #litex
atommann has quit [Read error: Connection reset by peer]
atommann_ has quit [Quit: Leaving]
<somlo> _florent_: interesting... with SDCARD_MULTIPLE_BLOCK_SUPPORT undefined, the standard upstream (i.e., not linux-on-litex-vexriscv) build doesn't hang, and instead loads *very* *slowly* (testing w. nexys4ddr & rocket)
<somlo> got lost in the sauce trying to compare what is being built with linux-on-litex-vexriscv vs. the default upstream. Maybe I should compare the csv files, but not sure that's all there is to it in terms of side-by-side comparison
<somlo> anyway, I gotta go afk for a few hours, during which I'll see if the blob actually loads without corruption :)
<_florent_> somlo: with SDCARD_MULTIPLE_BLOCK_SUPPORT undefined, it should be at least as fast as SPI mode
mntmn has joined #litex
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 264 seconds]
kgugala_ has quit [Read error: Connection reset by peer]
kgugala has joined #litex
kgugala has quit [Read error: Connection reset by peer]
kgugala has joined #litex
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 244 seconds]
<_florent_> somlo: if you have time, i would be interested by some feedback with uptstream litesdcard/litex
<_florent_> somlo: the gateware changes should alsmost be done, i'll continue on next monday
<mithro> benh: Are you suggesting that Google could donate some? I feel like it might be easier to get IBM to do so? :-P
<mithro> But if you do actually have a concrete request I can look into it
HoloIRCUser has joined #litex
<somlo> _florent_: the mystery as far as I'm concerned is what (and how to narrow it down precisely) is the difference between an upstream nexys4ddr.py build (with vexriscv) and a make.py nexys4ddr build in linux-on-litex-vexriscv... I get lost in the python inheritance relationships, but that's where I'm sure we (I) will find why the latter works (and fast), while the former hangs...
FFY00 has quit [Ping timeout: 256 seconds]
FFY00 has joined #litex
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 264 seconds]
st-gourichon-fid has quit [Ping timeout: 246 seconds]
m4ssi has joined #litex
kgugala has quit [Quit: -a- Connection Timed Out]
kgugala has joined #litex
m4ssi has quit [Remote host closed the connection]
npcomp has quit [Remote host closed the connection]
satnav has joined #litex
<satnav> Hello, I have SPI flash populated in my evaluation board with ICE40HX1K as FPGA. I did SPI flash XiP according to the example in icebreaker.py example but I have issues when I running my soc python script and let LiteX build it. it fails in bios linking phase.
<satnav> these are the error
<satnav> riscv64-unknown-elf-ld: ../libbase/libbase-nofloat.a(progress.o): in function `show_progress':/home/barakg/playground/litex/litex/litex/soc/software/libbase/progress.c:44: undefined reference to `__muldi3'/home/barakg/playground/litex/litex/litex/soc/software/bios/Makefile:68: recipe for target 'bios.elf' failed
<satnav> can someone tell me why it fails or encounter with this problem and knows how to solve it?
<satnav> this is the code https://pastebin.com/KT7ByQ8T
<tpb> Title: #!/usr/bin/env python3 import argparse import os from migen import * fro - Pastebin.com (at pastebin.com)
<satnav> thanks!
<somlo> _florent_: with litesdcard b55de0e and litex 2bfa372b, I get fast loading of boot.bin from sdcard with vexriscv (linux variant)
<somlo> doesn't yet work well with rocket -- there's some weird slowness with outputting progress on boot.bin. Probably some 32 vs 64 bit thing, I'll try to figure it out over the weekend
<satnav> there's an option or flag to compile only the bios?
<satnav> without the gateware
satnav has quit [Ping timeout: 245 seconds]
HoloIRCUser2 has joined #litex
HoloIRCUser has quit [Ping timeout: 272 seconds]
<benh> mithro: not at this point, but if LiteX SoCs as PCIe slaves is something that potentially takes off, we might want to see if we can snag an ID from somebody
<benh> might even be in the LF/RH space
<benh> as long as it's one and we have another mechanism on top for the device to self-describe
lf_ has quit [Ping timeout: 256 seconds]
lf has joined #litex