<?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: If the kernel is broken, how to boot from the backup kernel in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/If-the-kernel-is-broken-how-to-boot-from-the-backup-kernel/m-p/704922#M109506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;秋宏 罗&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; how should i judge kernle start failure, then in uboot, then jump to backup kernel_bk start it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems most simple way is to start watchdog and set some persistent bit (indicating second kernel usage)&lt;BR /&gt;&lt;SPAN&gt;for example in SRC_GPR9, smth similar to &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2004" data-containertype="14" data-objectid="93964" data-objecttype="102" href="https://community.nxp.com/docs/DOC-93964"&gt;https://community.nxp.com/docs/DOC-93964&lt;/A&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;After reboot uboot can analyze persistent bit and use other bootargs for second backup kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Sun, 15 Oct 2017 22:55:43 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-10-15T22:55:43Z</dc:date>
    <item>
      <title>If the kernel is broken, how to boot from the backup kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/If-the-kernel-is-broken-how-to-boot-from-the-backup-kernel/m-p/704921#M109505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;My partitionedis as follows,；&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;8000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801&lt;BR /&gt;Amd/Fujitsu Extended Query Table at 0x0040&lt;BR /&gt;Amd/Fujitsu Extended Query version 1.5.&lt;BR /&gt;number of CFI chips: 1&lt;BR /&gt;12 cmdlinepart partitions found on MTD device 8000000.nor&lt;BR /&gt;Creating 12 MTD partitions on "8000000.nor":&lt;BR /&gt;0x000000000000-0x000000180000 : "uboot"&lt;BR /&gt;0x000000180000-0x000000200000 : "env"&lt;BR /&gt;0x000000200000-0x000000d80000 : "kernel"&lt;BR /&gt;0x000000d80000-0x000000e00000 : "dtb"&lt;BR /&gt;0x000000e00000-0x000003600000 : "rootfs"&lt;BR /&gt;0x000003600000-0x000004180000 : "kernel_bk"&lt;BR /&gt;0x000004180000-0x000004200000 : "dtb_bk"&lt;BR /&gt;0x000004200000-0x000006a00000 : "rootfs_bk"&lt;BR /&gt;0x000006a00000-0x000006b00000 : "productinfo"&lt;BR /&gt;0x000006b00000-0x000006c00000 : "config"&lt;BR /&gt;0x000006c00000-0x000007c00000 : "log"&lt;BR /&gt;0x000007c00000-0x000008000000 : "reserved"&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I now want to start kuble in uboot failed to start from kernel_bk, how should i judge kernle start failure, then in uboot, then jump to backup kernel_bk start it,&lt;BR /&gt;I now configure the boot as follows:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;norargs=setenv bootargs console=${console},${baudrate} ${smp} ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs mtdparts=8000000.nor:1536k(uboot),512k(env),11776k(kernel),512k(dtb),40m(rootfs),11776k(kernel_bk),512k(dtb_bk),40m(rootfs_bk),1024k(productinfo),1024k(config),16m(log),-(reserved) &lt;BR /&gt;norboot=echo Booting from nor flash ...; run norargs; run norbootcmd;&lt;BR /&gt;norbootcmd=cp.b 0x08200000 ${loadaddr} 0x700000; cp.b 0x8d80000 ${fdt_addr} 0x20000;bootz ${loadaddr} - ${fdt_addr}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thank you for your reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 07:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/If-the-kernel-is-broken-how-to-boot-from-the-backup-kernel/m-p/704921#M109505</guid>
      <dc:creator>logerhong</dc:creator>
      <dc:date>2017-10-13T07:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: If the kernel is broken, how to boot from the backup kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/If-the-kernel-is-broken-how-to-boot-from-the-backup-kernel/m-p/704922#M109506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;秋宏 罗&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; how should i judge kernle start failure, then in uboot, then jump to backup kernel_bk start it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems most simple way is to start watchdog and set some persistent bit (indicating second kernel usage)&lt;BR /&gt;&lt;SPAN&gt;for example in SRC_GPR9, smth similar to &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2004" data-containertype="14" data-objectid="93964" data-objecttype="102" href="https://community.nxp.com/docs/DOC-93964"&gt;https://community.nxp.com/docs/DOC-93964&lt;/A&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;After reboot uboot can analyze persistent bit and use other bootargs for second backup kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Sun, 15 Oct 2017 22:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/If-the-kernel-is-broken-how-to-boot-from-the-backup-kernel/m-p/704922#M109506</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-15T22:55:43Z</dc:date>
    </item>
  </channel>
</rss>

