_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
lf_ has quit [Ping timeout: 264 seconds]
lf has joined #litex
lkcl has quit [Ping timeout: 272 seconds]
lkcl has joined #litex
Degi_ has joined #litex
Degi has quit [Ping timeout: 256 seconds]
Degi_ is now known as Degi
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #litex
_whitelogger has joined #litex
Dolu_ has quit [Ping timeout: 264 seconds]
cjearls has quit [Quit: Leaving]
_whitelogger has joined #litex
captain_morgan has quit [Remote host closed the connection]
captain_morgan has joined #litex
kgugala__ has joined #litex
kgugala has quit [Ping timeout: 246 seconds]
Bertl is now known as Bertl_zZ
lkcl has quit [Ping timeout: 246 seconds]
kgugala__ has quit [Read error: Connection reset by peer]
kgugala has joined #litex
lkcl has joined #litex
lkcl has quit [Ping timeout: 246 seconds]
lkcl has joined #litex
nelgau has quit [Remote host closed the connection]
lkcl has quit [Ping timeout: 246 seconds]
lkcl has joined #litex
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #litex
<acathla> Does this : [LXTERM] Got unexpected response from device 'b'T'' ring a bell to someone, when trying to serialboot?
<acathla> Last week it was working reaaaally slowly, now it's fast but fails after a few %
<acathla> at 24%
<acathla> Ah, the device answers "Timeout" after 37917B sent in one shot
<keesj> A....
<keesj> and now?
keesj has quit [Ping timeout: 240 seconds]
Dolu_ has joined #litex
Melkhior has joined #litex
<Melkhior> acathla 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...)
<Melkhior> Now my procedure is to
<Melkhior> a) start the FPGA board with the bitstream
<Melkhior> b) start the lxterm on the beaglebone
<Melkhior> (with checksuming enabled)
<Melkhior> c) do the 'sdram_init' and 'serialboot' by hand
<Melkhior> If 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 yours
<Melkhior> I know the serial line is problematic as even pasting a full line is enough for some characters to get dropped...
lkcl has quit [Ping timeout: 264 seconds]
<acathla> Hum, thank you Melkhior for sharing your experience. I wonder now what's the right procedure to serialboot...
<acathla> I use dfu-util -D to send the design to a fomu-like device
<acathla> then : lxterm --serial-boot --kernel fpga_101__lab004/firmware.bin --speed 115200 /dev/ttyUSB0
<acathla> I then got the litex> prompt and type serialboot
<acathla> oh and I added a --kernel-adr option
lkcl has joined #litex
Melkhior has quit [Remote host closed the connection]
keesj has joined #litex
Melkhior has joined #litex
<Melkhior> @acathla I use a json file to describe the memory mapping, so on my beaglebone:
<Melkhior> ~/.local/bin/lxterm --speed 1e6 --images boot.json /dev/ttyO4
<Melkhior> (the 1Mbit serial line is probably too fast and exlpain the unreliability I experience)
<Melkhior> The json comes from one of the build (can't remember if it's the bitstream or the buildroot)
<Melkhior> { "Image": "0x40000000", "rootfs.cpio": "0x40800000", "rv32.dtb": "0x42000000", "emulator.bin": "0x42100000"}
<Melkhior> I've fixed some stuff compared to default values to fit a largert rootfs
<Melkhior> (of course some fixes are needed in the binaries as well)
<Melkhior> if you use linux-on-litex-vexriscv, things should work almost out-of-the-box
Bertl_zZ is now known as Bertl
<acathla> ahah, no linux on the fomu, it's a super tiny FPGA :)
<Melkhior> I only have experience running Linux ... sorry :-(
<acathla> using CDC_ACM (USB), it goes to 100% but ends with a CRC error
nelgau has joined #litex
<acathla> If I put a bigger uart fifo I go a CRC error too in serial.
<acathla> not all the time :(
peeps[zen] has joined #litex
peepsalot has quit [Ping timeout: 256 seconds]
lkcl has quit [Ping timeout: 258 seconds]
lkcl has joined #litex
peeps[zen] is now known as peepsalot
m4ssi has joined #litex
_whitelogger has joined #litex
m4ssi has quit [Remote host closed the connection]
_whitelogger has joined #litex
<_florent_> acathla: we did some changes recently on lxterm to speed up transfers while keeping CRC check
<_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#L62
<acathla> I tried last week and even with --no-crc it was really slow on the uart@115200 and ok on CDC_ACM.
<acathla> _florent_, what's the meaning of this outstanding?
<_florent_> the number of frames allowed to be sent to the FPGA without acks
<_florent_> this is used to avoid round trip delays between each frames, so greatly speed up the transfers
<acathla> ohhh, ok. It works! Well, at least the upload works, now I need to debug the reboot but I think it never worked.
<acathla> What's the meaning of the cmd reboot? reboot only the CPU, right?
<_florent_> this has been discussed here: https://github.com/enjoy-digital/litex/pull/714
<_florent_> it's a reset, before it was only reseting the CPU, but now it's reseting the full SoC
<acathla> The full SoC but not the FPGA reset, right? Because it seems stuck
<acathla> I'll look at it tomorrow...
<_florent_> You are testing on iCE40/Fomu?
<_florent_> I could do a test tomorrow
<acathla> _florent_, it's on a fomu-like hardware
<_florent_> if it's no longer stuck, we just need to modify the clocking to add a delay before the reset, I could do it
<acathla> what do you call the SoCcontroller?
<acathla> oh, it's a module
<_florent_> A small controller with reset CSR, scratch reg CSR, bus error monitoring, etc...
<_florent_> acathla: sorry it's the end of the day here :) happy to help tomorrow
<acathla> okok, bonne soirée :)
nelgau has quit []
Bertl is now known as Bertl_zZ
Melkhior has quit [Quit: Ping timeout (120 seconds)]
kgugala has quit [Quit: -a- Connection Timed Out]
kgugala has joined #litex