Hi everyone,
1. I followed steps given in http://elinux.org/RZ-G/Boards/SK-RZG1E for running yocto on RZ/G1E for kernel 3.10
2. On top of this , I applied patch https://lists.linaro.org/pipermail/linaro-kernel/2014-March/012112.html on top of the kernel.
With this changes I am able to create hibernation image on external sdcard swap partition.Please check below for full logs.
But while resume, its giving error for swsusp signature of image.
Can anyone help If I am missing something.
If you have any idea or solution, please help me.
Thank you.
Full log:
root@skrzg1e:~# mkswap /dev/mmcblk0p1
root@skrzg1e:~# swapon /dev/mmcblk0p1
root@skrzg1e:~# echo shutdown > /sys/power/disk
root@skrzg1e:~# echo disk >/sys/power/state
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
PM: Preallocating image memory... done (allocated 17005 pages)
PM: Allocated 68020 kbytes in 0.21 seconds (323.90 MB/s)
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
PM: freeze of devices complete after 5.859 msecs
PM: late freeze of devices complete after 0.565 msecs
PM: noirq freeze of devices complete after 1.035 msecs
Disabling non-boot CPUs ...
CPU1: shutdown
PM: Creating hibernation image:
PM: Need to copy 16740 pages
PM: Hibernation image created (16740 pages copied)
Enabling non-boot CPUs ...
CPU1: Booted secondary processor
CPU1 is up
PM: noirq thaw of devices complete after 0.530 msecs
PM: early thaw of devices complete after 0.371 msecs
PM: thaw of devices complete after 562.505 msecs
PM: Using 1 thread(s) for compression.
PM: Compressing and saving image data (16757 pages)...
PM: Image saving progress: 0%
PM: Image saving progress: 10%
PM: Image saving progress: 20%
PM: Image saving progress: 30%
PM: Image saving progress: 40%
PM: Image saving progress: 50%
PM: Image saving progress: 60%
PM: Image saving progress: 70%
PM: Image saving progress: 80%
PM: Image saving progress: 90%
PM: Image saving progress: 100%
PM: Image saving done.
PM: Wrote 67028 kbytes in 4.11 seconds (16.30 MB/s)
PM: S|
Power down.
------------[ cut here ]------------
WARNING: at kernel/smp.c:244 smp_call_function_single+0xa8/0x1a0()
Modules linked in:
CPU: 0 PID: 1065 Comm: sh Not tainted 3.10.31-ltsi-00001-gbb8f200-dirty #26
Backtrace:
[<c0012470>] (dump_backtrace+0x0/0x104) from [<c001267c>] (show_stack+0x18/0x1c)
r6:c0069478 r5:00000009 r4:00000000 r3:44404100
[<c0012664>] (show_stack+0x0/0x1c) from [<c04796c4>] (dump_stack+0x20/0x28)
[<c04796a4>] (dump_stack+
0x0/0x28) from [<c00222c8>] (warn_slowpath_common+0x54/0x74)
[<c0022274>] (warn_slowpath_common+0x0/0x74) from [<c002238c>] (warn_slowpath_null+0x24/0x2c)
r8:00000001 r7:c11def58 r6:c007cc0c r5:00000000 r4:00000000
r3:00000009
[<c0022368>] (warn_slowpath_null+0x0/0x2c) from [<c0069478>] (smp_call_function_single+0xa8/0x1a0)
[<c00693d0>] (smp_call_function_single+0x0/0x1a0) from [<c007e608>] (perf_event_exit_cpu+0xb0/0xf0)
[<c007e558>] (perf_event_exit_cpu+0x0/0xf0) from [<c007e688>] (perf_reboot+0x40/0x54)
[<c007e648>] (perf_reboot+0x0/0x54) from [<c0044ce8>] (notifier_call_chain+0x48/0x70)
r6:00000002 r5:00000000 r4:ffffffff r3:c007e648
[<c0044ca0>] (notifier_call_chain+0x0/0x70) from [<c0045008>] (__blocking_notifier_call_chain+0x4c/0x64)
r8:00000002 r7:00000000 r6:ffffffff r5:c06750bc r4:c06739a8
r3:ffffffff
[<c0044fbc>] (__blocking_notifier_call_chain+0x0/0x64) from [<c0045040>] (blocking_notifier_call_chain+0x20
/0x28)
r8:c0673ef8 r7:d61ce038 r6:c06abda0 r5:00000000 r4:c0673ef8
[<c0045020>] (blocking_notifier_call_chain+0x0/0x28) from [<c0034714>] (kernel_halt+0x1c/0x5c)
[<c00346f8>] (kernel_halt+0x0/0x5c) from [<c0478550>] (power_down+0xa0/0xc4)
[<c04784b0>] (power_down+0x0/0xc4) from [<c00573c4>] (hibernate+0x140/0x1c4)
r4:c0673f8c r3:c06abec8
[<c0057284>] (hibernate+0x0/0x1c4) from [<c0055504>] (state_store+0x60/0xc8)
r9:d68f7988 r8:d68fce00 r7:00000005 r6:d6bad000 r5:00000004
r4:00000005
[<c00554a4>] (state_store+0x0/0xc8) from [<c01c3650>] (kobj_attr_store+0x1c/0x28)
r9:d68f7988 r8:d68fce00 r7:d61cff78 r6:d62b1d18 r5:d62b1d00
r4:00000005
[<c01c3634>] (kobj_attr_store+0x0/0x28) from [<c010c950>] (sysfs_write_file+0x10c/0x150)
[<c010c844>] (sysfs_write_file+0x0/0x150) from [<c00bbc70>] (vfs_write+0xdc/0x18c)
[<c00bbb94>] (vfs_write+0x0/0x18c) from [<c00bc170>] (SyS_write+0x44/0x74)
r9:00000005 r8:000e6408 r7:00000000 r6:d6250e40 r5:00000000
r4:00000000
[<c00bc12c>] (SyS_write+0x0/0x74) from [<c000e940>] (ret_fast_syscall+0x0/0x30)
r9:d61ce000 r8:c000eae8 r7:00000004 r6:b6f3ab58 r5:000e6408
r4:00000005
---[ end trace e6d43a8b46b6aaf1 ]---
System halted.
root@skrzg1e:~# echo disk >/sys/power/state