I am trying to implement the hibernation with static image concept,able to create the hibernation image.
On first resume the boards come up properly, on subsequent boot the emmc partition gets corrupted.
Please find the logs below:
Freezing user space processes ... (elapsed 0.000 seconds) done.
PM: Using 1 thread(s) for decompression.
PM: Loading and decompressing image data (57248 pages) ... 0% 100%
PM: Image loading done.
PM: Read 228992 kbytes in 4.86 seconds (47.11 MB/s)
PM: quiesce of devices complete after 73.305 msecs
PM: late quiesce of devices complete after 0.641 msecs
PM: noirq quiesce of devices complete after 0.733 msecs
Disabling non-boot CPUs ...
Suspended for 0.000 seconds
Enabling non-boot CPUs ...
CPU1 is up
PM: noirq restore of devices complete after 0.435 msecs
PM: early restore of devices complete after 0.599 msecs
PM: restore of devices complete after 209.372 msecs
Restarting tasks ... done.
binder: 390:390 transaction failed 29189, size 100-0
init: cannot find '/system/bin/install-recovery.sh', disabling 'flash_recovery'
root@amit:/ # EXT4-fs error (device mmcblk2p4): ext4_mb_generate_buddy:755: group 18, 31155 clusters in bitmap, 31150 in gd
Aborting journal on device mmcblk2p4-8.
Kernel panic - not syncing: EXT4-fs (device mmcblk2p4): panic forced after error
CPU: 0 PID: 741 Comm: drmserver Not tainted 3.10.53 #27
[<c0013ee8>] (unwind_backtrace+0x0/0xf8) from [<c00118c8>] (show_stack+0x10/0x14)
[<c00118c8>] (show_stack+0x10/0x14) from [<c0013134>] (handle_IPI+0x178/0x1a4)
[<c0013134>] (handle_IPI+0x178/0x1a4) from [<c0008564>] (gic_handle_irq+0x54/0x5c)
[<c0008564>] (gic_handle_irq+0x54/0x5c) from [<c000de7c>] (__irq_usr+0x3c/0x60)
Exception stack(0xdcbc3fb0 to 0xdcbc3ff8)
3fa0: b6ef4455 b68a4371 00000031 00000000
3fc0: b6fc1784 0000003a b6ef04e8 b68a4371 09732af9 b6ef0148 b6ef3c38 000000c9
3fe0: b6ef4775 bea3e450 b6fc6111 b6fc98e8 000d0010 ffffffff
Rebooting in 5 seconds..
Please reply if anyone has faced the similar issue.