Saturday, 2020-05-23

*** tpb has joined #litex00:00
*** HoloIRCUser has joined #litex00:07
*** HoloIRCUser2 has quit IRC00:10
*** bonzibuddy has quit IRC00:57
*** bonzibuddy has joined #litex00:57
*** HoloIRCUser2 has joined #litex01:31
*** HoloIRCUser3 has joined #litex01:31
*** HoloIRCUser has quit IRC01:33
*** HoloIRCUser2 has quit IRC01:36
*** HoloIRCUser has joined #litex02:22
*** HoloIRCUser3 has quit IRC02:25
*** CarlFK has joined #litex02:57
*** Degi has quit IRC03:07
*** Degi has joined #litex03:10
*** gregdavill has quit IRC03:14
*** HoloIRCUser2 has joined #litex07:01
*** HoloIRCUser has quit IRC07:05
*** HoloIRCUser has joined #litex07:34
*** HoloIRCUser2 has quit IRC07:38
*** HoloIRCUser2 has joined #litex09:14
*** HoloIRCUser has quit IRC09:16
*** kgugala_ has joined #litex09:39
futarisIRCcloud_florent_: Would it be possible to use the PCIe lane serdes(es) in the Acorn CLE-215 to interface to SGMII for Gigabit Ethernet, NBASE-T, MGBASE-T or 10GBASE-T?09:40
*** kgugala__ has joined #litex09:40
daveshahI see no reason why not, if you fed it with the right reference clock09:42
*** kgugala has quit IRC09:42
daveshahFor 10GBASE-T you would need to use the 4x3.125 interface, I forget what that is called09:43
*** kgugala_ has quit IRC09:44
zypXAUI09:44
daveshahyep, thanks09:45
daveshahso many different standards...09:45
daveshahMaybe RXAUI would work too, for two 10GbE links09:46
zypassuming you can get a phy that supports it09:47
_florent_futarisIRCcloud: i never played with SGMII but i also don't see reasons it would not be possible10:16
_florent_the transceiver could be operated with https://github.com/enjoy-digital/liteiclink/blob/master/liteiclink/transceiver/gtx_7series.py10:16
tpbTitle: liteiclink/gtx_7series.py at master · enjoy-digital/liteiclink · GitHub (at github.com)10:16
_florent_so only the upper layers of SGMII would need to be developed10:18
futarisIRCcloudHSGMII for 2.5GbE, QSGMII for 5GbE...10:20
_florent_futarisIRCcloud: we are already supporting 1000baseX and it seems there are similarities with SGMII:10:22
futarisIRCcloudThe new Intel i225-V PHY is fairly cheap.10:22
_florent_https://electronics.stackexchange.com/questions/141353/what-is-the-exact-difference-between-sgmii-and-1000base-x10:22
tpbTitle: communication - What is the exact difference between SGMII and 1000Base-X? - Electrical Engineering Stack Exchange (at electronics.stackexchange.com)10:22
zypMy understanding is that QSGMII is 4x1GbE10:22
_florent_so it's possible there are not that much missing10:22
zyp5GbE would have to be 6.125 because of 8b10b10:22
*** kgugala__ has quit IRC10:24
*** kgugala has joined #litex10:24
*** HoloIRCUser has joined #litex11:35
*** HoloIRCUser2 has quit IRC11:37
*** HoloIRCUser2 has joined #litex12:17
*** HoloIRCUser has quit IRC12:19
*** HoloIRCUser has joined #litex12:20
*** HoloIRCUser2 has quit IRC12:23
futarisIRCcloudhttps://github.com/snabbco/snabb/issues/141812:26
tpbTitle: EasyNIC development · Issue #1418 · snabbco/snabb · GitHub (at github.com)12:26
futarisIRCcloudORICO SCM2T3-G40 for 140 USD / 200 AUD does look good.12:31
tmbincI wonder if PCIe Thunderbolt addon cards ("asus thunderboltex 3" for example is ~70 EUR and commonly available) could be reflashed to act as a thunderbolt device. Chipset is the same (as far as I can judge), but of course all the documentation and configuration tools are only available under NDA12:46
tmbincIt would require a PCIe-to-PCIe base board with power (and CLK maybe?) of course but that should be relatively cheap to make12:47
daveshahLooking at https://www.mouser.co.uk/datasheet/2/612/18-241_Thunder7000Controller_Brief_FIN_HI-1661831.pdf it seems like there are different SKUs for device vs computer side12:53
daveshahBut maybe there is still a way round that, depends how the programming and pinouts work12:53
tmbincThe Asus card has a DSL6540 (Alpine Ridge iirc)13:13
tmbincThey are EOL'ed and replaced by the JHL654013:14
tmbincSo they would be the 6000-series (https://thunderbolttechnology.net/sites/default/files/18-241_ThunderboltController_Brief_HI.pdf) which has expected usage as "Computer or peripheral"13:15
tmbincand also the same chips I've found in thunderbolt expansion devices13:15
tmbincbut sure it could be some fusing13:15
*** Skip has joined #litex13:26
*** HoloIRCUser2 has joined #litex14:27
*** HoloIRCUser has quit IRC14:30
Claudeping dkozel15:08
dkozelAh hi Claude15:10
Claude(trying to)disassembling the JMS538 firmware at the moment . its a fscking 8051 lol15:11
dkozelI'm working on a schematic for m.2 to USB 3 (physical) in anticipation of the USB PIPE project working. If that happens that could be an option for easy device access15:14
dkozelIt gets a bit messy with the power, probably going to skip that to start with15:15
zypdkozel, m.2 socket to usb or m.2 card with usb?15:23
dkozelm.2 socket15:26
dkozelhttps://github.com/enjoy-digital/usb3_pipe15:27
tpbTitle: GitHub - enjoy-digital/usb3_pipe: USB3 PIPE interface for Xilinx 7-Series / Lattice ECP5 (at github.com)15:27
dkozelExactly that but with m.2 and USB C sockets15:28
Claudeoh that looks pretty cool dkozel15:32
dkozelNo credit to me, all the interesting and hard work is _florent_ and bunnie15:35
dkozelI just want to make use of it :D15:35
bunnielol this one is all florent, he did some amazing work there!15:37
Claudewhen i scroll up a bit i see a lot of stuff i looked at the last couple of days too :) JHL6540 for example. unfortunatley i was not able to find any information on that part other than marketing pdfs and irclogs at _whitelogger mentioning it15:40
*** kgugala has quit IRC16:29
*** kgugala has joined #litex16:29
john_k[m]_florent_: just tested one of the previously non-working CLE-215+ in a new m.2 adapter (instead of the Acorn Nest) and was able to load the bitstream and see the chaser, although rebooting the machine caused it to hang (no monitor attached). I'm still seeing `Error: Unknown flash device (ID 0x00918d0d)` at this point when I try `--flash`. I'm also still seeing some JTAG weirdness when openocd is searching for xc7.tap (reading16:53
john_k[m]mfg 0x7fa, part 0xffff) - at this point I'm suspecting some signal integrity shenanigans so I took off the CLE-215+'s fan at which point JTAG works fine on this unit and it boots fine running litex16:53
john_k[m]should litex enumerate on PCIe as `01:00.0 Memory controller: Xilinx Corporation Device 7024 (rev ff)`?16:54
john_k[m]for the flash, I'm still getting errors, but seeing `Error: Unknown flash device (ID 0x00ffffff)` now16:55
_florent_john_k[m]: rev ff seems weird (should be 01 IIRC), but otherwise it's fine17:01
CarlFKusing a pi and netv2 ... openocd.. loaded file top.bit to pld device 0 in 1s 635162us17:17
CarlFKdo I have to reset the netv2 to make it take effect?17:17
bunnieno, the bitstream should take effect immediately after it was loaded, if the bitstream was valid for the FPGA17:18
bunniebut if it failed CRC or mismatched to part number it won't take effect17:18
CarlFKcan I tell any of that from this? http://paste.ubuntu.com/p/g32KnJFg6x/17:22
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)17:22
john_k[m]I'm not sure what to think about the SPI Flash - it's obviously working since the FPGA boots the default bitstream. Could it be stuck in QSPI mode or something? Or does the flasher reset the chip out of that?17:23
bunnieyah it has an error saying that the JTAG chain returned all zeros17:25
bunnieso something isn't right. it looks like openOCD decided to go ahead and just blast data across the bus, ignoring the bad TDI signal17:26
bunnieif you're running on a pi4, you might need to tune the BCM2835 clocks line in the alphamax-rpi.cfg file17:26
bunniei don't know what they need to be tuned to, but it varies from each model of pi. usually i hook up an oscilloscope and just guess values until the timing is right. the values committed to the github master are tuned for the pi3b+17:27
CarlFKbunnie:  what openocd source should I use?17:27
bunniethis is the one that's bundled with the netv2 production units: https://github.com/AlphamaxMedia/openocd17:28
tpbTitle: GitHub - AlphamaxMedia/openocd: openocd for KC705, KCU105, Sayma, Metlino, Kasli, Pipistrello etc (at github.com)17:28
CarlFKwhat I am currently useing is debian stable + the patch you pointed to a few days ago, which needed help patching, and maybe need more than just that patch, so lets go with what you are most confidant in17:28
CarlFKk - let me build that and try again17:28
bunnieyah, this /should/ work -- it's what's shipping in the box.17:29
bunnieyou need to, of course, include the bcm2835 target in the config line17:29
CarlFKbunnie: that doesn't build  http://paste.ubuntu.com/p/JCFdXXxBk9/18:45
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)18:45
CarlFKsrc/target/arm_disassembler.c:1499:30: error: bitwise comparison always evaluates to false [-Werror=tautological-compare]    if (((opcode & 0x00600000) == 0x00100000) && (x == 0))18:45
CarlFKhttps://sourceforge.net/p/openocd/code/ci/b50fa9a19d0b600d26b6cbca57cd94c7b89f941c19:08
tpbTitle: OpenOCD - Open On-Chip Debugger / Code / Commit [b50fa9] (at sourceforge.net)19:08
CarlFKgcc (GCC) 8.1.0 generates new warnings and thus fails the build. The ARM disassembler warnings actually exposed a bug in SMALW, SMULW and SMUL instructions decoding.19:08
* CarlFK forks and patches...19:14
*** HoloIRCUser has joined #litex19:26
*** HoloIRCUser2 has quit IRC19:27
*** HoloIRCUser2 has joined #litex20:29
*** HoloIRCUser has quit IRC20:32
CarlFKhttp://paste.ubuntu.com/p/jRb6KdRBfM/   I'm getting tangled up in repos and missing configs :p20:43
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)20:43
CarlFKpatched openocd with https://github.com/CarlFK/openocd/commit/f6e0c3b80a111c4f780f649bda7c67156a0df62d20:55
tpbTitle: Fix warnings exposed by GCC8; exposed a bug · CarlFK/openocd@f6e0c3b · GitHub (at github.com)20:55
CarlFKhttp://paste.ubuntu.com/p/C6HKKdJDhd/20:56
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)20:56
*** HoloIRCUser has joined #litex23:03
*** HoloIRCUser2 has quit IRC23:06
*** Claude has quit IRC23:40

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