Tuesday, 2020-12-08

*** tpb has joined #litex00:00
*** lf_ has quit IRC00:08
*** lf has joined #litex00:08
*** lkcl has quit IRC00:55
*** lkcl has joined #litex01:08
*** Degi_ has joined #litex01:25
*** Degi has quit IRC01:29
*** Degi_ is now known as Degi01:29
*** lkcl has quit IRC01:40
*** lkcl has joined #litex01:54
*** _whitelogger has quit IRC02:51
*** _whitelogger has joined #litex02:53
*** Dolu_ has quit IRC03:03
*** cjearls has quit IRC03:34
*** _whitelogger has quit IRC04:42
*** _whitelogger has joined #litex04:44
*** captain_morgan has quit IRC04:51
*** captain_morgan has joined #litex05:56
*** kgugala__ has joined #litex06:20
*** kgugala has quit IRC06:22
*** Bertl is now known as Bertl_zZ06:52
*** lkcl has quit IRC07:33
*** kgugala__ has quit IRC07:43
*** kgugala has joined #litex07:43
*** lkcl has joined #litex07:47
*** lkcl has quit IRC08:01
*** lkcl has joined #litex08:14
*** nelgau has quit IRC08:23
*** lkcl has quit IRC09:01
*** lkcl has joined #litex09:14
*** lkcl has quit IRC09:55
*** lkcl has joined #litex10:09
acathlaDoes this : [LXTERM] Got unexpected response from device 'b'T'' ring a bell to someone, when trying to serialboot?10:13
acathlaLast week it was working reaaaally slowly, now it's fast but fails after a few %10:14
acathlaat 24%10:24
acathlaAh, the device answers "Timeout" after 37917B sent in one shot11:27
keesjA....11:33
keesjand now?11:33
*** keesj has quit IRC11:38
*** Dolu_ has joined #litex11:59
*** Melkhior has joined #litex12:21
Melkhioracathla I have the issue when serial booting; for me one side or the other of the serial link can't keep up (my serial console is a vintage beaglebone white...)12:22
MelkhiorNow my procedure is to12:23
Melkhiora) start the FPGA board with the bitstream12:23
Melkhiorb) start the lxterm on the beaglebone12:23
Melkhior(with checksuming enabled)12:23
Melkhiorc) do the 'sdram_init' and 'serialboot' by hand12:23
MelkhiorIf I start lxterm first, it detects the board going up and try to auto-boot, and more often that not if fails with an error similar to yours12:24
MelkhiorI know the serial line is problematic as even pasting a full line is enough for some characters to get dropped...12:25
*** lkcl has quit IRC12:48
acathlaHum, thank you Melkhior for sharing your experience. I wonder now what's the right procedure to serialboot...12:53
acathlaI use dfu-util -D to send the design to a fomu-like device12:53
acathlathen : lxterm --serial-boot --kernel fpga_101__lab004/firmware.bin --speed 115200 /dev/ttyUSB012:54
acathlaI then got the litex> prompt and type serialboot12:54
acathlaoh and I added a --kernel-adr option12:55
*** lkcl has joined #litex13:01
*** Melkhior has quit IRC13:07
*** keesj has joined #litex14:29
*** Melkhior has joined #litex14:55
Melkhior@acathla I use a json file to describe the memory mapping, so on my beaglebone:14:57
Melkhior~/.local/bin/lxterm --speed 1e6 --images boot.json /dev/ttyO414:57
Melkhior(the 1Mbit serial line is probably too fast and exlpain the unreliability I experience)14:58
MelkhiorThe json comes from one of the build (can't remember if it's the bitstream or the buildroot)14:59
Melkhior{        "Image":        "0x40000000",        "rootfs.cpio":  "0x40800000",        "rv32.dtb":     "0x42000000",        "emulator.bin":  "0x42100000"}14:59
MelkhiorI've fixed some stuff compared to default values to fit a largert rootfs15:00
Melkhior(of course some fixes are needed in the binaries as well)15:00
Melkhiorif you use linux-on-litex-vexriscv, things should work almost out-of-the-box15:01
*** Bertl_zZ is now known as Bertl15:13
acathlaahah, no linux on the fomu, it's a super tiny FPGA :)15:32
MelkhiorI only have experience running Linux ... sorry :-(15:50
acathlausing CDC_ACM (USB), it goes to 100% but ends with a CRC error16:21
*** nelgau has joined #litex16:22
acathlaIf I put a bigger uart fifo I go a CRC error too in serial.16:29
acathlanot all the time :(16:32
*** peeps[zen] has joined #litex17:07
*** peepsalot has quit IRC17:08
*** lkcl has quit IRC17:26
*** lkcl has joined #litex17:39
*** peeps[zen] is now known as peepsalot18:25
*** m4ssi has joined #litex20:33
*** _whitelogger has quit IRC20:57
*** lkcl has quit IRC20:59
*** lkcl has joined #litex20:59
*** _whitelogger has joined #litex21:00
*** m4ssi has quit IRC21:02
*** _whitelogger has quit IRC21:03
*** _whitelogger has joined #litex21:06
_florent_acathla: we did some changes recently on lxterm to speed up transfers while keeping CRC check21:08
_florent_acathla: if this was working before, you can try to set sfl_outstanding to 0 here: https://github.com/enjoy-digital/litex/blob/master/litex/tools/litex_term.py#L6221:10
acathlaI tried last week and even with --no-crc it was really slow on the uart@115200 and ok on CDC_ACM.21:10
acathla_florent_, what's the meaning of this outstanding?21:10
_florent_the number of frames allowed to be sent to the FPGA without acks21:13
_florent_this is used to avoid round trip delays between each frames, so greatly speed up the transfers21:14
acathlaohhh, ok. It works! Well, at least the upload works, now I need to debug the reboot but I think it never worked.21:14
acathlaWhat's the meaning of the cmd reboot? reboot only the CPU, right?21:14
_florent_this has been discussed here: https://github.com/enjoy-digital/litex/pull/71421:15
_florent_it's a reset, before it was only reseting the CPU, but now it's reseting the full SoC21:16
acathlaThe full SoC but not the FPGA reset, right? Because it seems stuck21:18
acathlaI'll look at it tomorrow...21:18
_florent_You are testing on iCE40/Fomu?21:19
_florent_I could do a test tomorrow21:19
_florent_can you try to comment https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/soc.py#L937?21:20
acathla_florent_, it's on a fomu-like hardware21:22
_florent_if it's no longer stuck, we just need to modify the clocking to add a delay before the reset, I could do it21:22
acathlawhat do you call the SoCcontroller?21:23
acathlaoh, it's a module21:24
_florent_A small controller with reset CSR, scratch reg CSR, bus error monitoring, etc...21:25
_florent_acathla: sorry it's the end of the day here :) happy to help tomorrow21:25
acathlaokok, bonne soirée :)21:26
*** nelgau has quit IRC21:51
*** Bertl is now known as Bertl_zZ23:13
*** Melkhior has quit IRC23:42
*** kgugala has quit IRC23:46
*** kgugala has joined #litex23:46

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