<?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: Retrieve crash dump on IMX7 SDK in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1705030#M210821</link>
    <description>&lt;P&gt;I m also facing the same error with same board&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 13:04:07 GMT</pubDate>
    <dc:creator>shiva_bhargav_y</dc:creator>
    <dc:date>2023-08-15T13:04:07Z</dc:date>
    <item>
      <title>Retrieve crash dump on IMX7 SDK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1349765#M180974</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get the crash dump when kernel panic occurs. I am using meta-bsp-imx7 gatesgarth branch board support package&lt;/P&gt;&lt;P&gt;&lt;U&gt;Linux version&lt;/U&gt;: 5.10.9 {i.MX Release Distro 5.10-gatesgarth (gatesgarth)}&lt;/P&gt;&lt;P&gt;When I run my app service and I get below kernel panic issue, to debug this I need the crash dump. I followed the link [&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Kdump-Crash-in-I-MX/ta-p/1124321" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Kdump-Crash-in-I-MX/ta-p/1124321&lt;/A&gt;] [Note: Also followed the ppt attached in this link] and it’s not so clear also not able to get the crash dump.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Here is the IMX7 SDK board crash dump kernel configuration settings&lt;/U&gt;:&lt;BR /&gt;CONFIG_PREEMPT_NONE=y&lt;BR /&gt;# CONFIG_PREEMPT_VOLUNTARY is not set&lt;BR /&gt;# CONFIG_PREEMPT is not set&lt;BR /&gt;CONFIG_KEXEC=y&lt;BR /&gt;CONFIG_SYSFS=y&lt;BR /&gt;CONFIG_DEBUG_INFO=y&lt;BR /&gt;CONFIG_CRASH_DUMP=y&lt;BR /&gt;# CONFIG_WLAN is not set&lt;BR /&gt;CONFIG_PROC_VMCORE=y&lt;BR /&gt;CONFIG_PSTORE=y&lt;BR /&gt;CONFIG_PSTORE_DEFLATE_COMPRESS=y&lt;BR /&gt;# CONFIG_PSTORE_LZO_COMPRESS is not set&lt;BR /&gt;# CONFIG_PSTORE_LZ4_COMPRESS is not set&lt;BR /&gt;# CONFIG_PSTORE_LZ4HC_COMPRESS is not set&lt;BR /&gt;# CONFIG_PSTORE_842_COMPRESS is not set&lt;BR /&gt;# CONFIG_PSTORE_ZSTD_COMPRESS is not set&lt;BR /&gt;CONFIG_PSTORE_COMPRESS=y&lt;BR /&gt;CONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT=y&lt;BR /&gt;CONFIG_PSTORE_COMPRESS_DEFAULT="deflate"&lt;BR /&gt;CONFIG_PSTORE_CONSOLE=y&lt;BR /&gt;CONFIG_PSTORE_PMSG=y&lt;BR /&gt;CONFIG_PSTORE_RAM=y&lt;BR /&gt;CONFIG_PSTORE_ZONE=y&lt;BR /&gt;CONFIG_PSTORE_BLK=y&lt;BR /&gt;CONFIG_PSTORE_BLK_BLKDEV=""&lt;BR /&gt;CONFIG_PSTORE_BLK_KMSG_SIZE=64&lt;BR /&gt;CONFIG_PSTORE_BLK_MAX_REASON=2&lt;BR /&gt;CONFIG_PSTORE_BLK_PMSG_SIZE=64&lt;BR /&gt;CONFIG_PSTORE_BLK_CONSOLE_SIZE=64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Packages included to get the crash dump in the driver-image.bb file&lt;/U&gt;&lt;BR /&gt;IMAGE_INSTALL += "tcpdump"&lt;BR /&gt;IMAGE_INSTALL += " kexec-tools makedumpfile"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Note1&lt;/U&gt;: I am not able to update device tree file for this crash dump configuration due to unable to find its location on recipe-kernel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Some info about my trails for getting the crash dump:&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;root@cl-som-imx7:~# crashkernel=512M&lt;BR /&gt;root@cl-som-imx7:~# kexec -lpi /boot/Image --append="root=/dev/mmcblk0p2 rootwait rootfstype=ext4 maxcpus=0 reset_devices"&lt;BR /&gt;Memory for crashkernel is not reserved&lt;BR /&gt;Please reserve memory by passing"crashkernel=X@Y" parameter to kernel&lt;BR /&gt;Then try to loading kdump kernel&lt;BR /&gt;root@cl-som-imx7:~#&lt;BR /&gt;root@cl-som-imx7:~# crashkernel=512M@128M&lt;BR /&gt;root@cl-som-imx7:~# kexec -lpi /boot/Image --append="root=/dev/mmcblk0p2 rootwait rootfstype=ext4 maxcpus=0 reset_devices"&lt;BR /&gt;Memory for crashkernel is not reserved&lt;BR /&gt;Please reserve memory by passing"crashkernel=X@Y" parameter to kernel&lt;BR /&gt;Then try to loading kdump kernel&lt;BR /&gt;root@cl-som-imx7:~#&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Note2&lt;/U&gt;: Unable to set the crashkernel memory.&lt;/P&gt;&lt;P&gt;Please let me know if any additional information required.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your response.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 19:17:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1349765#M180974</guid>
      <dc:creator>jpr_83</dc:creator>
      <dc:date>2021-10-02T19:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve crash dump on IMX7 SDK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1352691#M181275</link>
      <description>&lt;P&gt;Hello jpr_83,&lt;/P&gt;
