<?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: How to enable ramoops on ls1046a in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1261134#M172506</link>
    <description>&lt;P&gt;See the Section 7.3 in LSDK 2012 User Guide:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev20.12.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev20.12.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 08:54:25 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2021-04-13T08:54:25Z</dc:date>
    <item>
      <title>How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1254245#M171794</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We would like to know how to enable ramoops on ls1046a with linux kernel&amp;nbsp;5.4.3.&lt;/P&gt;&lt;P&gt;Here are my settings and test but there is nothing on "/sys/fs/pstore".&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Enabe pstore in kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CONFIG_PSTORE=y&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CONFIG_PSTORE_CONSOLE=y&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CONFIG_PSTORE_RAM=y&lt;/P&gt;&lt;P&gt;2. Pass module parameters from boot loader env&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "ramoops.mem_address=0xc0000000 ramoops.mem_size=0x20000"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;and I can see below kernel messages while booting,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; [ 0.465329] ramoops: using module parameters&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [ 1.020523] pstore: Registered ramoops as persistent store backend&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [ 1.026735] ramoops: using 0x20000@0xc0000000, ecc: 0&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Trigger kernel panic by sysrq&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #&amp;nbsp;echo c &amp;gt; /proc/sysrq-trigger&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Waiting watchdog to reboot system (it should be warm boot)&lt;/P&gt;&lt;P&gt;5. Mount pstore fs&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; # mount -t pstore pstore /sys/fs/pstore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there is no any&amp;nbsp;ramoops files in pstore folder.&lt;/P&gt;&lt;P&gt;Could anyone show me how to enable this feature?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 11:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1254245#M171794</guid>
      <dc:creator>Leo_Lee</dc:creator>
      <dc:date>2021-03-30T11:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1257007#M172107</link>
      <description>&lt;P&gt;NXP LSDK supports warm reset only on the LX2160AQDS board.&lt;/P&gt;
