_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]
tpb has joined #litex
<somlo> _florent_, sajattack[m]: how do you guys format your sdcard? I used parted on linux to create a 2G fat16, then `mkdosfs -F 16 /dev/sdb1` to create the filesystem, then I copied two files (top.bit and boot.bin) to it (64bit rocket only needs one file, the BBL, which contains dt, kernel, and everything). Here's what I get when I try to boot it: https://pastebin.com/qmWzFGDX
<tpb> Title: litex> spisdcardboot SD Card via SPI Initialising Reading MBR Partition 1 Inf - Pastebin.com (at pastebin.com)
<sajattack[m]> I used gparted
tnt has joined #litex
tnt has left #litex [#litex]
rjeschmi has joined #litex
<rjeschmi> looking for some help with examples of dual LiteEthPHYRGMIIs (if it is even possible)
<rjeschmi> I don't really need them to do anything right now, but litex seems to rename the conflicting clock domains automatically
<rjeschmi> I worked around that, but it failed at the very end anyway (shared cell issue, or something I can probably reproduce it, but I'm not sure it was a sane thing to do anyway)
<somlo> sajattack[m]: what size partition ?
<sajattack[m]> 4G
<somlo> wait, does fat16 support that?
<sajattack[m]> Yeah
scanakci has joined #litex
<somlo> sajattack[m]: turns out the FAT datastructures were using 'unsigned long' to mean 4 bytes, which is only true on 32-bit CPUs (should be 'unsigned int' for portability to 64bit Rocket) -- see https://github.com/enjoy-digital/litex/pull/433
<tpb> Title: Support SPI-mode SDCard booting on Litex+Rocket (64bit) configuration by gsomlo · Pull Request #433 · enjoy-digital/litex · GitHub (at github.com)
<sajattack[m]> oh interestin
<sajattack[m]> good ol' C variable width types
<somlo> got it booting on 64-bit Rocket Chip enabled Litex -- \o/ :)
<sajattack[m]> sweet
Degi_ has joined #litex
Degi has quit [Ping timeout: 264 seconds]
Degi_ is now known as Degi
CarlFK has quit [Ping timeout: 250 seconds]
<rjeschmi> somlo: sounds cool
bubble_buster has joined #litex
CarlFK has joined #litex
gregdavill has joined #litex
Xark has quit [Ping timeout: 265 seconds]
Xark has joined #litex
_whitelogger has joined #litex
_whitelogger has joined #litex
HoloIRCUser has joined #litex
dasdgw42 has quit [Ping timeout: 272 seconds]
gregdavill has quit [Quit: Leaving]
RaYmAn_ is now known as RaYmAn
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
peeps[zen] has joined #litex
peepsalot has quit [Ping timeout: 264 seconds]
peepsalot has joined #litex
peeps[zen] has quit [Ping timeout: 240 seconds]
<rjeschmi> _florent_: sure I'll do that when I wake up. Thanks. I don't really know litex or migen well.
<rjeschmi> The only code I found kind of interesting was a dual HDMI in hdmi2usb
scanakci has quit [Quit: Connection closed for inactivity]
<rjeschmi> _florent_: it seems like my problem is that they have a shared RESET pin, but are in two different clock domains
<rjeschmi> ERROR: Cell 'eth0_rst_n$tr_io' cannot be bound to bel 'X0/Y47/PIOD' since it is already bound to cell 'eth1_rst_n$tr_io'
<rjeschmi> I'll keep poking at it though
<daveshah> Sounds like it is creating two resets with the same physical pin
<tpb> Title: litex-boards/colorlight_5a_75b.py at master · litex-hub/litex-boards · GitHub (at github.com)
<rjeschmi> looking at rst_n for the two eths
futarisIRCcloud has joined #litex
<rjeschmi> if there happens to be other examples out there of this it might help to me to learn a bit.
<rjeschmi> I'm making some progress anyway
m4ssi has joined #litex
<rjeschmi> I commented out the shared pins just to see if I could get it to compile. It did. I am pushing the svf to see if it will function now :)
<rjeschmi> These don't seem to be in an "eth" clock domain, so it must be something else related to how they are defined
m4ssi has quit [Remote host closed the connection]
m4ssi has joined #litex
HoloIRCUser1 has joined #litex
HoloIRCUser has quit [Ping timeout: 256 seconds]
m4ssi has quit [Remote host closed the connection]
CarlFK has quit [Ping timeout: 240 seconds]
HoloIRCUser has joined #litex
HoloIRCUser1 has quit [Ping timeout: 264 seconds]
<_florent_> rjeschmi: using the 2 ethernet ports on the colorlight seems quite ambitious for now since it's already not passing timing with one :)
<_florent_> rjeschmi: but i could have a look to see if we can make it build
<rjeschmi> Yeah fair enough :)
<rjeschmi> I'm not really blocked. I'll just work on the one. I feel like maybe the reset mdio need to be handled differently
<rjeschmi> I'll get a soft cpu working with the one ethernet mainly to get some sort of communications set up
<_florent_> have you been able to build the design by commenting the rst_n pin of the second phy?
<rjeschmi> It is pretty limiting when UART isn't really possible
<rjeschmi> Yeah, the build "worked"
<rjeschmi> the first ethphy is pingable
<rjeschmi> second is not
<_florent_> ok
<rjeschmi> so I guess it must have built something, but I can't see what it did really
<rjeschmi> I'm thinking getting softcpu with one ethernet to see some of the other bits
<rjeschmi> thanks for the response however, it is a fun learning exercise :)
<_florent_> rjeschmi: in fact i'm not sure i got the second phy working on this board, even with a single phy in the design
<tpb> Title: litex-boards/colorlight_5a_75b.py at master · litex-hub/litex-boards · GitHub (at github.com)
<rjeschmi> I can test that
<rjeschmi> I'll do that too just to check
<_florent_> but some work need to be done to improve timings: https://github.com/litex-hub/litex-boards/issues/40
<tpb> Title: Colorlight-5a-75b: Optimize IP/UDP/Etherbone timings, add SDRAM · Issue #40 · litex-hub/litex-boards · GitHub (at github.com)
<_florent_> so i'm not sure the issue was related to the timings or something else
<rjeschmi> yeah I saw the timing discussion too
<_florent_> btw, this could be of interested for you: https://github.com/enjoy-digital/liteeth/pull/36
<tpb> Title: mac: add crossbar for sharing PHY between HW ethernet cores and Wishbone by piotr-binkowski · Pull Request #36 · enjoy-digital/liteeth · GitHub (at github.com)
<_florent_> it will probably change a little bit, but it allow sharing the PHY/MAC between the CPU and hardware
<rjeschmi> yeah that looks promising
<rjeschmi> I have an ethernet switch with port mirroring, so I can take a look at what is on those lines anyway
<rjeschmi> I'll play around a bit and report back
<_florent_> ok thanks
CarlFK has joined #litex
HoloIRCUser1 has joined #litex
HoloIRCUser has quit [Ping timeout: 256 seconds]
<rjeschmi> _florent_: yeah, second phy doesn't seem to function, even alone. That is odd. I'll try to check the pins
HoloIRCUser has joined #litex
HoloIRCUser1 has quit [Ping timeout: 240 seconds]
HoloIRCUser1 has joined #litex
HoloIRCUser has quit [Read error: Connection reset by peer]
futarisIRCcloud has quit [Ping timeout: 246 seconds]
futarisIRCcloud has joined #litex