public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: sebastian.capella@linaro•org (Sebastian Capella)
To: linux-arm-kernel@lists•infradead.org
Subject: [linux-pm] ARM hibernation / suspend-to-disk
Date: Tue, 04 Mar 2014 16:16:43 -0800	[thread overview]
Message-ID: <53166cef.43bd440a.2ff1.472e@mx.google.com> (raw)
In-Reply-To: <5315B328.9030306@gmail.com>

Quoting TonyHo (2014-03-04 03:04:08)
> Hi Sebastian:
>      Thank you. And I'm in Shanghai, it's not far from the Macao, both 
> in China, ha.
> The system can boot up normal now. And I want to make the hibernation, 
> but error occurs. I want to save the hibernation image in 
> /dev/mmcblk0p3(device id 179:3), and I configure this in menuconfig:
> / # cat /sys/power/resume 179:3
> When I echo a disk to /sys/power/state , it hints(partly log):
> [ 49.426656] omap_uart 44e09000.serial: no wakeirq for uart0
> [ 49.594385] PM: thaw of devices complete after 171.291 msecs
> [ 49.661876] PM: Cannot find swap device, try swapon -a.
> [ 49.667356] PM: Cannot get swap writer
> [ 49.722677] Restarting tasks ... done. ash: write error: No such device
> 
> But I can find my device /dev/mmcblk0p3, and its size is about 2GB, and 
> it's not mounted in system,it can be mounted with ext4 filesystem.
> / # ls -l /dev/mmcblk*
> brw-rw---- 1 0 0 179, 3 Jan 1 00:01 /dev/mmcblk0p3
> 
> It says cannot find swap device, but the CONFIG_SWAP=y is checked.
> It seems I miss something?

Hi tony,
          
Two things are?missing:

1) you must format the partition as swap using the mkswap command. ?This can be
   done on target or on your laptop. ?

2) after booting, on target you have to add the swap to the system using the
   swapon command. ?I usually do:

    swapon /dev/mmcblk0p3

If you want to do swapon -a you may have to modify the
/etc/fstab or mnttab but I don't do it?this way. ?

Sebastian

  reply	other threads:[~2014-03-05  0:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-29  8:10 ARM hibernation / suspend-to-disk Jan Glauber
2013-05-29  8:25 ` [linux-pm] " Viresh Kumar
2013-05-29 17:23 ` Russ Dill
2014-01-28 14:14   ` [linux-pm] " Pavel Machek
2014-01-28 18:22     ` Sebastian Capella
2014-01-28 18:30       ` Sebastian Capella
2014-01-30 18:06       ` Pavel Machek
2014-01-30 18:27         ` Sebastian Capella
2014-02-16 13:11       ` TonyHo
2014-02-24 21:54         ` Sebastian Capella
2014-03-02  7:57           ` tonyho
2014-03-04  5:12             ` Sebastian Capella
2014-03-04 11:04               ` TonyHo
2014-03-05  0:16                 ` Sebastian Capella [this message]
2016-01-11 16:43                   ` Johann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53166cef.43bd440a.2ff1.472e@mx.google.com \
    --to=sebastian.capella@linaro$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox