[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [openocd:tickets] #201 dpmv8_dpm_prepare(): Timeout waiting for dpm prepare when cal
From:       Guido Guenther via OpenOCD-devel <openocd-devel () lists ! sourceforge ! net>
Date:       2018-08-10 9:08:19
Message-ID: /p/openocd/tickets/201/8d1dedc71f7889aba2c79abace4d5a33951bc04c.tickets () openocd ! p ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/related)]


--===============7224743422175399625==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

That's the issue I "reported" on IRC yesterday. Since Debian's pastebin expires I put \
this into the issue tracker.


---

** [tickets:#201] dpmv8_dpm_prepare(): Timeout waiting for dpm prepare when calling \
virt2phys**

**Status:** new
**Milestone:** 0.9.0
**Created:** Fri Aug 10, 2018 08:59 AM UTC by Guido Guenther
**Last Updated:** Fri Aug 10, 2018 08:59 AM UTC
**Owner:** nobody
**Attachments:**

- [debug.log](https://sourceforge.net/p/openocd/tickets/201/attachment/debug.log) \
(45.3 kB; text/x-log)


When tracing an imx8 board running a linux kernel I'm seeing the following when \
calling virt2phys:

```
Debug: 502 26591 command.c:143 script_debug(): command - ocd_command ocd_command type \
                ocd_virt2phys 0x10000
Debug: 503 26591 command.c:143 script_debug(): command - virt2phys ocd_virt2phys \
                0x10000
Error: 507 27593 armv8_dpm.c:179 dpmv8_dpm_prepare(): Timeout waiting for dpm prepare
Debug: 508 27593 command.c:642 run_command(): Command failed with error code -4
User : 509 27593 command.c:705 command_run_line():
```

The same happens when trying to attach a remote gdb (I just noticed that it's simpler \
to reproduce with virt2phys).

Also all CPU cores are up ``target`` shows:

```
> targets
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* imx8mq.a53.0       aarch64    little imx8mq.cpu         running
 1  imx8mq.a53.1       aarch64    little imx8mq.cpu         examine deferred
 2  imx8mq.a53.2       aarch64    little imx8mq.cpu         examine deferred
 3  imx8mq.a53.3       aarch64    little imx8mq.cpu         examine deferred
```

The used JTAG debugger is a Olimex ARM-USB-TINY-H.  The full log is attached. The \
board config used is:

```
transport select jtag
adapter_khz 1000
reset_config trst_and_srst
adapter_nsrst_delay 70
set CHIPNAME imx8mq
set CHIPCORES 4
source [find target/imx8m.cfg]
```
    
very similar to NXPs EVK.


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed \
to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at \
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a mailing \
                list, you can unsubscribe from the mailing list.
--===============7224743422175399625==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>That's the issue I "reported" on IRC yesterday. \
Since Debian's pastebin expires I put this into the issue tracker.</p> <hr/>
<p><strong> <a class="alink" \
href="https://sourceforge.net/p/openocd/tickets/201/">[tickets:#201]</a> \
dpmv8_dpm_prepare(): Timeout waiting for dpm prepare when calling \
virt2phys</strong></p> <p><strong>Status:</strong> new<br/>
<strong>Milestone:</strong> 0.9.0<br/>
<strong>Created:</strong> Fri Aug 10, 2018 08:59 AM UTC by Guido Guenther<br/>
<strong>Last Updated:</strong> Fri Aug 10, 2018 08:59 AM UTC<br/>
<strong>Owner:</strong> nobody<br/>
<strong>Attachments:</strong></p>
<ul>
<li><a class="" href="https://sourceforge.net/p/openocd/tickets/201/attachment/debug.log">debug.log</a> \
(45.3 kB; text/x-log)</li> </ul>
<p>When tracing an imx8 board running a linux kernel I'm seeing the following when \
calling virt2phys:</p> <div class="codehilite"><pre><span></span><span \
class="n">Debug</span><span class="o">:</span> <span class="mi">502</span> <span \
class="mi">26591</span> <span class="n">command</span><span class="o">.</span><span \
class="na">c</span><span class="o">:</span><span class="mi">143</span> <span \
class="n">script_debug</span><span class="o">():</span> <span \
class="n">command</span> <span class="o">-</span> <span class="n">ocd_command</span> \
<span class="n">ocd_command</span> <span class="n">type</span> <span \
class="n">ocd_virt2phys</span> <span class="mh">0x10000</span> <span \
class="n">Debug</span><span class="o">:</span> <span class="mi">503</span> <span \
class="mi">26591</span> <span class="n">command</span><span class="o">.</span><span \
class="na">c</span><span class="o">:</span><span class="mi">143</span> <span \
class="n">script_debug</span><span class="o">():</span> <span \
class="n">command</span> <span class="o">-</span> <span class="n">virt2phys</span> \
<span class="n">ocd_virt2phys</span> <span class="mh">0x10000</span> <span \
class="n">Error</span><span class="o">:</span> <span class="mi">507</span> <span \
class="mi">27593</span> <span class="n">armv8_dpm</span><span class="o">.</span><span \
class="na">c</span><span class="o">:</span><span class="mi">179</span> <span \
class="n">dpmv8_dpm_prepare</span><span class="o">():</span> <span \
class="n">Timeout</span> <span class="n">waiting</span> <span class="k">for</span> \
<span class="n">dpm</span> <span class="n">prepare</span> <span \
class="n">Debug</span><span class="o">:</span> <span class="mi">508</span> <span \
class="mi">27593</span> <span class="n">command</span><span class="o">.</span><span \
class="na">c</span><span class="o">:</span><span class="mi">642</span> <span \
class="n">run_command</span><span class="o">():</span> <span class="n">Command</span> \
<span class="n">failed</span> <span class="k">with</span> <span \
class="n">error</span> <span class="n">code</span> <span class="o">-</span><span \
class="mi">4</span> <span class="n">User</span> <span class="o">:</span> <span \
class="mi">509</span> <span class="mi">27593</span> <span \
class="n">command</span><span class="o">.</span><span class="na">c</span><span \
class="o">:</span><span class="mi">705</span> <span \
class="n">command_run_line</span><span class="o">():</span> </pre></div>


<p>The same happens when trying to attach a remote gdb (I just noticed that it's \
simpler to reproduce with virt2phys).</p> <p>Also all CPU cores are up \
<code>target</code> shows:</p> <div class="codehilite"><pre><span></span>&gt; targets
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* imx8mq.a53.0       aarch64    little imx8mq.cpu         running
 1  imx8mq.a53.1       aarch64    little imx8mq.cpu         examine deferred
 2  imx8mq.a53.2       aarch64    little imx8mq.cpu         examine deferred
 3  imx8mq.a53.3       aarch64    little imx8mq.cpu         examine deferred
</pre></div>


<p>The used JTAG debugger is a Olimex ARM-USB-TINY-H.  The full log is attached. The \
board config used is:</p> <div class="codehilite"><pre><span></span>transport select \
jtag adapter_khz 1000
reset_config trst_and_srst
adapter_nsrst_delay 70
set CHIPNAME imx8mq
set CHIPCORES 4
source [find target/imx8m.cfg]
</pre></div>


<p>very similar to NXPs EVK.</p>
<hr/>
<p>Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is \
subscribed to <a href="https://sourceforge.net/p/openocd/tickets/">https://sourceforge.net/p/openocd/tickets/</a></p>
 <p>To unsubscribe from further messages, a project admin can change settings at <a \
href="https://sourceforge.net/p/openocd/admin/tickets/options.">https://sourceforge.net/p/openocd/admin/tickets/options.</a> \
                Or, if this is a mailing list, you can unsubscribe from the mailing \
                list.</p></div>
--===============7224743422175399625==--



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic