<?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>i.MX Processors中的主题 sysrq function for kgdb on imx53</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237713#M19196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to use kgdb on imx53loco board.Kgdb was working successfully on imx6sabrelite board.I enabled the same kernel features which i did for imx6 to imx53loco board.I am using linux-kernel-2.6.38 kernel on imx53.Here if I do the sysrq command"echo g &amp;gt; /proc/sysrq-trigger", it is throwing HELP options as "&lt;/P&gt;&lt;P&gt;SysRq : HELP : loglevel(0-9) reBoot Crash&lt;/P&gt;&lt;P&gt;&amp;gt; terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) t&lt;/P&gt;&lt;P&gt;&amp;gt; haw-filesystems(J) saK show-memory-usage(M) nice-all-RT-tasks(N)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I do "echo b &amp;gt; /proc/sysrq-trigger ", it is working properly and the system boots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone solve this issue?..Thanks in advance&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 07:11:30 GMT</pubDate>
    <dc:creator>Deepu</dc:creator>
    <dc:date>2013-06-25T07:11:30Z</dc:date>
    <item>
      <title>sysrq function for kgdb on imx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237713#M19196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to use kgdb on imx53loco board.Kgdb was working successfully on imx6sabrelite board.I enabled the same kernel features which i did for imx6 to imx53loco board.I am using linux-kernel-2.6.38 kernel on imx53.Here if I do the sysrq command"echo g &amp;gt; /proc/sysrq-trigger", it is throwing HELP options as "&lt;/P&gt;&lt;P&gt;SysRq : HELP : loglevel(0-9) reBoot Crash&lt;/P&gt;&lt;P&gt;&amp;gt; terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) t&lt;/P&gt;&lt;P&gt;&amp;gt; haw-filesystems(J) saK show-memory-usage(M) nice-all-RT-tasks(N)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I do "echo b &amp;gt; /proc/sysrq-trigger ", it is working properly and the system boots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone solve this issue?..Thanks in advance&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 07:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237713#M19196</guid>
      <dc:creator>Deepu</dc:creator>
      <dc:date>2013-06-25T07:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: sysrq function for kgdb on imx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237714#M19197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;Sorry to bother you.&lt;/P&gt;&lt;P&gt;As I am also working on the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;imx6sabrelite, &lt;/SPAN&gt;would you please help to share what you have done to let kgdb to work on &lt;SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; imx6sabrelite board &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;successfully?&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Would you give the detailed instructions step by step? My software source code base is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;L3.0.35_4.0.0_130424&lt;/EM&gt;. &lt;/SPAN&gt;Thank you so much in advance.&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 01:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237714#M19197</guid>
      <dc:creator>LeviathanSteven</dc:creator>
      <dc:date>2013-08-01T01:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: sysrq function for kgdb on imx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237715#M19198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;You have first configure your target kernel as follows&lt;/P&gt;&lt;P&gt;CONFIG_FRAME_POINTER=y&lt;/P&gt;&lt;P&gt;CONFIG_DEBUG_KERNEL=y&lt;/P&gt;&lt;P&gt;CONFIG_KGDB=y&lt;/P&gt;&lt;P&gt;CONFIG_DEBUG_INFO=y&lt;/P&gt;&lt;P&gt;CONFIG_KGDB_SERIAL_CONSOLE=y (here I am using serial port for kgdb)&lt;/P&gt;&lt;P&gt;CONFIG_MAGIC_SYSRQ= y (for sysrq functions).&lt;/P&gt;&lt;P&gt;Now compile kernel with imx6 configuration file.&lt;/P&gt;&lt;P&gt;Boot the target with this compiled kernel.You have to tell tell target which serial port you are going to use for kgdb pupose.In my case I am using the same console port for kgdb also.This settings you can do either through kernel parameters or via sysfs entry&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;1) As a kernel parameter&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Add the following parameter to bootargs&lt;/P&gt;&lt;P&gt;kgdboc=/dev/ttymxc1,115200 to your arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are using sysfs entry, do like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;echo /dev/ttymxc1,115200 &amp;gt; /sys/module/kgdboc/parameters/kgdboc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Since same serial port is used for both the console and debugging, we use agent proxy. Through agent proxy we get the target console as well as we do the debugging.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Source for compiling agentproxy is available at the following link&lt;/P&gt;&lt;P&gt;&lt;A href="https://kernel.googlesource.com/pub/scm/utils/kernel/kgdb/agent-proxy/+/agent-proxy-1.96"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://kernel.googlesource.com/pub/scm/utils/kernel/kgdb/agent-proxy/+/agent-proxy-1.96" target="test_blank"&gt;https://kernel.googlesource.com/pub/scm/utils/kernel/kgdb/agent-proxy/+/agent-proxy-1.96&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After compiling for host pc ,run it as follows&lt;/P&gt;&lt;P&gt;sudo ./agent-proxy 5550^5551 0 /dev/ttyS0,15200&lt;/P&gt;&lt;P&gt;Now you can see target terminal through telnet with this agentproxy support&lt;/P&gt;&lt;P&gt;sudo&amp;nbsp; telnet localhost 5550&lt;/P&gt;&lt;P&gt;(It is better to use this telnet instead of minicom where only this agent proxy support comes.)&lt;/P&gt;&lt;P&gt;When you want to start debugging, the target system has to enter debug mode from normal mode. We can do that in this way in target&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;echo g &amp;gt; /proc/sysrq-trigger &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Now it will enter debugger mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now from host side run gdb on vmlinux of the arm compiled kernel.&lt;/P&gt;&lt;P&gt;Go to the corresponding kernel source directory and do like this&lt;/P&gt;&lt;P&gt;arm-fsl-linux-gnueabi-gdb ./vmlinux&lt;/P&gt;&lt;P&gt;Now it will show gdb terminal .From there you have to connect to target for kgdb,&lt;/P&gt;&lt;P&gt;$target remote /dev/ttySO&lt;/P&gt;&lt;P&gt;In my case my host serial port is /dev/ttyS0.&lt;/P&gt;&lt;P&gt;Now it will get connected to target. Here after you can use gdb commands to debug the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You try this way.If any problem comes please post it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 04:45:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237715#M19198</guid>
      <dc:creator>Deepu</dc:creator>
      <dc:date>2013-08-01T04:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: sysrq function for kgdb on imx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237716#M19199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepu&lt;/P&gt;&lt;P&gt;The kgdb is not freescale hardware related feature. It is pure Linux debug method related. Freescale would not support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yixing Kong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 08:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237716#M19199</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2013-09-09T08:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: sysrq function for kgdb on imx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237717#M19200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to debug the kernel with GDB based on below steps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boot arguments:&lt;/P&gt;&lt;P&gt;setenv bootargs console=ttymxc1,115200 kgdbwait kgdboc=ttymxc0,115200 root=/dev/nfs nfsroot=&amp;lt;ServerIP&amp;gt;:/nfs-setup/rfs ip=&amp;lt;Target-IP&amp;gt;::&amp;lt;Gateway-IP&amp;gt;:&amp;lt;Netmask-IP&amp;gt;:iMX6:eth0:off rw rootwait &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After board boots, the kernel entering in to GDB to debug the kernel as: &lt;/P&gt;&lt;P&gt;imx-sdma 20ec000.sdma: initialized&lt;/P&gt;&lt;P&gt;Serial: IMX driver&lt;/P&gt;&lt;P&gt;2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX&lt;/P&gt;&lt;P&gt;21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX&lt;/P&gt;&lt;P&gt;console [ttymxc1] enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the vmlinux from host, I get the below error:&lt;/P&gt;&lt;P&gt;(gdb) target remote /dev/ttyUSB1&lt;/P&gt;&lt;P&gt;Remote debugging using /dev/ttyUSB1&lt;/P&gt;&lt;P&gt;Ignoring packet error, continuing...&lt;/P&gt;&lt;P&gt;warning: unrecognized item "timeout" in "qSupported" response&lt;/P&gt;&lt;P&gt;Ignoring packet error, continuing...&lt;/P&gt;&lt;P&gt;Ignoring packet error, continuing...&lt;/P&gt;&lt;P&gt;Bogus trace status reply from target: timeout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the same UART port for both console and KGDBOC, I could debug the kernel based on below arguments&lt;/P&gt;&lt;P&gt;setenv bootargs console=ttymxc1,115200 kgdbwait kgdboc=ttymxc1,115200 root=/dev/nfs nfsroot=&amp;lt;ServerIP&amp;gt;:/nfs-setup/rfs ip=&amp;lt;Target-IP&amp;gt;::&amp;lt;Gateway-IP&amp;gt;:&amp;lt;Netmask-IP&amp;gt;:iMX6:eth0:off rw rootwait&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;(gdb) target remote /dev/ttyUSB0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why can't I debug the kernel, when I use one UART for console and another UART for kgdboc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dharanendiran.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 06:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237717#M19200</guid>
      <dc:creator>dharani_r</dc:creator>
      <dc:date>2014-12-15T06:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: sysrq function for kgdb on imx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237718#M19201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one reply my issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 11:10:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237718#M19201</guid>
      <dc:creator>dharani_r</dc:creator>
      <dc:date>2014-12-18T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: sysrq function for kgdb on imx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237719#M19202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dharani&lt;/P&gt;&lt;P&gt;Could you please create another DI since this DI has been closed?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 06:25:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sysrq-function-for-kgdb-on-imx53/m-p/237719#M19202</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-12-19T06:25:15Z</dc:date>
    </item>
  </channel>
</rss>

