hibernation to file not working (no storage was available) error

Chris Ferron <[email protected]> Wed, 15 Jan 2014 15:55:11 -0800
Newsgroups gmane.linux.swsusp.devel
Message-ID <CAKW59q=HR42w9baYViojsSrxGBYZNcYpAcqTrd71svcKsZ9-Jw@mail.gmail.com>
So i am trying the simple example for getting hibernation to a file working
on an x86 based android prototype. But i seem to be getting an error about
no storage and i'm not sure why.

Hoping its something simple and someone can point it our for me. Any hints
or help would be great!

-Chris


echo "TuxOnIce" > /data/hibernation-file;

dd if=/dev/zero bs=1M count=512 >> /data/hibernation-file;

echo disk > /sys/power/state

echo /data/hibernation-file > /sys/power/tuxonice/file/target

cat /sys/power/tuxonice/file/target

RESULT: /data/hibernation-file

cat /sys/power/tuxonice/resume

RESULT: 8:10

echo > /sys/power/tuxonice/do_hibernate

RESULT: "dmesg"
6>[   86.475561] TuxOnIce 3.3, with support for usm, compression, block
i/o, file storage, userui.
<6>[   86.673401] Initiating a hibernation cycle.
<3>[   86.686174] Starting other threads.Freezing user space processes ...
(elapsed 0.01 seconds) done.
<7>[   86.705362] Freezing remaining freezable tasks ... (elapsed 0.01
seconds) done.
<6>[   86.716972] No storage available. Didn't try to prepare an image.
<6>[   86.716984] Failed to prepare the image because...
<6>[   86.716987] - You need some storage available to be able to hibernate.
<7>[   86.717051] Restarting tasks ... done.
<6>[   86.726337] video LNXVIDEO:00: Restoring backlight state
<3>[   86.726342] TuxOnIce debugging info:
<3>[   86.726342] - TuxOnIce core  : 3.3
<3>[   86.726342] - Kernel Version : 3.9.1-***-*****
<3>[   86.726342] - Compiler vers. : 4.6
<3>[   86.726342] - Attempt number : 1
<3>[   86.726342] - Parameters     : 5 667648 0 0 -2 0
<3>[   86.726342] - Overall expected compression percentage: 0.
<3>[   86.726342] - Compressor is 'lzo'.
<3>[   86.726342] - Block I/O active.
<3>[   86.726342] - Max outstanding reads 1. Max writes 0.
<3>[   86.726342]   Memory_needed: 1024 x (4096 + 344 + 104) = 4653056
bytes.
<3>[   86.726342]   Free mem throttle point reached 0.
<3>[   86.726342] - File Allocator active.
<3>[   86.726342]   Storage available for image: 0 pages.
<3>[   86.726342] - No I/O speed stats available.
<3>[   86.726342] - Extra pages    : 0 used/2000.
<3>[   86.726342] - Result         : Hibernation was aborted.
<3>[   86.726342]                  : No storage was available.

_______________________________________________
TuxOnIce-devel mailing list
[email protected]
http://lists.tuxonice.net/listinfo/tuxonice-devel