&lt;P&gt;See the Section 5.2.2.1 in LSDK 2012 User Guide:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev20.12.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev20.12.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use use kdump/kexec instead. See the following page:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Error-during-pstore-ramoops-initialization-in-imx6ull/td-p/765310" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Error-during-pstore-ramoops-initialization-in-imx6ull/td-p/765310&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 06:24:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1257007#M172107</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2021-04-06T06:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1258644#M172241</link>
      <description>&lt;P&gt;Hi Pavel&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Does it mean ls1046a cannot enable ramoops due to hw limitation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;If yes, I will try kdump instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 07:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1258644#M172241</guid>
      <dc:creator>Leo_Lee</dc:creator>
      <dc:date>2021-04-08T07:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1260155#M172402</link>
      <description>&lt;P&gt;Yes, use kdump instead of ramoops on the LS1046a board. NXP LSDK for the LS1046a does not supports warm reset.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 03:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1260155#M172402</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2021-04-12T03:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1260538#M172447</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Pavel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After passing kernel arguments and use relocatable kernel as below,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can manually run second kernel by kexec successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But It cannot automatically run second kernel when a panic occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Something wrong with kexec command?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- kernel arguments&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; crashkernel=256M&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- kernel option (kdump with relocatable kernel)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; CONFIG_KEXEC=y&lt;BR /&gt;&amp;nbsp; CONFIG_SYSFS=y&lt;BR /&gt;&amp;nbsp; CONFIG_DEBUG_INFO=Y&lt;BR /&gt;&amp;nbsp; CONFIG_CRASH_DUMP=y&lt;BR /&gt;&amp;nbsp; CONFIG_PROC_VMCORE=y&lt;BR /&gt;&amp;nbsp; CONFIG_RELOCATABLE=y&lt;BR /&gt;&amp;nbsp; CONFIG_PROC_KCORE=y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- manually run second kernel and it is ok&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; 1.&amp;nbsp;kexec -l /boot/image.bin --command-line="root=/dev/mmcblk0p2 maxcpus=1 bootmode=kdump"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; 2. kexec -e&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; [ 1714.583001] kexec_core: Starting new kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ... boot ok&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- automatically run second kernel but failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; 1.&amp;nbsp;kexec -p /boot/image.bin --command-line="root=/dev/mmcblk0p2 maxcpus=1&amp;nbsp; bootmode=kdump"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; 2.&amp;nbsp;echo c &amp;gt; /proc/sysrq-trigger&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[ 1400.106321] sysrq: Trigger a crash&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [ 1400.109717] Kernel panic - not syncing: sysrq triggered crash&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [ 1400.115458] CPU: 1 PID: 1213 Comm: sh Kdump: loaded Tainted: G O 5.4.3 #1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [ 1400.123540] Hardware name: LS1046A TANG Board (DT)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [ 1400.128321] Call trace:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ... stuck here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 11:50:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1260538#M172447</guid>
      <dc:creator>Leo_Lee</dc:creator>
      <dc:date>2021-04-12T11:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1261134#M172506</link>
      <description>&lt;P&gt;See the Section 7.3 in LSDK 2012 User Guide:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev20.12.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev20.12.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 08:54:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1261134#M172506</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2021-04-13T08:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1261264#M172520</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Pavel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've seen and tried it before but it gave me the same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can manually load second kernel by "kexec -l" and "kexec -e",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but it also stuck when I trigger kernel panic by sysrq after loading second kernel by "kexec -p".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# echo c &amp;gt; /proc/sysrq-trigger&lt;BR /&gt;[ 138.910837] sysrq: Trigger a crash&lt;BR /&gt;[ 138.914238] Kernel panic - not syncing: sysrq triggered crash&lt;BR /&gt;[ 138.919983] CPU: 3 PID: 1216 Comm: sh Kdump: loaded Tainted: G O 5.4.3 #1&lt;BR /&gt;[ 138.928069] Hardware name: LS1046A TANG Board (DT)&lt;BR /&gt;[ 138.932853] Call trace:&lt;BR /&gt;[ 138.935299] dump_backtrace+0x0/0x140&lt;BR /&gt;[ 138.938956] show_stack+0x14/0x20&lt;BR /&gt;[ 138.942269] dump_stack+0xb4/0xf8&lt;BR /&gt;[ 138.945580] panic+0x158/0x324&lt;BR /&gt;[ 138.948631] sysrq_handle_reboot+0x0/0x20&lt;BR /&gt;[ 138.952635] __handle_sysrq+0x88/0x180&lt;BR /&gt;[ 138.956378] write_sysrq_trigger+0x8c/0xb0&lt;BR /&gt;[ 138.960472] proc_reg_write+0x78/0xb0&lt;BR /&gt;[ 138.964129] __vfs_write+0x18/0x40&lt;BR /&gt;[ 138.967526] vfs_write+0xdc/0x1c8&lt;BR /&gt;[ 138.970834] ksys_write+0x68/0xf0&lt;BR /&gt;[ 138.974144] __arm64_sys_write+0x18/0x20&lt;BR /&gt;[ 138.978064] el0_svc_common.constprop.0+0x68/0x160&lt;BR /&gt;[ 138.982851] el0_svc_handler+0x20/0x80&lt;BR /&gt;[ 138.986595] el0_svc+0x8/0xc&lt;BR /&gt;[ 138.989478] SMP: stopping secondary CPUs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// it stuck&amp;nbsp;here and no message like "Starting crashdump kernel...".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 12:14:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1261264#M172520</guid>
      <dc:creator>Leo_Lee</dc:creator>
      <dc:date>2021-04-13T12:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1265070#M172916</link>
      <description>&lt;P&gt;Is there problem for kexec testing using the Section 7.3 from LSDK 2012 User Guide?&lt;/P&gt;
&lt;P&gt;Is there problem to pass "Test Procedure" from this Section?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 10:25:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1265070#M172916</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2021-04-20T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1265683#M172967</link>
      <description>&lt;P&gt;in "Test Procedure", I can successfully load dump-capture kernel in step 3 by kexec&amp;nbsp;(-l/-e).&lt;BR /&gt;But in step 4 the dump-capture kernel can not be loaded automatically when panic occur in the first kernel.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:57:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1265683#M172967</guid>
      <dc:creator>Leo_Lee</dc:creator>
      <dc:date>2021-04-21T07:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1277393#M174113</link>
      <description>&lt;P&gt;It looks like that it is not possible,&lt;/P&gt;
&lt;P&gt;I have not found information for using kexec automatically.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 06:18:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1277393#M174113</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2021-05-17T06:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable ramoops on ls1046a</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1277899#M174165</link>
      <description>&lt;P&gt;I found it stucks at "machine_kexec_mask_interrupts" function in machine_kexec.c&lt;/P&gt;&lt;P&gt;when kexec is trying to launch second kernel, but manually run second kernel by kexec -e has no problem.&lt;/P&gt;&lt;P&gt;Does it seem something wrong to disable irq when kernel panic occurs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 03:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-ramoops-on-ls1046a/m-p/1277899#M174165</guid>
      <dc:creator>Leo_Lee</dc:creator>
      <dc:date>2021-05-18T03:21:01Z</dc:date>
    </item>
  </channel>
</rss>

