Wednesday, 2021-04-21

*** tpb has joined #tomu00:00
xobsacathla: Try using the GDB bridge?03:28
xobsYou may get lucky, particularly if you're running Linux and don't issue `lsusb` anywhere at all.03:29
*** flag has quit IRC04:26
*** flag has joined #tomu04:34
*** lathiat has joined #tomu05:47
*** royan_ has joined #tomu05:57
*** royan has quit IRC05:57
*** mithro has quit IRC05:58
*** mithro has joined #tomu06:00
*** lathiat has quit IRC07:53
*** tick[m] has quit IRC09:35
*** tick[m] has joined #tomu09:36
*** krogozinski has quit IRC09:53
*** krogozinski has joined #tomu09:55
*** Vercas has quit IRC10:18
*** Vercas has joined #tomu10:24
*** Vercas has quit IRC10:28
*** Vercas has joined #tomu11:21
acathlaWhat's the issue with lsusb?11:24
xobsThe problem is that it relies on the host being lazy. There's a bit you can set to not reset the USB lines. foboot allows for debugging using Wishbone and GDB. All you need to do is send the correct commands to it. It's handled by hardware.11:25
xobsWhat isn't handled by hardware is all of the other miscellaneous USB traffic.11:25
xobsSo if all you do is send Wishbone commands, you're good to go. But as soon as you send a non-Wishbone command -- GET_DESCRIPTOR for example -- it will time out because the device won't respond. Eventually Linux will consider the device "broken" and disconnect it.11:26
xobsA dumb workaround to that is to include a USB stack in your program that responds with descriptor requests. The blink example does just that: https://github.com/im-tomu/fomu-workshop/tree/master/riscv-blink/src11:27
acathlaOk, I'll try first to send code for the foboot's riscv and debug then.11:48
xobsOne thing about the debugger: It sets this register -- https://rm.fomu.im/reboot.html#reboot-addr311:56
tpbTitle: REBOOT Fomu Bootloader documentation (at rm.fomu.im)11:56
xobsThat way you can load a new program and run `mon reset` and have it jump to your program header rather than to foboot main.11:56
*** Vercas has quit IRC14:03
*** Vercas has joined #tomu14:16
*** rj has joined #tomu14:23
*** rj has quit IRC14:50
*** rj has joined #tomu14:52
*** rj has quit IRC14:55
*** rj has joined #tomu14:56
*** rj has quit IRC15:34
*** rj has joined #tomu15:39
*** rj has quit IRC16:31
*** rj has joined #tomu16:35
*** rj has quit IRC17:15
*** rj has joined #tomu17:20
*** rj has quit IRC17:59
*** rj has joined #tomu18:03
*** rj has quit IRC18:44
*** rj has joined #tomu18:49
*** rj has quit IRC19:27
*** rj has joined #tomu19:30
*** rj has quit IRC20:11
*** rj has joined #tomu20:16
*** rj has quit IRC20:58
*** rj has joined #tomu21:01
*** rj_ has joined #tomu21:36
*** rj has quit IRC21:39
*** rj_ has quit IRC21:43
*** rj_ has joined #tomu22:00
*** rj_ has quit IRC22:25
*** rj_ has joined #tomu22:31
*** rj_ has quit IRC23:10
*** rj_ has joined #tomu23:14

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