<?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のトピックPower up source identification</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385903#M55869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With I.MX28, is there any way to know the event that caused the device to power up? I mean how to know if the device reset happens due to Watchdog reset? I have checked with HW_POWER_STS status register but didn't have any indication for reset from Watchdog. Based on that I would like to know if the systems fails to boot due to flash corruption/boot failure and boot with other partition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2014 09:09:39 GMT</pubDate>
    <dc:creator>B_K_Ankur</dc:creator>
    <dc:date>2014-12-02T09:09:39Z</dc:date>
    <item>
      <title>Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385903#M55869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With I.MX28, is there any way to know the event that caused the device to power up? I mean how to know if the device reset happens due to Watchdog reset? I have checked with HW_POWER_STS status register but didn't have any indication for reset from Watchdog. Based on that I would like to know if the systems fails to boot due to flash corruption/boot failure and boot with other partition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 09:09:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385903#M55869</guid>
      <dc:creator>B_K_Ankur</dc:creator>
      <dc:date>2014-12-02T09:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385904#M55870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think except HW_POWER_STS there are no other&lt;/P&gt;&lt;P&gt;ways to know sources of reset. I.MX28 iROM uses other mechanizms&lt;/P&gt;&lt;P&gt;to recover from boot failures due to flash corruption. For example,&lt;/P&gt;&lt;P&gt;according to Table 12-10 (Persistent Bits) of the i.MX28 Reference Manual,&lt;/P&gt;&lt;P&gt;when bit 1 of the HW_RTC_PERSISTENT1 (ROM_SECONDARY_BOOT) is set &lt;/P&gt;&lt;P&gt;"ROM attempts to boot from the secondary image if the boot driver supports it. &lt;/P&gt;&lt;P&gt;This bit is set by the ROM boot driver and cleared by the SDK after repair."&lt;/P&gt;&lt;P&gt;Please look at section 12.12.1.5 (Redundant Boot Support in ROM NAND driver)&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/dsp/doc/ref_manual/MCIMX28RM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;MCIMX28RM&lt;/A&gt;&amp;nbsp; about secondary boot details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 10:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385904#M55870</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-12-02T10:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385905#M55871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igorpadykov,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to detect it not using secure boot mechanism you have suggested?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like as I said earlier, I am dealing with firmware recovery mechanism in our device and having trouble in detecting the Kernel Panic(Filesystem Mount failure - due to flash corruption) on u-boot for switching the boot path. The Processor doesnt support the power up event detection (like watchdog reset or power reset). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAND Memory LAYOUT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; SPL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; u-boot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; u-boot-bak &lt;/LI&gt;&lt;LI&gt; u-boot-env &lt;/LI&gt;&lt;LI&gt; kernel1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; kernel2&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; rootfs1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; rootfs2&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;How to handle following boot flow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. power on the device&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. U-boot boots the PATH 1 (kernel1 and rootfs1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Kernel1 boots but fails to mount Filesystem due to flash corruption&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. System resets after 10 seconds of panic as the PANIC=10 is in bootargs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. u-boot started booting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. ??? How to know if the device now has to use PATH 2 (kernel2 and rootfs2) to boot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Any suggestions will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 07:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385905#M55871</guid>
      <dc:creator>B_K_Ankur</dc:creator>
      <dc:date>2015-01-05T07:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385906#M55872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can write to iRAM some codes, marking&lt;/P&gt;&lt;P&gt;boot stages. So on next power-up check these codes and find where it was failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 15:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385906#M55872</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-01-05T15:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385907#M55873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wonderful Suggestion!! I havent thought of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does on processor reset(due to kernel panic) the iRAM get resets too to default cleaning up all the marking?&lt;/P&gt;&lt;P&gt;Is it possible to access iRAM in u-boot ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 23:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385907#M55873</guid>
      <dc:creator>B_K_Ankur</dc:creator>
      <dc:date>2015-01-05T23:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385908#M55874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no iRAM is not erased on reset, it can be accessed from uboot too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 01:36:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385908#M55874</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-01-06T01:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385909#M55875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor. Will keep you posted on any issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 02:42:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385909#M55875</guid>
      <dc:creator>B_K_Ankur</dc:creator>
      <dc:date>2015-01-06T02:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power up source identification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385910#M55876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked Igor. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for Info how it is used in linux (May help other):&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;char *ptr = (char*) (MX28_OCRAM_ADDR + 0xE400);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;char buf[16];&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;snprintf(buf,sizeof(buf),"Hello");&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;strncpy(ptr,buf,5);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 06:05:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Power-up-source-identification/m-p/385910#M55876</guid>
      <dc:creator>B_K_Ankur</dc:creator>
      <dc:date>2015-01-08T06:05:44Z</dc:date>
    </item>
  </channel>
</rss>

