<?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: kexec/kdump couldn't work in MX6Q/SDL-SabreSD in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/kexec-kdump-couldn-t-work-in-MX6Q-SDL-SabreSD/m-p/605052#M91177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a patch for 3.14 kernel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FFreescale%2Flinux-fslc%2Fcommit%2Ffee3fd4fd2ad136b26226346c3f8b446cc120bf5" rel="nofollow" target="_blank"&gt;https://github.com/Freescale/linux-fslc/commit/fee3fd4fd2ad136b26226346c3f8b446cc120bf5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We did not test it with 3.10 kernel however you can try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&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>Thu, 15 Dec 2016 04:01:32 GMT</pubDate>
    <dc:creator>b36401</dc:creator>
    <dc:date>2016-12-15T04:01:32Z</dc:date>
    <item>
      <title>kexec/kdump couldn't work in MX6Q/SDL-SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kexec-kdump-couldn-t-work-in-MX6Q-SDL-SabreSD/m-p/605051#M91176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. My env:&lt;BR /&gt;HW version:&lt;/P&gt;&lt;P&gt;CPU: &amp;nbsp; Freescale i.MX6SOLO rev1.2 at 792 MHz&lt;BR /&gt;Board: MX6Q/SDL-SabreSD&lt;/P&gt;&lt;P&gt;DDR: 512M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SW version:&lt;/P&gt;&lt;P&gt;Kernel version: 3.10.53&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. kexec produce:&lt;/P&gt;&lt;P&gt;a, set up system kernel bootargs&lt;BR /&gt;nosmp rootwait root=/dev/mmcblk0p2 console=ttymxc0,115200&amp;nbsp;crashkernel=50M@0x13000000&lt;BR /&gt;b. run kexec command&lt;BR /&gt;./kexec -d -p zImage_crash --dtb uImage-imx6dl-sabresd.dtb --command-line="init=/init&amp;nbsp;&lt;SPAN&gt;nosmp rootwait root=/dev/mmcblk0p2 console=ttymxc0,115200&lt;/SPAN&gt;"&lt;BR /&gt;output log:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;kernel: 0x75d79008 kernel_size: 41a1e0&lt;BR /&gt;phys_offset: 0x10000000&lt;BR /&gt;get_crash_notes_per_cpu: crash_nSYSC_kexec_load: E&lt;BR /&gt;otes addr = 10fa6790&lt;BR /&gt;Elf header: p_type = 4, p_offset = 0x10fa6790 p_paddr = 0x10fa6790 p_vaddr = 0x0 p_filesz = 0x400 p_memsz = 0x400&lt;BR /&gt;vmcoreinfo header: p_type = 4, p_offset = 0x10b78c9c p_paddr = 0x10b78c9c p_vaddr = 0x0 p_filesz = 0x1000 p_memsz = 0x1000&lt;BR /&gt;Elf header: p_type = 1, p_offset = 0x10000000 p_paddr = 0x10000000 p_vaddr = 0xc0000000 p_filesz = 0x3000000 p_memsz = 0x3000000&lt;BR /&gt;Elf header: p_type = 1, p_offset = 0x16200000 p_paddr = 0x16200000 p_vaddr = 0xc6200000 p_filesz = 0x19e00000 p_memsz = 0x19e00000&lt;BR /&gt;elfcorehdr: 0x16100000&lt;BR /&gt;crashkernel: [0x13000000 - 0x161fffff] (50M)&lt;BR /&gt;memory range: [0x10000000 - 0x12ffffff] (48M)&lt;BR /&gt;memory range: [0x16200000 - 0x2fffffff] (414M)&lt;BR /&gt;kernel command line: "init=/init nosmp rootwait root=/dev/mmcblk0p2 console=ttymxc0,115200&amp;nbsp;elfcorehdr=0x16100000 mem=50176K"&lt;BR /&gt;kexec_load: entry = 0x13010000 flags = 280001&lt;BR /&gt;nr_segments = 3&lt;BR /&gt;segment[0].buf = 0x75d79008&lt;BR /&gt;segment[0].bufsz = 41a1e0&lt;BR /&gt;segment[0].mem = 0x13010000&lt;BR /&gt;segment[0].memsz = 41b000&lt;BR /&gt;segment[1].buf = 0x17bb850&lt;BR /&gt;segment[1].bufsz = cbc7&lt;BR /&gt;segment[1].mem = 0x14069000&lt;BR /&gt;segment[1].memsz = d000&lt;BR /&gt;segment[2].buf = 0x17bb410&lt;BR /&gt;segment[2].bufsz = 400&lt;BR /&gt;segment[2].mem = 0x16100000&lt;BR /&gt;segment[2].memsz = 1000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;3. run command "echo c &amp;gt; /proc/sysrq-trigger"&lt;/P&gt;&lt;P&gt;system kernel occurred oops, after kernel is running in&amp;nbsp;__soft_restart(void *addr),&lt;BR /&gt;I have confirmed the error point is follow:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void __soft_restart(void *addr)&lt;BR /&gt;{&lt;BR /&gt; printk("%s: E addr = 0x%p\n", __func__, addr);&lt;BR /&gt; phys_reset_t phys_reset;&lt;/P&gt;&lt;P&gt;/* Take out a flat memory mapping. */&lt;BR /&gt; setup_mm_for_reboot();&lt;BR /&gt; printk("%s: E 111\n", __func__);&lt;/P&gt;&lt;P&gt;/* Clean and invalidate caches */&lt;BR /&gt; flush_cache_all();&lt;/P&gt;&lt;P&gt;printk("%s: E 222\n", __func__);&lt;BR /&gt; /* Turn off caching */&lt;BR /&gt; cpu_proc_fin();&lt;/P&gt;&lt;P&gt;printk("%s: E 333\n", __func__);&lt;BR /&gt; printk("%s: E 333 addr = 0x%p\n", __func__, addr);&lt;BR /&gt; /* Push out any further dirty data, and ensure cache is empty */&lt;BR /&gt; flush_cache_all(); &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;============= oops in here!&lt;/P&gt;&lt;P&gt;printk("%s: E 444\n", __func__);&lt;BR /&gt; /* Switch to the identity mapping. */&lt;BR /&gt; phys_reset = (phys_reset_t)(unsigned long)virt_to_phys(cpu_reset);&lt;BR /&gt; __phys_debug = (unsigned long)virt_to_phys(imx_uart_debug);&lt;BR /&gt; printk("%s: E 555\n", __func__);&lt;BR /&gt; printk("%s: E phys_reset = 0x%p, __phys_debug = 0x%lx\n", __func__, phys_reset, __phys_debug);&lt;BR /&gt; phys_reset((unsigned long)addr);&lt;BR /&gt; printk("%s: X\n", __func__);&lt;/P&gt;&lt;P&gt;/* Should never get here. */&lt;BR /&gt; BUG();&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't know why&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;flush_cache_all() will occur oops error after Turned off caching.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Is there anyone meet this issue? and how can fix this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the runtime log is as follow:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;SysRq : Trigger a crash&lt;BR /&gt;Unable to handle kernel NULL pointer dereference at virtual address 00000000&lt;BR /&gt;pgd = 9633c000&lt;BR /&gt;[00000000] *pgd=26707831, *pte=00000000, *ppte=00000000&lt;BR /&gt;Internal error: Oops: 817 [#1] PREEMPT ARM&lt;BR /&gt;Modules linked in: evbug&lt;BR /&gt;CPU: 0 PID: 957 Comm: sh Tainted: G W 3.10.53-1.1.0_ga+gref:re #23&lt;BR /&gt;task: 96975a40 ti: 967ce000 task.ti: 967ce000&lt;BR /&gt;PC is at sysrq_handle_crash+0x38/0x40&lt;BR /&gt;LR is at l2x0_cache_sync+0x44/0x64&lt;BR /&gt;pc : [&amp;lt;8027ec84&amp;gt;] lr : [&amp;lt;8001a958&amp;gt;] psr: 40000093&lt;BR /&gt;sp : 967cff10 ip : 00000001 fp : 00000000&lt;BR /&gt;r10: 00000000 r9 : 00000000 r8 : 00000008&lt;BR /&gt;r7 : 60000013 r6 : 00000063 r5 : 80b332f8 r4 : 80b10188&lt;BR /&gt;r3 : 00000000 r2 : 00000001 r1 : 00000000 r0 : 00000001&lt;BR /&gt;Flags: nZcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user&lt;BR /&gt;Control: 10c53c7d Table: 2633c059 DAC: 00000015&lt;BR /&gt;Process sh (pid: 957, stack limit = 0x967ce230)&lt;BR /&gt;Stack: (0x967cff10 to 0x967d0000)&lt;BR /&gt;ff00: 8027ec4c 8027f278 967ce000 00000002&lt;BR /&gt;ff20: 00000001 00000000 00000000 96222180 00000002 8027f760 00000000 80108eb4&lt;BR /&gt;ff40: 01747408 967cff80 963b9540 00000002 967ce018 800ba124 00000000 00000001&lt;BR /&gt;ff60: 00000000 00000000 963b9540 01747408 00000000 00000002 00000000 800ba79c&lt;BR /&gt;ff80: 00000000 00000000 00000006 00000002 01747408 76f65b48 00000004 8000e204&lt;BR /&gt;ffa0: 967ce000 8000e080 00000002 01747408 00000001 01747408 00000002 00000000&lt;BR /&gt;ffc0: 00000002 01747408 76f65b48 00000004 00000002 01747408 00000002 00000000&lt;BR /&gt;ffe0: 00000000 7ec5898c 76e9dae4 76ef22fc 60000010 00000001 00000000 00000000&lt;BR /&gt;[&amp;lt;8027ec84&amp;gt;] (sysrq_handle_crash+0x38/0x40) from [&amp;lt;8027f278&amp;gt;] (__handle_sysrq+0xb4/0x198)&lt;BR /&gt;[&amp;lt;8027f278&amp;gt;] (__handle_sysrq+0xb4/0x198) from [&amp;lt;8027f760&amp;gt;] (write_sysrq_trigger+0x38/0x48)&lt;BR /&gt;[&amp;lt;8027f760&amp;gt;] (write_sysrq_trigger+0x38/0x48) from [&amp;lt;80108eb4&amp;gt;] (proc_reg_write+0x50/0x78)&lt;BR /&gt;[&amp;lt;80108eb4&amp;gt;] (proc_reg_write+0x50/0x78) from [&amp;lt;800ba124&amp;gt;] (vfs_write+0xb0/0x1c8)&lt;BR /&gt;[&amp;lt;800ba124&amp;gt;] (vfs_write+0xb0/0x1c8) from [&amp;lt;800ba79c&amp;gt;] (SyS_write+0x3c/0x78)&lt;BR /&gt;[&amp;lt;800ba79c&amp;gt;] (SyS_write+0x3c/0x78) from [&amp;lt;8000e080&amp;gt;] (ret_fast_syscall+0x0/0x30)&lt;BR /&gt;Code: 0a000000 e12fff33 e3a03000 e3a02001 (e5c32000) &lt;BR /&gt;crash_kexec: E regs = 967cfec8&lt;BR /&gt;crash_kexec: E kexec_crash_image = 968f6a00&lt;BR /&gt;machine_crash_shutdown: E&lt;BR /&gt;Loading crashdump kernel...&lt;BR /&gt;machine_crash_shutdown: X&lt;BR /&gt;machine_kexec: E&lt;BR /&gt;machine_kexec: E image-&amp;gt;control_code_page = 0x80bf0000, image-&amp;gt;start = 0x13010000&lt;BR /&gt;machine_kexec: E reboot_code_buffer_phys = 0x13000000, reboot_code_buffer = 0x83000000&lt;BR /&gt;Bye!&lt;BR /&gt;machine_kexec: E soft restart&lt;BR /&gt;__soft_restart: E addr = 0x13000000&lt;BR /&gt;[wuxy] setup_mm_for_reboot: E idmap_pgd = 0x96064000, &amp;amp;init_mm = 0x80b13e78&lt;BR /&gt;[wuxy] setup_mm_for_reboot: E idmap_pgd = 0x96064000, &amp;amp;init_mm = 0x80b13e78&lt;BR /&gt;__soft_restart: E 111&lt;BR /&gt;__soft_restart: E 222&lt;BR /&gt;__soft_restart: E 333&lt;BR /&gt;__soft_restart: E 333 addr = 0x13000000&lt;BR /&gt;Unable to handle kernel NULL pointer dereference at virtual address 000000e0&lt;BR /&gt;pgd = 80004000&lt;BR /&gt;[000000e0] *pgd=00000000&lt;BR /&gt;Internal error: Oops: 5 [#2] PREEMPT ARM&lt;BR /&gt;Modules linked in: evbug&lt;BR /&gt;CPU: 0 PID: -2135909344 Comm: Tainted: G W 3.10.53-1.1.0_ga+gref:re #23&lt;BR /&gt;task: 80b5002c ti: 80b50000 task.ti: 80b5000c&lt;BR /&gt;PC is at do_page_fault+0x40/0x390&lt;BR /&gt;LR is at do_DataAbort+0x38/0x98&lt;BR /&gt;pc : [&amp;lt;800174a8&amp;gt;] lr : [&amp;lt;800083d8&amp;gt;] psr: 000001d3&lt;BR /&gt;sp : 80b52130 ip : 80b52268 fp : 00000005&lt;BR /&gt;r10: 804eb170 r9 : 00000000 r8 : 000000e0&lt;BR /&gt;r7 : 000000e0 r6 : 80b52268 r5 : 80b52030 r4 : 00000005&lt;BR /&gt;r3 : 00000028 r2 : 000001d3 r1 : 00000000 r0 : 000000e0&lt;BR /&gt;Flags: nzcv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel&lt;BR /&gt;Control: 10c52c79 Table: 26064059 DAC: 00000015&lt;BR /&gt;Process (pid: -2135909344, stack limit = 0x80b5023c)&lt;BR /&gt;Stack: (0x80b52130 to 0x80b5200c)&lt;BR /&gt;[&amp;lt;800174a8&amp;gt;] (do_page_fault+0x40/0x390) from [&amp;lt;800083d8&amp;gt;] (do_DataAbort+0x38/0x98)&lt;BR /&gt;[&amp;lt;800083d8&amp;gt;] (do_DataAbort+0x38/0x98) from [&amp;lt;8000dc18&amp;gt;] (__dabt_svc+0x38/0x60)&lt;BR /&gt;Exception stack(0x80b52268 to 0x80b522b0)&lt;BR /&gt;2260: 000000e0 00000000 000001d3 00000028 00000005 80b52030&lt;BR /&gt;2280: 80b523e8 000000e0 000000e0 00000000 804eb170 00000005 80b523e8 80b522b0&lt;BR /&gt;22a0: 800083d8 800174a8 000001d3 ffffffff&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 03:20:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kexec-kdump-couldn-t-work-in-MX6Q-SDL-SabreSD/m-p/605051#M91176</guid>
      <dc:creator>do_feel</dc:creator>
      <dc:date>2016-12-13T03:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: kexec/kdump couldn't work in MX6Q/SDL-SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kexec-kdump-couldn-t-work-in-MX6Q-SDL-SabreSD/m-p/605052#M91177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a patch for 3.14 kernel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FFreescale%2Flinux-fslc%2Fcommit%2Ffee3fd4fd2ad136b26226346c3f8b446cc120bf5" rel="nofollow" target="_blank"&gt;https://github.com/Freescale/linux-fslc/commit/fee3fd4fd2ad136b26226346c3f8b446cc120bf5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We did not test it with 3.10 kernel however you can try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&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>Thu, 15 Dec 2016 04:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kexec-kdump-couldn-t-work-in-MX6Q-SDL-SabreSD/m-p/605052#M91177</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2016-12-15T04:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: kexec/kdump couldn't work in MX6Q/SDL-SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kexec-kdump-couldn-t-work-in-MX6Q-SDL-SabreSD/m-p/605053#M91178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seem that the issue which is resolved by the patch is not same as my.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have confirmed that kexec_load is OK in our produce, and my&amp;nbsp;issue is that kernel occurred oops exception when called&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;flush_cache_all() after executed&amp;nbsp;&lt;SPAN&gt;cpu_proc_fin().&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 02:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kexec-kdump-couldn-t-work-in-MX6Q-SDL-SabreSD/m-p/605053#M91178</guid>
      <dc:creator>do_feel</dc:creator>
      <dc:date>2016-12-16T02:20:47Z</dc:date>
    </item>
  </channel>
</rss>

