hibernation support for android in Cortex A8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hibernation support for android in Cortex A8

1,680 Views
Prabhuram
Contributor I

Im working on a freescale imx53 board with android 2.3 running on it. I'm trying add hibernation support for it. The kernel version im using is, 2.6.35, which doesn't have hibernation support for Cortex A8 series. So I used the patch form this link

spinics.net/lists/arm-kernel/msg108560

for adding hibernation support for Cortex A8, and it worked well except while resuming from hibernation i see the following log and the system is in a freezed state, even the console and other devices are completely freezed, so its difficult for debugging with out console being enabled,
I think Im missing some steps wile resuming from hibernation , pleaselet me know where im wrong.

 

The log while resuming is ,

Freezing user space processes ... (elapsed 0.00 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Loading image data pages (40616 pages) ...
100% ... done
PM: Read 162464 kbytes in 9.31 seconds (17.45 MB/s)
Suspending console(s) (use no_console_suspend to debug)
PM: freeze of devices complete after 41.938 msecs
PM: late freeze of devices complete after 0.574 msecs
PM: Creating hibernation image:
PM: Need to copy 40576 pages
PM: early restore of devices complete after 0.488 msecs
PM: restore of devices complete after 171.013 msecs
Restarting tasks ... done.

(from here console and all devices are freezed)

Tags (1)
0 Kudos
Reply
5 Replies

991 Views
Prabhuram
Contributor I

even im new this , but its quiet interesting to work on features like this ...

 if i get more information i'll post it here ....

Thankyou...

0 Kudos
Reply

991 Views
charleschang
Contributor III

snapshot boot ?

I haven't gone so far... >_<...

0 Kudos
Reply

991 Views
PrashantDalmia
Contributor I

Hello Charles/Prabhu,

I am trying to implement hibernation on android 2.3 using freescale QSB board.

On linux file system it is working fine.

But when I switch to android while resume it hangs/crashes.

Could you please help on this.

With Regards,

Prashant

0 Kudos
Reply

991 Views
Prabhuram
Contributor I

Hi charlas,

Thanks you for your response. It would be more helpful if u can you please give me some points for restoring the snapshot image from the boot loader. Im using u-boot, and right now im restoring from the snapshot after the kernel boots up , but i would like to do it from the bootloader as i can save more boot time.

0 Kudos
Reply

991 Views
charleschang
Contributor III

I am working on this topic, too.

 

I found when I resume from shell, console won't freeze, so I move the software_resume from lat_init( ) to the place adter sys_open(console)..

 

ref :  http://r40eubuntu.blogspot.com/2011/09/initcall.html

0 Kudos
Reply