<?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 kernel debug on iMX8 board over serial in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1166086#M163323</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846" target="_self"&gt;Bio_TICFSL&lt;/A&gt;&amp;nbsp;thank you for your response. I am able to do a normal application debug with gdb. What I actually need is to debug the kernel and drivers with kgdb (not the user space gdb). Any experience with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 13:10:49 GMT</pubDate>
    <dc:creator>stuartrubin</dc:creator>
    <dc:date>2020-10-12T13:10:49Z</dc:date>
    <item>
      <title>kgdb kernel debug on iMX8 board over serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1165354#M163235</link>
      <description>&lt;P&gt;Has anyone had success running kgdb to debug the kernel on an iMX8 (e.g. imx8-qm-mek) board? Connected via serial port? I'm close, but can't quite get it working. All suggestions welcome. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1165354#M163235</guid>
      <dc:creator>stuartrubin</dc:creator>
      <dc:date>2020-10-09T17:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: kgdb kernel debug on iMX8 board over serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1166074#M163318</link>
      <description>&lt;P&gt;Hello stuartrubin,&lt;/P&gt;
&lt;P&gt;There may be a different version of gdb depending on the BSP you are using but this package is part of the open embedded layer so you may be able to import the recipe from an older release of the Open Embedded layers. However, you would need to be careful with the dependencies for the older version as there may be conflicts.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.emcraft.com/som/imx-8m/remote-debugging-with-gdb" target="_blank"&gt;https://www.emcraft.com/som/imx-8m/remote-debugging-with-gdb&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1166074#M163318</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-10-12T12:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: kgdb kernel debug on iMX8 board over serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1166086#M163323</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846" target="_self"&gt;Bio_TICFSL&lt;/A&gt;&amp;nbsp;thank you for your response. I am able to do a normal application debug with gdb. What I actually need is to debug the kernel and drivers with kgdb (not the user space gdb). Any experience with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 13:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1166086#M163323</guid>
      <dc:creator>stuartrubin</dc:creator>
      <dc:date>2020-10-12T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: kgdb kernel debug on iMX8 board over serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1168917#M163588</link>
      <description>&lt;P&gt;&amp;nbsp;Hi stuartrubin,&lt;/P&gt;&lt;P&gt;I was going to post the same question!&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"&gt;https://elinux.org/images/1/1b/ELC19_Serial_kdb_kgdb.pdf&lt;/A&gt; but can 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;</description>
      <pubDate>Fri, 16 Oct 2020 13:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1168917#M163588</guid>
      <dc:creator>lorenzo_giraudi</dc:creator>
      <dc:date>2020-10-16T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: kgdb kernel debug on iMX8 board over serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1169355#M163651</link>
      <description>&lt;P&gt;Someone from NXP ever tried this?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 06:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1169355#M163651</guid>
      <dc:creator>lorenzo_giraudi</dc:creator>
      <dc:date>2020-10-19T06:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: kgdb kernel debug on iMX8 board over serial</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1374514#M183311</link>
      <description>&lt;P&gt;I think im having the same issue, did you ever manage to find a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ 48.900382] Internal error: synchronous external abort: 96000210 [#2] PREEMPT SMP&lt;BR /&gt;[ 48.907890] CPU: 2 PID: 22 Comm: kworker/2:0 Tainted: G D 5.10.35-lts-5.10.y+g386cc8f1255e #26&lt;BR /&gt;[ 48.917805] Hardware name: Freescale i.MX8QXP MEK AME (DT)&lt;BR /&gt;[ 48.923309] Workqueue: events deferred_probe_work_func&lt;BR /&gt;[ 48.928456] Call trace:&lt;BR /&gt;[ 48.930912] dump_backtrace+0x0/0x1a0&lt;BR /&gt;[ 48.934574] show_stack+0x18/0x70&lt;BR /&gt;[ 48.937895] dump_stack+0xd0/0x12c&lt;BR /&gt;[ 48.941300] kgdb_reenter_check.part.0+0xf0/0x114&lt;BR /&gt;[ 48.946006] kgdb_handle_exception+0x124/0x140&lt;BR /&gt;[ 48.950456] kgdb_notify+0x34/0x70&lt;BR /&gt;[ 48.953862] notify_die+0x7c/0xcc&lt;BR /&gt;[ 48.957179] die+0xa8/0x244&lt;BR /&gt;[ 48.959976] arm64_notify_die+0xb8/0xd0&lt;BR /&gt;[ 48.963816] do_sea+0x5c/0xa0&lt;BR /&gt;[ 48.966787] do_mem_abort+0x44/0xa4&lt;BR /&gt;[ 48.970280] el1_abort+0x44/0x6c&lt;BR /&gt;[ 48.973509] el1_sync_handler+0xac/0xd0&lt;BR /&gt;[ 48.977351] el1_sync+0x80/0x100&lt;BR /&gt;&lt;STRONG&gt;[ 48.980585] lpuart32_poll_put_char+0x60/0xc4&lt;/STRONG&gt;&lt;BR /&gt;[ 48.984945] kgdboc_put_char+0x34/0x4c&lt;BR /&gt;[ 48.988696] put_packet+0x40/0x130&lt;BR /&gt;[ 48.992102] gdb_serial_stub+0xe6c/0xfa0&lt;BR /&gt;[ 48.996028] kgdb_cpu_enter+0x1b4/0x650&lt;BR /&gt;[ 48.999866] kgdb_handle_exception+0xd8/0x140&lt;BR /&gt;[ 49.004229] kgdb_brk_fn+0x20/0x30&lt;BR /&gt;[ 49.007635] call_break_hook+0x6c/0x80&lt;BR /&gt;[ 49.011388] brk_handler+0x1c/0x60&lt;BR /&gt;[ 49.014797] do_debug_exception+0xc4/0x150&lt;BR /&gt;[ 49.018894] el1_dbg+0x34/0x50&lt;BR /&gt;[ 49.021952] el1_sync_handler+0x9c/0xd0&lt;BR /&gt;[ 49.025790] el1_sync+0x80/0x100&lt;BR /&gt;[ 49.029026] pwm_buzzer_probe+0x0/0x520&lt;BR /&gt;[ 49.032865] really_probe+0xe4/0x4c0&lt;BR /&gt;[ 49.036444] driver_probe_device+0x58/0xc0&lt;BR /&gt;[ 49.040544] __device_attach_driver+0xa8/0x10c&lt;BR /&gt;[ 49.044992] bus_for_each_drv+0x78/0xd0&lt;BR /&gt;[ 49.048832] __device_attach+0xd8/0x180&lt;BR /&gt;[ 49.052670] device_initial_probe+0x14/0x20&lt;BR /&gt;[ 49.056857] bus_probe_device+0x9c/0xa4&lt;BR /&gt;[ 49.060697] deferred_probe_work_func+0x80/0xc0&lt;BR /&gt;[ 49.065236] process_one_work+0x1cc/0x350&lt;BR /&gt;[ 49.069248] worker_thread+0x2bc/0x46c&lt;BR /&gt;[ 49.073001] kthread+0x154/0x160&lt;BR /&gt;[ 49.076232] ret_from_fork+0x10/0x30&lt;BR /&gt;[ 49.079811] Kernel panic - not syncing: Recursive entry to debugger&lt;BR /&gt;[ 49.086087] SMP: stopping secondary CPUs&lt;BR /&gt;[ 50.090013] SMP: failed to stop secondary CPUs 0-3&lt;BR /&gt;[ 50.094805] Kernel Offset: disabled&lt;BR /&gt;[ 50.098298] CPU features: 0x0240002,20002008&lt;BR /&gt;[ 50.102570] Memory Limit: none&lt;BR /&gt;[ 50.105635] ---[ end Kernel panic - not syncing: Recursive entry to debugger ]---&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 18:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kgdb-kernel-debug-on-iMX8-board-over-serial/m-p/1374514#M183311</guid>
      <dc:creator>r_veens</dc:creator>
      <dc:date>2021-11-19T18:21:49Z</dc:date>
    </item>
  </channel>
</rss>

