*** tpb has joined #tomu | 00:00 | |
xobs | acathla: Try using the GDB bridge? | 03:28 |
---|---|---|
xobs | You may get lucky, particularly if you're running Linux and don't issue `lsusb` anywhere at all. | 03:29 |
*** flag has quit IRC | 04:26 | |
*** flag has joined #tomu | 04:34 | |
*** lathiat has joined #tomu | 05:47 | |
*** royan_ has joined #tomu | 05:57 | |
*** royan has quit IRC | 05:57 | |
*** mithro has quit IRC | 05:58 | |
*** mithro has joined #tomu | 06:00 | |
*** lathiat has quit IRC | 07:53 | |
*** tick[m] has quit IRC | 09:35 | |
*** tick[m] has joined #tomu | 09:36 | |
*** krogozinski has quit IRC | 09:53 | |
*** krogozinski has joined #tomu | 09:55 | |
*** Vercas has quit IRC | 10:18 | |
*** Vercas has joined #tomu | 10:24 | |
*** Vercas has quit IRC | 10:28 | |
*** Vercas has joined #tomu | 11:21 | |
acathla | What's the issue with lsusb? | 11:24 |
xobs | The 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 |
xobs | What isn't handled by hardware is all of the other miscellaneous USB traffic. | 11:25 |
xobs | So 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 |
xobs | A 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/src | 11:27 |
acathla | Ok, I'll try first to send code for the foboot's riscv and debug then. | 11:48 |
xobs | One thing about the debugger: It sets this register -- https://rm.fomu.im/reboot.html#reboot-addr3 | 11:56 |
tpb | Title: REBOOT Fomu Bootloader documentation (at rm.fomu.im) | 11:56 |
xobs | That 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 IRC | 14:03 | |
*** Vercas has joined #tomu | 14:16 | |
*** rj has joined #tomu | 14:23 | |
*** rj has quit IRC | 14:50 | |
*** rj has joined #tomu | 14:52 | |
*** rj has quit IRC | 14:55 | |
*** rj has joined #tomu | 14:56 | |
*** rj has quit IRC | 15:34 | |
*** rj has joined #tomu | 15:39 | |
*** rj has quit IRC | 16:31 | |
*** rj has joined #tomu | 16:35 | |
*** rj has quit IRC | 17:15 | |
*** rj has joined #tomu | 17:20 | |
*** rj has quit IRC | 17:59 | |
*** rj has joined #tomu | 18:03 | |
*** rj has quit IRC | 18:44 | |
*** rj has joined #tomu | 18:49 | |
*** rj has quit IRC | 19:27 | |
*** rj has joined #tomu | 19:30 | |
*** rj has quit IRC | 20:11 | |
*** rj has joined #tomu | 20:16 | |
*** rj has quit IRC | 20:58 | |
*** rj has joined #tomu | 21:01 | |
*** rj_ has joined #tomu | 21:36 | |
*** rj has quit IRC | 21:39 | |
*** rj_ has quit IRC | 21:43 | |
*** rj_ has joined #tomu | 22:00 | |
*** rj_ has quit IRC | 22:25 | |
*** rj_ has joined #tomu | 22:31 | |
*** rj_ has quit IRC | 23:10 | |
*** rj_ has joined #tomu | 23:14 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!