<?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のトピックRe: IMX6 GDB debugging</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-GDB-debugging/m-p/703759#M109337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not necessary you just need to build kernel with &lt;SPAN style="font-size: 10.0pt; color: black;"&gt;CONFIG_DEBUG_INFO=y&amp;nbsp; option&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;======================= GDB ==================&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;cd /sys/devices/system/cpu/cpu0/cpuidle/state1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu0/cpuidle/state1/disable&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;sudo JLinkGDBServer -if JTAG -endian little -device MCIMX6L8 -select USB -noir -noreset&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;CONFIG_DEBUG_INFO=y # this will compile in debugging symbols and info&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;$ gdb-[CROSS-COMPILE] /path/to/linux/build/vmlinux&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2017 17:46:38 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2017-08-29T17:46:38Z</dc:date>
    <item>
      <title>IMX6 GDB debugging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-GDB-debugging/m-p/703758#M109336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using GDB to debug programs in such a way:&lt;/P&gt;&lt;P&gt;1. Establish ethernet connection between the board and the PC.&lt;/P&gt;&lt;P&gt;2. Run command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;gdbserver :1234 myApp&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;on board&lt;/P&gt;&lt;P&gt;3. Run&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;arm-none-eabi-gdb myApp&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;on PC&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Run&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;target remote board_IP:1234&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;on PC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that the debugging session is started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm intersted - is there a way to debug running linux kernel with GDB?&lt;/P&gt;&lt;P&gt;I can use command:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;arm-none-eabi-gdb vmlinux&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;at step 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what command should be executed in order to start gdbserver on board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 12:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-GDB-debugging/m-p/703758#M109336</guid>
      <dc:creator>john_smith</dc:creator>
      <dc:date>2017-08-22T12:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 GDB debugging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-GDB-debugging/m-p/703759#M109337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not necessary you just need to build kernel with &lt;SPAN style="font-size: 10.0pt; color: black;"&gt;CONFIG_DEBUG_INFO=y&amp;nbsp; option&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;======================= GDB ==================&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;cd /sys/devices/system/cpu/cpu0/cpuidle/state1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu0/cpuidle/state1/disable&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;sudo JLinkGDBServer -if JTAG -endian little -device MCIMX6L8 -select USB -noir -noreset&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;CONFIG_DEBUG_INFO=y # this will compile in debugging symbols and info&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;EM&gt;&lt;STRONG style="color: black; font-size: 10pt;"&gt;$ gdb-[CROSS-COMPILE] /path/to/linux/build/vmlinux&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 17:46:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-GDB-debugging/m-p/703759#M109337</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2017-08-29T17:46:38Z</dc:date>
    </item>
  </channel>
</rss>