&lt;P&gt;The L5.10.35 and L5.10.52, run without crash please check your board or compile your project again. Also you are asigned too much memory to the kernel crash but this doesn't not happend on EVK.&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>Fri, 08 Oct 2021 13:01:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1352691#M181275</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2021-10-08T13:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve crash dump on IMX7 SDK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1353755#M181372</link>
      <description>&lt;P&gt;Thanks for the response and I will try to update the Kernel version as you suggested, Any instructions set available for upgrading the kernel version?? Also please see my further investigation notes below.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Note&lt;/U&gt;: Updated crashkernel to 128M as suggested.&lt;/P&gt;&lt;P&gt;we are running NXP i.MX Release Distro 5.10-gatesgarth on NXP imx7 dual.&lt;/P&gt;&lt;P&gt;Note&amp;nbsp;: compulab imx7 official version is linux imx7 4.14.98 version, and we took the development branch gatesgarth&lt;/P&gt;&lt;P&gt;we are using kexec toos 2.0.22 version on it, to analyze the kernel panic issue and we are getting below error [lzma_decompress_file: read on /boot/zImage of 1996179303 bytes failed].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;command given to load kexec:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;kexec -dcip /boot/zImage --command-line="console=ttymxc0,115200 root=/dev/mmcblk0p2 rw rootwait"&lt;/P&gt;&lt;P&gt;Cmdline o/p{&lt;/P&gt;&lt;P&gt;Try gzip decompression&lt;/P&gt;&lt;P&gt;Try LZMA decompression.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;lzma_decompress_file: read on /boot/zImage of 1996179303 bytes failed&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;kernel: 0x765d3008 kernel_size: 0x8705d0&lt;/P&gt;&lt;P&gt;MEMORY RANGES&lt;/P&gt;&lt;P&gt;0000000080000000-00000000bfffffff (0)&lt;/P&gt;&lt;P&gt;zImage header: 0x016f2818 0x00000000 0x008705d0&lt;/P&gt;&lt;P&gt;zImage size 0x8705d0, file size 0x8705d0&lt;/P&gt;&lt;P&gt;offset 0x00001960 tag 0x5a534c4b size 24&lt;/P&gt;&lt;P&gt;zImage requires 0x008815d0 bytes&lt;/P&gt;&lt;P&gt;Decompressed kernel sizes:&lt;/P&gt;&lt;P&gt;text+data 0x014b31b4 bss 0x00075e6c total 0x01529020&lt;/P&gt;&lt;P&gt;Resulting kernel space: 0x01d34784&lt;/P&gt;&lt;P&gt;Reserved memory ranges&lt;/P&gt;&lt;P&gt;00000000b0000000-00000000b7ffffff (0)&lt;/P&gt;&lt;P&gt;Coredump memory ranges&lt;/P&gt;&lt;P&gt;0000000080000000-00000000afffffff (0)&lt;/P&gt;&lt;P&gt;00000000b8000000-00000000bfffffff (0)&lt;/P&gt;&lt;P&gt;kernel symbol _stext vaddr = 80100000&lt;/P&gt;&lt;P&gt;phys offset = 0x80000000, page offset = 80000000&lt;/P&gt;&lt;P&gt;Using 32-bit ELF core format&lt;/P&gt;&lt;P&gt;get_crash_notes_per_cpu: crash_notes addr = bf6c1b00, size = 180&lt;/P&gt;&lt;P&gt;Elf header: p_type = 4, p_offset = 0xbf6c1b00 p_paddr = 0xbf6c1b00 p_vaddr = 0x0 p_filesz = 0xb4 p_memsz = 0xb4&lt;/P&gt;&lt;P&gt;get_crash_notes_per_cpu: crash_notes addr = bf6d5b00, size = 180&lt;/P&gt;&lt;P&gt;Elf header: p_type = 4, p_offset = 0xbf6d5b00 p_paddr = 0xbf6d5b00 p_vaddr = 0x0 p_filesz = 0xb4 p_memsz = 0xb4&lt;/P&gt;&lt;P&gt;vmcoreinfo header: p_type = 4, p_offset = 0x8434a000 p_paddr = 0x8434a000 p_vadd r = 0x0 p_filesz = 0x1024 p_memsz = 0x1024&lt;/P&gt;&lt;P&gt;Elf header: p_type = 1, p_offset = 0x80000000 p_paddr = 0x80000000 p_vaddr = 0x8 0000000 p_filesz = 0x30000000 p_memsz = 0x30000000&lt;/P&gt;&lt;P&gt;Elf header: p_type = 1, p_offset = 0xb8000000 p_paddr = 0xb8000000 p_vaddr = 0xb 8000000 p_filesz = 0x8000000 p_memsz = 0x8000000&lt;/P&gt;&lt;P&gt;elfcorehdr: 0xb7f00000&lt;/P&gt;&lt;P&gt;crashkernel: [0xb0000000 - 0xb7ffffff] (128M)&lt;/P&gt;&lt;P&gt;memory range: [0x80000000 - 0xafffffff] (768M)&lt;/P&gt;&lt;P&gt;memory range: [0xb8000000 - 0xbfffffff] (128M)&lt;/P&gt;&lt;P&gt;kernel command line: "console=ttymxc0,115200 root=/dev/mmcblk0p2 rw rootwait elf corehdr=0xb7f00000 mem=130048K"&lt;/P&gt;&lt;P&gt;Kernel: address=0xb0008000 size=0x01d34784&lt;/P&gt;&lt;P&gt;DT : address=0xb1d3e000 size=0x0000c024&lt;/P&gt;&lt;P&gt;kexec_load: entry = 0xb0008000 flags = 0x280001&lt;/P&gt;&lt;P&gt;nr_segments = 3&lt;/P&gt;&lt;P&gt;segment[0].buf = 0x765d3008&lt;/P&gt;&lt;P&gt;segment[0].bufsz = 0x8705d0&lt;/P&gt;&lt;P&gt;segment[0].mem = 0xb0008000&lt;/P&gt;&lt;P&gt;segment[0].memsz = 0x871000&lt;/P&gt;&lt;P&gt;segment[1].buf = 0xb6b960&lt;/P&gt;&lt;P&gt;segment[1].bufsz = 0xc024&lt;/P&gt;&lt;P&gt;segment[1].mem = 0xb1d3e000&lt;/P&gt;&lt;P&gt;segment[1].memsz = 0xd000&lt;/P&gt;&lt;P&gt;segment[2].buf = 0xb67de8&lt;/P&gt;&lt;P&gt;segment[2].bufsz = 0x400&lt;/P&gt;&lt;P&gt;segment[2].mem = 0xb7f00000&lt;/P&gt;&lt;P&gt;segment[2].memsz = 0x1000&lt;/P&gt;&lt;P&gt;root@cl-som-imx7:~#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we can see that kexec entry has been loaded and crashkernel also been set from the above info.&lt;/P&gt;&lt;P&gt;but when we issue kexec -e, after this command it is throwing error saying nothing has been loaded. and it was unable to load crashkernel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)Since kexec 2.0.22 is official released version of kexec tools which supports ARM architecture as well but why for IMX7 arm zimage decompression technique is failing?&lt;/P&gt;&lt;P&gt;2)Any idea why the crash kernel is not being executed?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 00:23:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1353755#M181372</guid>
      <dc:creator>jpr_83</dc:creator>
      <dc:date>2021-10-12T00:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve crash dump on IMX7 SDK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1705030#M210821</link>
      <description>&lt;P&gt;I m also facing the same error with same board&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 13:04:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Retrieve-crash-dump-on-IMX7-SDK/m-p/1705030#M210821</guid>
      <dc:creator>shiva_bhargav_y</dc:creator>
      <dc:date>2023-08-15T13:04:07Z</dc:date>
    </item>
  </channel>
</rss>

