<?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: Kernel crash dump | kexec | kdump | initrd load issue issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1549565#M197273</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;We have followed the same document and we are able to load the secondary kernel as well but its is getting stuck in loading initrd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;crashkernel RAM execution is in&amp;nbsp;&lt;STRONG&gt;0x90000000-0x9fefffff &lt;/STRONG&gt;address, But initrd is loaded in&amp;nbsp;&lt;STRONG&gt;0x83000000+0x00a44000 &lt;/STRONG&gt;region and secondary kernel is not able access initrd and giving below error during boot.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INITRD: 0x83000000+0x00a44000 is not a memory region - disabling initrd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you please help in how to access the initrd from the secondary kernel so it can mount the file system and collect the vmcore dump.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 09:40:21 GMT</pubDate>
    <dc:creator>kevi49</dc:creator>
    <dc:date>2022-11-07T09:40:21Z</dc:date>
    <item>
      <title>Kernel crash dump | kexec | kdump | initrd load issue issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1549167#M197228</link>
      <description>&lt;P&gt;Hi NXP Team,&lt;/P&gt;&lt;P&gt;I am working on iMX6sx processor to enable kernel crash dump and system have have 512Mb of RAM.&lt;/P&gt;&lt;P&gt;Followed the "./Documentation/kdump/kdump.txt" and enabled the required driver and configurations.&lt;/P&gt;&lt;P&gt;Enabled driver:&lt;/P&gt;&lt;P&gt;CONFIG_KEXEC=y&lt;/P&gt;&lt;P&gt;CONFIG_CRASH_DUMP=y&lt;/P&gt;&lt;P&gt;CONFIG_PROC_VMCORE=y&lt;/P&gt;&lt;P&gt;CONFIG_PROC_VMCORE=y&lt;/P&gt;&lt;P&gt;CONFIG_SYSFS=y&lt;/P&gt;&lt;P&gt;CONFIG_RELOCATABLE=y&lt;/P&gt;&lt;P&gt;CONFIG_AUTO_ZRELADDR=y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also able to reserve the crashkernel memory of 64Mb.&lt;/P&gt;&lt;P&gt;console=ttymxc0,115200 loglevel=7 &lt;STRONG&gt;crashkernel=64M retain_initrd&lt;/STRONG&gt; root=/dev/ram0 rw uart_from_osc=1 sigtype=dev accept_dev_sigs=y initrd=0x83000000,0x00A43951&lt;/P&gt;&lt;P&gt;And in primary kernel also getting the log of memory reserved for crashkernel&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reserving 64MB of memory at 2304MB for crashkernel (System RAM: 511MB)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I am trying to load the secondary kernel using the kexec -p mode with below command line options.&lt;/P&gt;&lt;P&gt;kexec --type uImage -d -p /uImage --dtb=/imx6sx_35som_better_emmc.dtb --command-line="console=ttymxc0,115200 root=/dev/ram0 maxcpus=1 reset_devices initrd=0x83000000,0x00A43951"&lt;/P&gt;&lt;P&gt;MEMORY RANGES&lt;BR /&gt;0000000080000000-000000009fefffff (0)&lt;BR /&gt;/przImage header: 0x016f2818 0x00000000 0x003d31a8&lt;BR /&gt;zImage size 0x3d31a8, file size 0x3d31a8&lt;BR /&gt;zImage requires 0x003e41a8 bytes&lt;BR /&gt;Reserved memory ranges&lt;BR /&gt;0000000090000000-0000000093ffffff (0)&lt;BR /&gt;Coredump memory ranges&lt;BR /&gt;0000000080000000-000000008fffffff (0)&lt;BR /&gt;0000000094000000-000000009fefffff (0)&lt;BR /&gt;kernel symbol _stext vaddr = bd310442&lt;BR /&gt;phys offset = 0x80000000, page offset = bc000000&lt;BR /&gt;Using 32-bit ELF core format&lt;BR /&gt;get_crash_notes_per_cpu: crash_notes addr = 9fa91e00, size = 180&lt;BR /&gt;Elf header: p_type = 4, p_offset = 0x9fa91e00 p_paddr = 0x9fa91e00 p_vaddr = 0x0 p_filesz = 0xb4 p_memsz = 0xb4&lt;BR /&gt;vmcoreinfo header: p_type = 4, p_offset = 0x8e1a4000 p_paddr = 0x8e1a4000 p_vaddr = 0x0 p_filesz = 0x1024 p_memsz = 0x1024&lt;BR /&gt;Elf header: p_type = 1, p_offset = 0x80000000 p_paddr = 0x80000000 p_vaddr = 0xbc000000 p_filesz = 0x10000000 p_memsz = 0x10000000&lt;BR /&gt;Elf header: p_type = 1, p_offset = 0x94000000 p_paddr = 0x94000000 p_vaddr = 0xd0000000 p_filesz = 0xbf00000 p_memsz = 0xbf00000&lt;BR /&gt;elfcorehdr: 0x93f00000&lt;BR /&gt;crashkernel: [0x90000000 - 0x93ffffff] (64M)&lt;BR /&gt;memory range: [0x80000000 - 0x8fffffff] (256M)&lt;BR /&gt;memory range: [0x94000000 - 0x9fefffff] (191M)&lt;BR /&gt;kernel command line: "cachepolicy=writealloc console=ttymxc0,115200 loglevel=7 disable_wd=n root=/dev/ram0 rw uart_from_osc=1 sigtype=dev accept_dev_sigs=y maxcpus=1 r&lt;BR /&gt;eset_devices initrd=0x83000000,0x00A43951 elfcorehdr=0x93f00000 mem=64512K"&lt;BR /&gt;Kernel: address=0x90008000 size=0x01374848&lt;BR /&gt;DT : address=0x9137e000 size=0x0000bd8f&lt;BR /&gt;kexec_load: entry = 0x90008000 flags = 0x280001&lt;BR /&gt;nr_segments = 3&lt;BR /&gt;segment[0].buf = 0x76a99048&lt;BR /&gt;segment[0].bufsz = 0x3d31ac&lt;BR /&gt;segment[0].mem = 0x90008000&lt;BR /&gt;segment[0].memsz = 0x3d4000&lt;BR /&gt;segment[1].buf = 0xcd6150&lt;BR /&gt;segment[1].bufsz = 0xbd8f&lt;BR /&gt;segment[1].mem = 0x9137e000&lt;BR /&gt;segment[1].memsz = 0xc000&lt;BR /&gt;segment[2].buf = 0xcd1678&lt;BR /&gt;segment[2].bufsz = 0x400&lt;BR /&gt;segment[2].mem = 0x93f00000&lt;BR /&gt;segment[2].memsz = 0x1000&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;echo c &amp;gt; /proc/sysrq-trigger&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;after entering above command secondary kernel is started booting with below logs but stuck in loading initrd image.&lt;/P&gt;&lt;P&gt;[ 153.055061] [&amp;lt;80214bf8&amp;gt;] (vfs_write) from [&amp;lt;80214e0c&amp;gt;] (SyS_write+0x4c/0xc0)&lt;BR /&gt;[ 153.062123] [&amp;lt;80214e0c&amp;gt;] (SyS_write) from [&amp;lt;80107820&amp;gt;] (__sys_trace_return+0x0/0x20)&lt;BR /&gt;[ 153.069873] Code: e5834000 f57ff04e ebeff373 e3a03000 (e5c34000)&lt;BR /&gt;&lt;STRONG&gt;[ 153.076130] Loading crashdump kernel...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[ 153.080059] Bye!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[ 0.000000] Booting Linux on physical CPU 0x0&lt;/STRONG&gt;&lt;BR /&gt;[ 0.000000] Linux version 4.14.242-00018-g80effdaa9208-dirty (VirtualBox) (gcc version 9.3.0 (GCC)) #71 SMP PREEMPT Sat Nov 5 15:35:09 IST 2022&lt;BR /&gt;[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d&lt;BR /&gt;[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache&lt;BR /&gt;[ 0.000000] OF: fdt: Machine model: Freescale i.MX6 SoloX SG base Board&lt;BR /&gt;[ 0.000000] OF: fdt: search "chosen", depth: 0, uname:&lt;BR /&gt;[ 0.000000] OF: fdt: search "chosen", depth: 1, uname: chosen&lt;BR /&gt;[ 0.000000] OF: fdt: Looking for initrd properties...&lt;BR /&gt;[ 0.000000] OF: fdt: Command line is: console=ttymxc0,115200 root=/dev/ram0 rw maxcpus=1 reset_devices initrd=0x83000000,0x00A43951 elfcorehdr=0x93f00000 mem=64512K&lt;BR /&gt;[ 0.000000] OF: fdt: dt_root_size_cells = 1&lt;BR /&gt;[ 0.000000] OF: fdt: dt_root_addr_cells = 1&lt;BR /&gt;[ 0.000000] OF: fdt: memory scan node memory, reg size 8,&lt;BR /&gt;[ 0.000000] OF: fdt: - 80000000 , 1ff00000&lt;BR /&gt;&lt;STRONG&gt;[ 0.000000] memblock_add: [0x90000000-0x9fefffff] early_init_dt_scan_memory+0x134/0x188&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[ 0.000000] memblock_add: [0x90000000-0x93efffff] arm_add_memory+0x14c/0x174&lt;/STRONG&gt;&lt;BR /&gt;[ 0.000000] Memory policy: Data cache writealloc&lt;BR /&gt;[ 0.000000] memblock_reserve: [0x90100000-0x909b014f] arm_memblock_init+0x30/0x250&lt;BR /&gt;[ 0.000000] ##### arm_initrd_init 243&lt;BR /&gt;[ 0.000000] ##### arm_initrd_init 250&lt;BR /&gt;[ 0.000000] ##### arm_initrd_init 253 initrd_start: 0x0&lt;BR /&gt;[ 0.000000] ##### arm_initrd_init 254 initrd_end: 0x0&lt;BR /&gt;&lt;STRONG&gt;[ 0.000000] INITRD: 0x83000000+0x00a44000 is not a memory region - disabling initrd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;[ 0.000000] memblock_reserve: [0x90004000-0x90007fff] arm_memblock_init+0x1f4/0x250&lt;BR /&gt;[ 0.000000] memblock_reserve: [0x9137e000-0x91389d8e] arm_memblock_init+0x208/0x250&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now secondary kernel booted successfully but initrd image is in the "&lt;STRONG&gt;0x83000000+0x00a44000&lt;/STRONG&gt;" memory range and secondary kernel is running on &lt;STRONG&gt;"0x90000000-0x9fefffff"&amp;nbsp;&lt;/STRONG&gt;which is not accessible and because of this reason board is getting stuck with below logs.&lt;/P&gt;&lt;P&gt;[ 5.071653] List of all partitions:&lt;BR /&gt;[ 5.075163] 0100 131072 ram0&lt;BR /&gt;[ 5.075168] (driver?)&lt;BR /&gt;[ 5.081451] 0101 131072 ram1&lt;BR /&gt;[ 5.081457] (driver?)&lt;BR /&gt;[ 5.087573] 0102 131072 ram2&lt;BR /&gt;[ 5.087577] (driver?)&lt;BR /&gt;[ 5.093881] 0103 131072 ram3&lt;BR /&gt;[ 5.093887] (driver?)&lt;BR /&gt;[ 5.100001] 0104 131072 ram4&lt;BR /&gt;[ 5.100005] (driver?)&lt;BR /&gt;[ 5.106178] 0105 131072 ram5&lt;BR /&gt;[ 5.106183] (driver?)&lt;BR /&gt;[ 5.112323] 0106 131072 ram6&lt;BR /&gt;[ 5.112327] (driver?)&lt;BR /&gt;[ 5.118440] 0107 131072 ram7&lt;BR /&gt;[ 5.118444] (driver?)&lt;BR /&gt;[ 5.124614] 0108 131072 ram8&lt;BR /&gt;[ 5.124619] (driver?)&lt;BR /&gt;[ 5.130732] 0109 131072 ram9&lt;BR /&gt;[ 5.130735] (driver?)&lt;BR /&gt;[ 5.136889] 010a 131072 ram10&lt;BR /&gt;[ 5.136895] (driver?)&lt;BR /&gt;[ 5.143115] 010b 131072 ram11&lt;BR /&gt;[ 5.143120] (driver?)&lt;BR /&gt;[ 5.149318] 010c 131072 ram12&lt;BR /&gt;[ 5.149321] (driver?)&lt;BR /&gt;[ 5.155566] 010d 131072 ram13&lt;BR /&gt;[ 5.155571] (driver?)&lt;BR /&gt;[ 5.161791] 010e 131072 ram14&lt;BR /&gt;[ 5.161795] (driver?)&lt;BR /&gt;[ 5.167994] 010f 131072 ram15&lt;BR /&gt;[ 5.167998] (driver?)&lt;BR /&gt;[ 5.174227] b300 3760128 mmcblk3&lt;BR /&gt;[ 5.174232] driver: mmcblk&lt;BR /&gt;[ 5.181039] b301 196608 mmcblk3p1 031b5d3c-01&lt;BR /&gt;[ 5.181044]&lt;BR /&gt;[ 5.187897] b302 512000 mmcblk3p2 031b5d3c-02&lt;BR /&gt;[ 5.187903]&lt;BR /&gt;[ 5.194733] b303 512000 mmcblk3p3 031b5d3c-03&lt;BR /&gt;[ 5.194737]&lt;BR /&gt;[ 5.201566] b304 1 mmcblk3p4&lt;BR /&gt;[ 5.201570]&lt;BR /&gt;[ 5.207423] b305 65536 mmcblk3p5 031b5d3c-05&lt;BR /&gt;[ 5.207426]&lt;BR /&gt;[ 5.214277] b306 65536 mmcblk3p6 031b5d3c-06&lt;BR /&gt;[ 5.214282]&lt;BR /&gt;[ 5.221089] b307 51200 mmcblk3p7 031b5d3c-07&lt;BR /&gt;[ 5.221093]&lt;BR /&gt;[ 5.227927] 103:00000 51200 mmcblk3p8 031b5d3c-08&lt;BR /&gt;[ 5.227930]&lt;BR /&gt;[ 5.234782] 103:00001 10240 mmcblk3p9 031b5d3c-09&lt;BR /&gt;[ 5.234786]&lt;BR /&gt;[ 5.241616] 103:00002 512000 mmcblk3p10 031b5d3c-0a&lt;BR /&gt;[ 5.241620]&lt;BR /&gt;[ 5.248515] 103:00003 531307 mmcblk3p11 031b5d3c-0b&lt;BR /&gt;[ 5.248519]&lt;BR /&gt;[ 5.255459] 103:00004 20480 mmcblk3p12 031b5d3c-0c&lt;BR /&gt;[ 5.255464]&lt;BR /&gt;[ 5.262383] 103:00005 20480 mmcblk3p13 031b5d3c-0d&lt;BR /&gt;[ 5.262387]&lt;BR /&gt;[ 5.269281] 103:00006 512000 mmcblk3p14 031b5d3c-0e&lt;BR /&gt;[ 5.269284]&lt;BR /&gt;[ 5.276222] 103:00007 696236 mmcblk3p15 031b5d3c-0f&lt;BR /&gt;[ 5.276227]&lt;BR /&gt;[ 5.283154] b310 16384 mmcblk3boot1&lt;BR /&gt;[ 5.283158] (driver?)&lt;BR /&gt;[ 5.289966] b308 16384 mmcblk3boot0&lt;BR /&gt;[ 5.289970] (driver?)&lt;BR /&gt;[ 5.296796] No filesystem could mount root, tried:&lt;BR /&gt;[ 5.296802] ext3&lt;BR /&gt;[ 5.301726] ext4&lt;BR /&gt;[ 5.303656] ext2&lt;BR /&gt;[ 5.305582] vfat&lt;BR /&gt;[ 5.307508] fuseblk&lt;BR /&gt;[ 5.309433]&lt;BR /&gt;[ 5.313137] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)&lt;BR /&gt;[ 5.321412] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I access the initrd memory range from the secondary kernel to boot the board successfully?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 11:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1549167#M197228</guid>
      <dc:creator>kevi49</dc:creator>
      <dc:date>2022-11-05T11:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel crash dump | kexec | kdump | initrd load issue issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1549356#M197247</link>
      <description>&lt;P&gt;Please refer this&amp;nbsp;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 04:56:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1549356#M197247</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-11-07T04:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel crash dump | kexec | kdump | initrd load issue issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1549565#M197273</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;We have followed the same document and we are able to load the secondary kernel as well but its is getting stuck in loading initrd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;crashkernel RAM execution is in&amp;nbsp;&lt;STRONG&gt;0x90000000-0x9fefffff &lt;/STRONG&gt;address, But initrd is loaded in&amp;nbsp;&lt;STRONG&gt;0x83000000+0x00a44000 &lt;/STRONG&gt;region and secondary kernel is not able access initrd and giving below error during boot.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INITRD: 0x83000000+0x00a44000 is not a memory region - disabling initrd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you please help in how to access the initrd from the secondary kernel so it can mount the file system and collect the vmcore dump.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1549565#M197273</guid>
      <dc:creator>kevi49</dc:creator>
      <dc:date>2022-11-07T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel crash dump | kexec | kdump | initrd load issue issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1705031#M210822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201491"&gt;@kevi49&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;how did you configured kdump, can help me with that on imx7.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;shiva.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 13:12:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-crash-dump-kexec-kdump-initrd-load-issue-issue/m-p/1705031#M210822</guid>
      <dc:creator>shiva_bhargav_y</dc:creator>
      <dc:date>2023-08-15T13:12:00Z</dc:date>
    </item>
  </channel>
</rss>

