<?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のトピックHow to capture crash log using kdump</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-capture-crash-log-using-kdump/m-p/1046628#M154147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I'm using i.Mx8x based custom board.&lt;/P&gt;&lt;P&gt;BSP version is, imx-yocto-L4.14.98_2.0.0_ga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There I'm trying to capture the crash log of my standard kernel if any panic occurs.&lt;/P&gt;&lt;P&gt;I'm using 'kdump' for the same. I'm following below procedure to achieve kdump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Precondition (Kernel)&lt;/P&gt;&lt;P&gt;There are two kernels,&lt;BR /&gt;- Standard (production) kernel - kernel we normally boot&lt;BR /&gt;- Crash (capture) kernel - kernel specially used for collecting crash dumps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Kernel configuration for Standard kernel&lt;BR /&gt;CONFIG_KEXEC=y&lt;BR /&gt;CONFIG_SYSFS=y&lt;BR /&gt;CONFIG_DEBUG_INFO=Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Kernel configuration for capture kernel&lt;BR /&gt;CONFIG_CRASH_DUMP=y&lt;BR /&gt;CONFIG_PROC_VMCORE=y&lt;BR /&gt;(CONFIG_PROC_VMCORE is set by default when CONFIG_CRASH_DUMP is selected.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Keep both a kernel (Image and *.bin) in /boot directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Precondition (kexec)&lt;BR /&gt;Install the "kexec-tools" in Yocto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Boot the Standard kernel with boot parameter "crashkernel"&lt;BR /&gt;-&amp;gt; setenv bootargs 'crashkernel=256M'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Load the capture kernel with following command&lt;BR /&gt;kexec -p /boot/Image --command-line="root=/dev/mmcblk0p2 console=ttyLP0,115200 earlycon=lpuart32,0x5a060000,115200 rootwait rootfstype=ext4 ro 1 maxcpus=1 reset_devices"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) To test,&lt;BR /&gt;echo 1 &amp;gt; /proc/sys/kernel/sysrq&lt;BR /&gt;echo c &amp;gt; /proc/sysrq-trigger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my capture kernel is not booting properly. This also getting crashed in-between.&lt;/P&gt;&lt;P&gt;Is my above procedure correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;J.P.Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2020 06:58:43 GMT</pubDate>
    <dc:creator>Raana</dc:creator>
    <dc:date>2020-07-31T06:58:43Z</dc:date>
    <item>
      <title>How to capture crash log using kdump</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-capture-crash-log-using-kdump/m-p/1046628#M154147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I'm using i.Mx8x based custom board.&lt;/P&gt;&lt;P&gt;BSP version is, imx-yocto-L4.14.98_2.0.0_ga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There I'm trying to capture the crash log of my standard kernel if any panic occurs.&lt;/P&gt;&lt;P&gt;I'm using 'kdump' for the same. I'm following below procedure to achieve kdump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Precondition (Kernel)&lt;/P&gt;&lt;P&gt;There are two kernels,&lt;BR /&gt;- Standard (production) kernel - kernel we normally boot&lt;BR /&gt;- Crash (capture) kernel - kernel specially used for collecting crash dumps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Kernel configuration for Standard kernel&lt;BR /&gt;CONFIG_KEXEC=y&lt;BR /&gt;CONFIG_SYSFS=y&lt;BR /&gt;CONFIG_DEBUG_INFO=Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Kernel configuration for capture kernel&lt;BR /&gt;CONFIG_CRASH_DUMP=y&lt;BR /&gt;CONFIG_PROC_VMCORE=y&lt;BR /&gt;(CONFIG_PROC_VMCORE is set by default when CONFIG_CRASH_DUMP is selected.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Keep both a kernel (Image and *.bin) in /boot directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Precondition (kexec)&lt;BR /&gt;Install the "kexec-tools" in Yocto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Boot the Standard kernel with boot parameter "crashkernel"&lt;BR /&gt;-&amp;gt; setenv bootargs 'crashkernel=256M'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Load the capture kernel with following command&lt;BR /&gt;kexec -p /boot/Image --command-line="root=/dev/mmcblk0p2 console=ttyLP0,115200 earlycon=lpuart32,0x5a060000,115200 rootwait rootfstype=ext4 ro 1 maxcpus=1 reset_devices"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) To test,&lt;BR /&gt;echo 1 &amp;gt; /proc/sys/kernel/sysrq&lt;BR /&gt;echo c &amp;gt; /proc/sysrq-trigger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my capture kernel is not booting properly. This also getting crashed in-between.&lt;/P&gt;&lt;P&gt;Is my above procedure correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;J.P.Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 06:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-capture-crash-log-using-kdump/m-p/1046628#M154147</guid>
      <dc:creator>Raana</dc:creator>
      <dc:date>2020-07-31T06:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture crash log using kdump</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-capture-crash-log-using-kdump/m-p/1046629#M154148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an article regarding to kdump usage:&lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-347175" target="test_blank"&gt;https://community.nxp.com/docs/DOC-347175&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 04:18:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-capture-crash-log-using-kdump/m-p/1046629#M154148</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2020-08-07T04:18:14Z</dc:date>
    </item>
  </channel>
</rss>

