Friday, 2020-03-20

*** tpb has joined #litex00:00
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/qmWzFGDX00:21
tpbTitle: litex> spisdcardboot SD Card via SPI Initialising Reading MBR Partition 1 Inf - Pastebin.com (at pastebin.com)00:21
sajattack[m]I used gparted00:23
*** tnt has joined #litex00:24
*** tnt has left #litex00:24
*** rjeschmi has joined #litex00:25
rjeschmilooking for some help with examples of dual LiteEthPHYRGMIIs (if it is even possible)00:26
rjeschmiI don't really need them to do anything right now, but litex seems to rename the conflicting clock domains automatically00:27
rjeschmiI 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)00:27
somlosajattack[m]: what size partition ?00:28
sajattack[m]4G00:29
somlowait, does fat16 support that?00:29
sajattack[m]Yeah00:29
*** scanakci has joined #litex01:11
somlosajattack[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/43301:57
tpbTitle: Support SPI-mode SDCard booting on Litex+Rocket (64bit) configuration by gsomlo · Pull Request #433 · enjoy-digital/litex · GitHub (at github.com)01:57
sajattack[m]oh interestin01:59
sajattack[m]good ol' C variable width types01:59
somlogot it booting on 64-bit Rocket Chip enabled Litex -- \o/ :)01:59
sajattack[m]sweet02:00
*** Degi_ has joined #litex02:18
*** Degi has quit IRC02:20
*** Degi_ is now known as Degi02:20
*** CarlFK has quit IRC02:27
rjeschmisomlo: sounds cool02:53
*** bubble_buster has joined #litex03:03
*** CarlFK has joined #litex03:05
*** gregdavill has joined #litex03:28
*** Xark has quit IRC04:18
*** Xark has joined #litex04:21
*** _whitelogger_ has quit IRC04:36
*** _whitelogger has joined #litex04:38
*** _whitelogger has quit IRC06:42
_florent_somlo: great you got it working with Rocket and thanks for the PR, i'll test it with Vexriscv and merge if working.06:42
_florent_rjeschmi: for the dual LiteEthPHYRGMII, can you create an issue on https://github.com/enjoy-digital/liteeth with your code and info to reproduce the issue?06:43
tpbTitle: GitHub - enjoy-digital/liteeth: Small footprint and configurable Ethernet core (at github.com)06:43
*** _whitelogger has joined #litex06:44
*** HoloIRCUser has joined #litex07:47
*** dasdgw42 has quit IRC07:49
*** gregdavill has quit IRC10:15
*** RaYmAn_ is now known as RaYmAn10:43
*** futarisIRCcloud has quit IRC10:44
*** peeps[zen] has joined #litex11:30
*** peepsalot has quit IRC11:32
*** peepsalot has joined #litex11:35
*** peeps[zen] has quit IRC11:36
rjeschmi_florent_: sure I'll do that when I wake up. Thanks. I don't really know litex or migen well.11:50
rjeschmiThe only code I found kind of interesting was a dual HDMI in hdmi2usb11:51
*** scanakci has quit IRC12:38
rjeschmi_florent_: it seems like my problem is that they have a shared RESET pin, but are in two different clock domains12:54
rjeschmiERROR: 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'12:55
rjeschmiI'll keep poking at it though12:55
daveshahSounds like it is creating two resets with the same physical pin13:06
rjeschmidaveshah: yeah I think so https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/colorlight_5a_75b.py13:14
tpbTitle: litex-boards/colorlight_5a_75b.py at master · litex-hub/litex-boards · GitHub (at github.com)13:14
rjeschmilooking at rst_n for the two eths13:14
*** futarisIRCcloud has joined #litex13:14
rjeschmiif there happens to be other examples out there of this it might help to me to learn a bit.13:15
rjeschmiI'm making some progress anyway13:15
*** m4ssi has joined #litex13:52
rjeschmiI 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 :)13:55
rjeschmiThese don't seem to be in an "eth" clock domain, so it must be something else related to how they are defined13:58
*** m4ssi has quit IRC14:58
*** m4ssi has joined #litex15:09
*** HoloIRCUser1 has joined #litex15:16
*** HoloIRCUser has quit IRC15:19
*** m4ssi has quit IRC15:39
*** CarlFK has quit IRC16:33
*** HoloIRCUser has joined #litex16:52
*** HoloIRCUser1 has quit IRC16:54
_florent_rjeschmi: using the 2 ethernet ports on the colorlight seems quite ambitious for now since it's already not passing timing with one :)17:38
_florent_rjeschmi: but i could have a look to see if we can make it build17:38
rjeschmiYeah fair enough :)17:38
rjeschmiI'm not really blocked. I'll just work on the one. I feel like maybe the reset mdio need to be handled differently17:40
rjeschmiI'll get a soft cpu working with the one ethernet mainly to get some sort of communications set up17:41
_florent_have you been able to build the design by commenting the rst_n pin of the second phy?17:41
rjeschmiIt is pretty limiting when UART isn't really possible17:41
rjeschmiYeah, the build "worked"17:41
rjeschmithe first ethphy is pingable17:41
rjeschmisecond is not17:42
_florent_ok17:42
rjeschmiso I guess it must have built something, but I can't see what it did really17:42
rjeschmiI'm thinking getting softcpu with one ethernet to see some of the other bits17:42
rjeschmithanks for the response however, it is a fun learning exercise :)17:43
_florent_rjeschmi: in fact i'm not sure i got the second phy working on this board, even with a single phy in the design17:43
_florent_(ie just by changing https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/colorlight_5a_75b.py#L77 to eth_phy=1)17:44
tpbTitle: litex-boards/colorlight_5a_75b.py at master · litex-hub/litex-boards · GitHub (at github.com)17:44
rjeschmiI can test that17:44
rjeschmiI'll do that too just to check17:44
_florent_but some work need to be done to improve timings: https://github.com/litex-hub/litex-boards/issues/4017:44
tpbTitle: Colorlight-5a-75b: Optimize IP/UDP/Etherbone timings, add SDRAM · Issue #40 · litex-hub/litex-boards · GitHub (at github.com)17:44
_florent_so i'm not sure the issue was related to the timings or something else17:44
rjeschmiyeah I saw the timing discussion too17:45
_florent_btw, this could be of interested for you: https://github.com/enjoy-digital/liteeth/pull/3617:45
tpbTitle: 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)17:45
_florent_it will probably change a little bit, but it allow sharing the PHY/MAC between the CPU and hardware17:46
rjeschmiyeah that looks promising17:47
rjeschmiI have an ethernet switch with port mirroring, so I can take a look at what is on those lines anyway17:48
rjeschmiI'll play around a bit and report back17:48
_florent_ok thanks17:59
*** CarlFK has joined #litex18:03
*** HoloIRCUser1 has joined #litex19:39
*** HoloIRCUser has quit IRC19:42
rjeschmi_florent_: yeah, second phy doesn't seem to function, even alone. That is odd. I'll try to check the pins20:18
*** HoloIRCUser has joined #litex23:05
*** HoloIRCUser1 has quit IRC23:08
*** HoloIRCUser1 has joined #litex23:18
*** HoloIRCUser has quit IRC23:18
*** futarisIRCcloud has quit IRC23:26
*** futarisIRCcloud has joined #litex23:27

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