<?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: IMX8MP Android Hibernate in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2040145#M233753</link>
    <description>&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;File system inconsistency&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hibernation requires user create the hibernation image each time. The hibernation image stores memory information and can restore system then. File system has the inode and the related information also in the memory so it will be stored with hibernation images. This is good for most of PC, NB. But it is not practical for most embedded system. We would like to create hibernation image &lt;SPAN&gt;once&lt;/SPAN&gt; and always restore system from the image. It's so call &lt;SPAN&gt;Single Image mode&lt;/SPAN&gt;. On my approach, I tried to use ram disk as Android System partition. The ram disk will be part of hibernation and then we can restore from system using the same image every time.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 18:33:20 GMT</pubDate>
    <dc:creator>jamesbone</dc:creator>
    <dc:date>2025-02-07T18:33:20Z</dc:date>
    <item>
      <title>IMX8MP Android Hibernate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2036490#M233522</link>
      <description>&lt;P&gt;Have someone tried to hibernate with suspend-to-disk on Android13/14 and got it working?&lt;BR /&gt;&lt;BR /&gt;The system is build with Kernel config paramters as follow:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONFIG_SUSPEND=y&lt;BR /&gt;CONFIG_SUSPEND_FREEZER=y&lt;BR /&gt;CONFIG_HIBERNATE_CALLBACKS=y&lt;BR /&gt;CONFIG_HIBERNATION=y&lt;BR /&gt;CONFIG_HIBERNATION_SNAPSHOT_DEV=y&lt;BR /&gt;CONFIG_PM_STD_PARTITION="/dev/block/mmcblk2p14"&lt;BR /&gt;CONFIG_PM_SLEEP=y&lt;BR /&gt;CONFIG_PM_SLEEP_SMP=y&lt;BR /&gt;CONFIG_ARCH_HIBERNATION_POSSIBLE=y&lt;BR /&gt;CONFIG_ARCH_HIBERNATION_HEADER=y&lt;BR /&gt;CONFIG_ARCH_SUSPEND_POSSIBLE=y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error we get is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ 1039.323435] PM: hibernation: Creating image:&lt;BR /&gt;[ 1039.323435] PM: hibernation: Need to copy 179787 pages&lt;BR /&gt;[ 1039.323435] PM: hibernation: Normal pages needed: 179787 + 1024, available pages: 270631&lt;BR /&gt;[ 1039.323435] PM: hibernation: Memory allocation failed&lt;BR /&gt;[ 1039.323435] PM: hibernation: Error -12 creating image&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 09:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2036490#M233522</guid>
      <dc:creator>persandberg</dc:creator>
      <dc:date>2025-01-31T09:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP Android Hibernate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2036663#M233529</link>
      <description>&lt;P&gt;Which board are you using? to test?&amp;nbsp; Since there is some dependency to the PMIC of the board to get the Hibernation available.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 16:26:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2036663#M233529</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2025-01-31T16:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP Android Hibernate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2038304#M233623</link>
      <description>&lt;P&gt;We are using Technexion Wandboard EDM-G-IMX8MP. It uses the NXP PMIC PCA9450C.&lt;/P&gt;&lt;P&gt;Our problems start with memory allocations for hibernation images. We suspect this is prior to stopping/starting the PMIC.&lt;/P&gt;&lt;P&gt;We are currently executing on Android 13 where we have made a swap partition:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total &amp;nbsp; &amp;nbsp;&amp;nbsp; used &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; shared &amp;nbsp;&amp;nbsp; buffers&lt;/P&gt;&lt;P&gt;Mem: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.6G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;808M &amp;nbsp; &amp;nbsp; &amp;nbsp; 857M &amp;nbsp;&amp;nbsp;&amp;nbsp; 584K &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;708K&lt;/P&gt;&lt;P&gt;-/+ buffers/cache: &amp;nbsp;&amp;nbsp; 807M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;858M&lt;/P&gt;&lt;P&gt;Swap: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.0G &amp;nbsp; &amp;nbsp; &amp;nbsp; 473M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.5G&lt;/P&gt;&lt;P&gt;Swap is allocated from a dedicated swap partition residing on disk (eMMC).&lt;/P&gt;&lt;P&gt;When we hibernate the system, it seems we are running out of memory. However, we should have enough. What could be the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 06:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2038304#M233623</guid>
      <dc:creator>persandberg</dc:creator>
      <dc:date>2025-02-05T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP Android Hibernate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2040145#M233753</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;File system inconsistency&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hibernation requires user create the hibernation image each time. The hibernation image stores memory information and can restore system then. File system has the inode and the related information also in the memory so it will be stored with hibernation images. This is good for most of PC, NB. But it is not practical for most embedded system. We would like to create hibernation image &lt;SPAN&gt;once&lt;/SPAN&gt; and always restore system from the image. It's so call &lt;SPAN&gt;Single Image mode&lt;/SPAN&gt;. On my approach, I tried to use ram disk as Android System partition. The ram disk will be part of hibernation and then we can restore from system using the same image every time.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 18:33:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Android-Hibernate/m-p/2040145#M233753</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2025-02-07T18:33:20Z</dc:date>
    </item>
  </channel>
</rss>

