<?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 Is there anyone who knows how to debug(J-TAG) IMX6DL based on 3.14.28 Kernel? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-anyone-who-knows-how-to-debug-J-TAG-IMX6DL-based-on-3/m-p/440692#M67664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I have something to ask you.&lt;/P&gt;&lt;P&gt;Nowadays I try to analyze 3.14.28 Kernel in IMX6DL.&lt;/P&gt;&lt;P&gt;by using J-TAG debugger, i'd like to repeat "break" and "continue" where i want.&lt;/P&gt;&lt;P&gt;It was successful on 3.10 Kernel.&lt;/P&gt;&lt;P&gt;But it always stopped whenever i tried to do.&lt;/P&gt;&lt;P&gt;Look at the following picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="M2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55416iD253A3AF6DC85513/image-size/large?v=v2&amp;amp;px=999" role="button" title="M2.jpg" alt="M2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; there is one weird thing. without J-TAG attached, it went through well by ramdisk.&lt;/P&gt;&lt;P&gt;Also, J-TAG debugging worked well before the message saying "random: nonblocking pool is initialized" when i tried to attach J-TAG.&lt;/P&gt;&lt;P&gt;But it didn't work after the message whenever i debugged by using J-TAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one more thing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="M3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55417i90910B1D73D355D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="M3.jpg" alt="M3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after "arch_hw_breakpoint_init", program never stopped even though i made break point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on 3.10 Kernel, break point worked well. i did trace the stream of Kernel booting well.&lt;/P&gt;&lt;P&gt;But i don't know why it doesn't work. so&amp;nbsp; i guess there is any funtions or option that makes debug disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i compile 3.10 Kernel, i do following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE&lt;/P&gt;&lt;P&gt;make -j 4 distclean&amp;nbsp; CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd&amp;nbsp; "&amp;nbsp; LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 4 imx_v7_defconfig CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd&amp;nbsp; "&amp;nbsp; LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 4 uImage&amp;nbsp; CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd&amp;nbsp; "&amp;nbsp; LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At that time, i can debug this kernel(uImage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i compile 3.14 Kernel, i do following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source /opt/poky/1.5.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE&lt;/P&gt;&lt;P&gt;make -j 8 distclean CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd" LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 8 imx_v7_defconfig CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd" LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 8 zImage CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd" LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the time, i cannot debug the kernel(zImage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there something special option included in compile command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you let me know how to debug IMX6DL based on 3.14 Kernel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to receiving solution. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 23:58:23 GMT</pubDate>
    <dc:creator>seonghoonyoo</dc:creator>
    <dc:date>2015-06-29T23:58:23Z</dc:date>
    <item>
      <title>Is there anyone who knows how to debug(J-TAG) IMX6DL based on 3.14.28 Kernel?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-anyone-who-knows-how-to-debug-J-TAG-IMX6DL-based-on-3/m-p/440692#M67664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I have something to ask you.&lt;/P&gt;&lt;P&gt;Nowadays I try to analyze 3.14.28 Kernel in IMX6DL.&lt;/P&gt;&lt;P&gt;by using J-TAG debugger, i'd like to repeat "break" and "continue" where i want.&lt;/P&gt;&lt;P&gt;It was successful on 3.10 Kernel.&lt;/P&gt;&lt;P&gt;But it always stopped whenever i tried to do.&lt;/P&gt;&lt;P&gt;Look at the following picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="M2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55416iD253A3AF6DC85513/image-size/large?v=v2&amp;amp;px=999" role="button" title="M2.jpg" alt="M2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; there is one weird thing. without J-TAG attached, it went through well by ramdisk.&lt;/P&gt;&lt;P&gt;Also, J-TAG debugging worked well before the message saying "random: nonblocking pool is initialized" when i tried to attach J-TAG.&lt;/P&gt;&lt;P&gt;But it didn't work after the message whenever i debugged by using J-TAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one more thing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="M3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55417i90910B1D73D355D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="M3.jpg" alt="M3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after "arch_hw_breakpoint_init", program never stopped even though i made break point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on 3.10 Kernel, break point worked well. i did trace the stream of Kernel booting well.&lt;/P&gt;&lt;P&gt;But i don't know why it doesn't work. so&amp;nbsp; i guess there is any funtions or option that makes debug disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i compile 3.10 Kernel, i do following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE&lt;/P&gt;&lt;P&gt;make -j 4 distclean&amp;nbsp; CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd&amp;nbsp; "&amp;nbsp; LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 4 imx_v7_defconfig CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd&amp;nbsp; "&amp;nbsp; LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 4 uImage&amp;nbsp; CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd&amp;nbsp; "&amp;nbsp; LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At that time, i can debug this kernel(uImage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i compile 3.14 Kernel, i do following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source /opt/poky/1.5.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE&lt;/P&gt;&lt;P&gt;make -j 8 distclean CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd" LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 8 imx_v7_defconfig CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd" LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;make -j 8 zImage CC="arm-poky-linux-gnueabi-gcc&amp;nbsp; -mno-thumb-interwork -marm" LD="arm-poky-linux-gnueabi-ld.bfd" LOADADDR=0x10008000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the time, i cannot debug the kernel(zImage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there something special option included in compile command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you let me know how to debug IMX6DL based on 3.14 Kernel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to receiving solution. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 23:58:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-anyone-who-knows-how-to-debug-J-TAG-IMX6DL-based-on-3/m-p/440692#M67664</guid>
      <dc:creator>seonghoonyoo</dc:creator>
      <dc:date>2015-06-29T23:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyone who knows how to debug(J-TAG) IMX6DL based on 3.14.28 Kernel?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-anyone-who-knows-how-to-debug-J-TAG-IMX6DL-based-on-3/m-p/440693#M67665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tried it with kernel 3.14.28 but I have seen that sometimes the symbols need to be relocated (apply an offset)&lt;/P&gt;&lt;P&gt;I think that the below link can be useful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.arm.com/groups/tools/blog/2011/06/07/porting-linux-made-easy-with-ds-5" title="http://community.arm.com/groups/tools/blog/2011/06/07/porting-linux-made-easy-with-ds-5"&gt;Software Development Tools: Porting Linux made ... | ARM Connected Community&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 21:28:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-anyone-who-knows-how-to-debug-J-TAG-IMX6DL-based-on-3/m-p/440693#M67665</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-07-03T21:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyone who knows how to debug(J-TAG) IMX6DL based on 3.14.28 Kernel?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-there-anyone-who-knows-how-to-debug-J-TAG-IMX6DL-based-on-3/m-p/440694#M67666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;after "arch_hw_breakpoint_init", program never stopped even though i made break point.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I ran into this problem as well, building 4.9.9.&amp;nbsp; That function resets the hardware breakpoints that the JTAG is using, so after that function runs they are all gone and the debugger will miss them.&amp;nbsp; Stepping through that function you might notice that it interacts with the debugger using "&lt;SPAN style="font-family: andale mono, monospace;"&gt;mrc p14&lt;/SPAN&gt;" (&lt;A class="link-titled" href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0363g/Bcgcbfif.html" title="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0363g/Bcgcbfif.html"&gt;ARM Information Center&lt;/A&gt;).&amp;nbsp; Due to optimizations I couldn't figure out exactly what instruction was clearing the breakpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can disable that function by disabling &lt;SPAN style="font-family: andale mono, monospace;"&gt;CONFIG_PERF_EVENTS&lt;/SPAN&gt; in `&lt;SPAN style="font-family: andale mono, monospace;"&gt;make menuconfig&lt;/SPAN&gt;`, which uses the hardware breakpoints for performance monitoring.&amp;nbsp; That probably isn't necessary while you're debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;CONFIG_DEBUG_INFO=y&lt;/SPAN&gt; and &lt;SPAN style="font-family: andale mono, monospace;"&gt;CONFIG_GDB_SCRIPTS=y&lt;/SPAN&gt; are also useful during kernel debugging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2019 00:36:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-there-anyone-who-knows-how-to-debug-J-TAG-IMX6DL-based-on-3/m-p/440694#M67666</guid>
      <dc:creator>remingtonfurman</dc:creator>
      <dc:date>2019-05-01T00:36:13Z</dc:date>
    </item>
  </channel>
</rss>

