<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: KGDB on i.MX8 serial in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/KGDB-on-i-MX8-serial/m-p/1221965#M168507</link>
    <description>&lt;P&gt;Hello Israel,&lt;/P&gt;&lt;P&gt;Thank you very much for the detailed description. I will try to replicate it and see if I can do that.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Lorenzo Giraudi&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 13:24:38 GMT</pubDate>
    <dc:creator>lorenzo_giraudi</dc:creator>
    <dc:date>2021-01-27T13:24:38Z</dc:date>
    <item>
      <title>KGDB on i.MX8 serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/KGDB-on-i-MX8-serial/m-p/1172226#M163937</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;Hello,&lt;/P&gt;&lt;P&gt;I am trying to debug the Linux Kernel remotely using KGDB over the serial port.&lt;/P&gt;&lt;P&gt;I followed the instruction shown here: &lt;A href="https://elinux.org/images/1/1b/ELC19_Serial_kdb_kgdb.pdf" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://elinux.org/images/1/1b/ELC19_Serial_kdb_kgdb.pdf&lt;/A&gt; but can't make it to work. This is what I get:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I can do echo ttyLP0 &amp;gt; /sys/module/kgdboc/parameters/kgdboc and it gets successfully registered (note: ttyLP0 is my console too)&lt;/LI&gt;&lt;LI&gt;when I do echo g &amp;gt; /proc/sysrq-trigger I get messages telling that the kernel dropped into kdb, then I see the kdb prompt but it stops there, when I try to type nothing happens&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have the idea that it may involve the polling functions &lt;SPAN class="blob-code-inner blob-code-marker"&gt;&lt;SPAN class="pl-en"&gt;lpuart32_poll_put_char and&amp;nbsp; lpuart32_poll_get_char but I do not know how to debug it. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="blob-code-inner blob-code-marker"&gt;&lt;SPAN class="pl-en"&gt;It would be great to know if someone from NXP ever tried it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="blob-code-inner blob-code-marker"&gt;&lt;SPAN class="pl-en"&gt;BR,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="blob-code-inner blob-code-marker"&gt;&lt;SPAN class="pl-en"&gt;Lorenzo&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Oct 2020 06:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/KGDB-on-i-MX8-serial/m-p/1172226#M163937</guid>
      <dc:creator>lorenzo_giraudi</dc:creator>
      <dc:date>2020-10-23T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: KGDB on i.MX8 serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/KGDB-on-i-MX8-serial/m-p/1200968#M166628</link>
      <description>&lt;DIV id="bodyDisplay_12" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hi Lorenzo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Connecting the debugger can work in my side, as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_1.png" style="width: 924px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132930i842E4D925C7D4FFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For gdb-multiarch, customer need to "set architecture aarch64" firstly,then "target remote /dev/ttyUSBx".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_2.png" style="width: 945px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132931iF6584339E50C3DCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Another method:&lt;/P&gt;
&lt;P&gt;If you want to extending the terminals, they can use agent-proxy. The steps is as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_3.png" style="width: 899px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132932i7C6ACA5D8460817A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;in another terminal:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_4.png" style="width: 895px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132933i1F81E3E27D36655E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then in the third terminal, executing "gdb-multiarch vmlinux" or "aarch64-poky-linux-gdb vmlinux"&amp;nbsp; to connect target.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage_5.png" style="width: 923px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132934i499033448908E907/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note the last picture, "target remote localhost:5551" when connecting target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Israel H.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Dec 2020 06:12:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/KGDB-on-i-MX8-serial/m-p/1200968#M166628</guid>
      <dc:creator>nxf63675</dc:creator>
      <dc:date>2020-12-17T06:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: KGDB on i.MX8 serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/KGDB-on-i-MX8-serial/m-p/1221965#M168507</link>
      <description>&lt;P&gt;Hello Israel,&lt;/P&gt;&lt;P&gt;Thank you very much for the detailed description. I will try to replicate it and see if I can do that.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Lorenzo Giraudi&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 13:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/KGDB-on-i-MX8-serial/m-p/1221965#M168507</guid>
      <dc:creator>lorenzo_giraudi</dc:creator>
      <dc:date>2021-01-27T13:24:38Z</dc:date>
    </item>
  </channel>
</rss>

