Friday, 2018-05-11

*** tpb has joined #timvideos00:00
*** rohitksingh_work has joined #timvideos02:47
*** samsagaz__ has joined #timvideos04:09
*** samsagaz_ has quit IRC04:10
*** CarlFK has joined #timvideos04:17
*** ChanServ sets mode: +v CarlFK04:17
shivm28[m]shorne: ping?06:06
*** sb0 has quit IRC06:20
shorneshivm28[m]: hello11:15
shorneI am not sure how much time I have now, kid just went to sleep, but wife is coming home soon11:15
shorneDid you get what I meant about the du_* signals on the mor1kx?11:16
shorneDO you agree those map to the CDM spec signals?11:16
shorneI think the system interface section needs some help in : http://opensocdebug.readthedocs.io/en/latest/02_spec/07_modules/cdm/11:17
tpbTitle: Core Debug Module (CDM) Open SoC Debug 0.1 documentation (at opensocdebug.readthedocs.io)11:17
*** nancy_ has joined #timvideos11:22
*** nancy_ has quit IRC11:34
*** rohitksingh_work has quit IRC12:03
shivm28[m]shorne: Yes, those signals are same as or1k debugging signals.12:21
shivm28[m]In CDM module, each or1k debug registers is mapped into two 16 bit wide OSD register. Now,  I can set breakpoints in my program using GDB. Every time, a breakpoint is to be set up, GDB asks for register access.12:22
shivm28[m]This is accomplished using osd_regaccess_layer (internal system of Opensocdebug). Now, the address of the breakpoint is loaded into the module debug registers over the signals defined in system interface.12:25
*** rohitksingh has joined #timvideos12:38
shorneshivm28[m]: have you deloped the CDM already?12:47
shorne*developed*12:48
*** rohitksingh has quit IRC13:14
shivm28[m]shorne: Nope, that's the first evaluation.13:15
shivm28[m]I am working on specification of the module: https://github.com/opensocdebug/osd-doc/pull/813:20
tpbTitle: CDM specification content and structure by shivmgg · Pull Request #8 · opensocdebug/osd-doc · GitHub (at github.com)13:20
shorneshivm28[m]: undersstood.13:20
shivm28[m]shorne: cool!!13:21
shorneshivm28[m]: this is a good diagram of the current debug itnerface13:21
shornehttp://www.rte.se/blog/blogg-modesty-corex/debugging-openrisc-1200/2.1313:21
tpbTitle: Debugging the OpenRISC 1200 | Realtime Embedded (at www.rte.se)13:21
shorneNotice how the debug itnerface also gives access to memory13:22
shornewill CDM do that? A lot of GDB functionality is actually just 1. stall cpu, 2. read/write to memory13:22
shornei.e. in GDB we dont use debug registers usually, we just write an l.trap instruction into memory13:23
shornewell, also 3. read/write registers13:23
shorneso the du_* interface helps with 1 and 313:24
shivm28[m]I think the overall OSD system will do that.13:24
shivm28[m]Is there any document which explains how GDB interacts with or1k in adv_dbg_sys?13:25
shivm28[m]Yup. And MAM module in OSD helps in accessing memory.13:25
shorneOK, so we will need to use that as well13:26
shivm28[m]So after first two GSOC evaluations, we will be able to have all the GDB functionality.13:26
shorneThe link I just sent you is pretty good explaining adv_dbg_sys13:26
shorneBut its missing one thing, the current gdb uses openocd13:27
shorneso we have13:27
shorneGDB <-> OpenOCD <-jtag-> [adv_debug_sys] <--> [mor1kx]13:27
shivm28[m]shorne: I will look at it and probably till next, we will have complete specification for CDM module.13:29
shornethis is what the openOCD interface looks like13:30
shornehttps://github.com/ntfreak/openocd/blob/master/src/target/openrisc/or1k_du_adv.c13:30
tpbTitle: openocd/or1k_du_adv.c at master · ntfreak/openocd · GitHub (at github.com)13:30
shivm28[m]shorne: this is how OSD works: http://opensocdebug.readthedocs.io/en/latest/01_overview/getting_started/index.html#osd-for-run-control-debugging13:32
tpbTitle: Open SoC Debug Primer Open SoC Debug 0.1 documentation (at opensocdebug.readthedocs.io)13:32
shivm28[m]more specifically, run control debugging13:32
shornehttps://github.com/ntfreak/openocd/blob/master/src/target/openrisc/or1k.c#L142913:33
tpbTitle: openocd/or1k.c at master · ntfreak/openocd · GitHub (at github.com)13:33
shornei.e. in openocd, we just define this target_type struction with hooks like .read_memory, .write_memory, .halt, .resume, .step13:34
shorneopenocd abstracts the need to write the gdb server too13:34
shorneshivm28[m]: looking at the OSD overview doc, I have seen it before13:38
shornecan you clarify how much of it works?13:38
shornei.e. does the gdb server exist now?13:38
shornedoes a working/skeleton CDM module exist? or MAM?13:39
shorneI looked through the git repo a few times but could never find much completed13:41
shivm28[m]There is no GDB server in OSD yet.13:49
shivm28[m]We do have a MAM module and it works as well13:49
shivm28[m]So, to clarify:13:49
shivm28[m]First evaluation: CDM module13:49
shivm28[m]Second evaluation: GDB server bridge13:49
shivm28[m]OSD supports trace debugging as of now.13:49
shivm28[m]There is no GDB server in OSD yet.13:49
shivm28[m]shorne: all the modules: https://github.com/opensocdebug/osd-hw/tree/master/modules13:51
tpbTitle: osd-hw/modules at master · opensocdebug/osd-hw · GitHub (at github.com)13:51
*** samsagaz__ has quit IRC13:53
*** rohitksingh has joined #timvideos14:03
*** Kripton has quit IRC14:11
*** thaytan has quit IRC14:19
*** Kripton has joined #timvideos14:24
*** thaytan has joined #timvideos14:30
*** ChanServ sets mode: +v thaytan14:30
*** sb0 has joined #timvideos14:36
*** sb0_ has joined #timvideos14:53
*** sb0_ has quit IRC14:54
*** rohitksingh has quit IRC15:20
*** rohitksingh has joined #timvideos16:12
*** CarlFK has quit IRC16:35
*** rohitksingh has quit IRC16:48
*** rohitksingh has joined #timvideos17:06
*** sb0 has quit IRC17:14
felix_rohitksingh: might be a bit off-topic here, but what plug types are used in india? next week i'll fly to mumbai and the week after that to hillhacks near the himalaya and wonder if i'll need a type d or type m adapter or if type f will just fit17:16
rohitksinghfelix_: Wow! Didn't know you were coming to hillhacks. If I knew, I would have also come. Anyways, type d plugs should work fine17:21
rohitksinghtype m are used for high-ampere sockets, which you wouldn't commonly find17:22
felix_ok, thx. yeah, in the beginning i didn't really plan to go there (i'm a bit worried about getting some bad stomach infection there thb...), but two friends of mine will go to mumbai to do some workshops there and then visit the hillhacks and so maybe a month ago i decides to join them and go there too17:24
rohitksinghfelix_: Oh great! and don't worry about bad stomach infection as long as you eat food from good restaurants (as opposed to road-side stalls) and drink packaged water17:26
felix_also one of the people organizing that event wanted me to go there, but without the two people traveling with me, i probably wouldn't have booked the flights17:26
rohitksinghoh17:26
rohitksinghgood!17:27
felix_yeah, travelling basically to the middle of nowhere alone and not being able to understand or speak the local language would be quite uncomfortable for me. but one of the people i'll be traveling with has been to india a few times and already knows how stuff works there, so i'd guess that it'll be fun17:29
*** rohitksingh has quit IRC17:30
felix_https://zkm.de/en/magazine/2018/04/code-for-creativity-open-codes-for-mumbai is the exhibition in mumbai where we'll probably do some workshops17:31
tpbTitle: Code for Creativity: »Open Codes« for Mumbai | ZKM (at zkm.de)17:31
*** rohitksingh has joined #timvideos17:31
felix_rohitksingh: https://zkm.de/en/magazine/2018/04/code-for-creativity-open-codes-for-mumbai is the exhibition in mumbai where we'll probably do some workshops. i don't really know what's the plan there yet...17:32
tpbTitle: Code for Creativity: »Open Codes« for Mumbai | ZKM (at zkm.de)17:32
*** rohitksingh has quit IRC18:21
*** rohitksingh has joined #timvideos19:09
*** CarlFK has joined #timvideos19:29
*** ChanServ sets mode: +v CarlFK19:29
*** CarlFK has quit IRC19:29
*** CarlFK has joined #timvideos19:47
*** ChanServ sets mode: +v CarlFK19:47
shorneshivm28[m]: sorry, it was late last night and I fell asleep.  Thanks for the update, plese let me know if you need help once you start the CDM module.20:55
shorneYou should be able to start it now while you work on the spec, have you started on anything yet?20:55
*** shorne has quit IRC21:38
*** CarlFK has quit IRC23:06
*** CarlFK has joined #timvideos23:25
*** ChanServ sets mode: +v CarlFK23:25

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!