From: tonyho.profession@gmail.com (tonyho)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-pm] ARM hibernation / suspend-to-disk
Date: Sun, 02 Mar 2014 15:57:31 +0800 [thread overview]
Message-ID: <5312E46B.8020900@gmail.com> (raw)
In-Reply-To: <20140224215443.9748.65580@capellas-linux>
Hi Sebastian:
You're kind, and thank you firtly.
Now I have try to booting you hibernation_3.13_russMerge branch kernel
from uboot(Version 2013-10) in BBB, and I don't know how to build the dtb.
I have built the uImage using:
1. make ARCH=arm CROSS_COMPILE=/media/work/BBB/tools/arm-2010.09/bin/arm-
none-linux-gnueabi- omap2plus_defconfig && make ARCH=arm
CROSS_COMPILE=/media/work/BBB/tools/arm-2010.09/bin/arm-none-linux-gnueabi-
uImage LOADADDR=0x80008000
2. And I load the uImage using the ext4load from TF card?
(1)ext4load mmc 0:2 80007f00 /boot/uImage
(2)and 'iminfo 0x80007f00' hints image is OK.
(3)The Kernel Command Line is 'init=/linuxrc console=ttyO0,115200n8
run_hardware_tests root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait' and
I select the 'Always use the default kernel command line'
and the configuration has been verified in other version linux kernel
source code.
(4)But when I 'bootm 80007f00', it just print the 'Starting kernel ...'
and nothing more. And the USERLED0-3 in BBB are off.
3. I guess this is caused by I haven't load a dts to memory
(1)Can you tell me how to build the dtb? Like 'make XXX.dtb/dts'?
(2)And which dtb should be loaded into memory? What the address should
be load for the dtb files?
4. I use the busybox to be the rootfs, and it test OK. I prepare add a
resume command to /sys/power/resume in inittab. Should this work?
On 02/25/2014 05:54 AM, Sebastian Capella wrote:
> Quoting TonyHo (2014-02-16 05:11:47)
>> Hi Sebastian ,Pavel ,Russ:
>> I want to build the kernelhttps://github.com/russdill/linux/commits/arm-
>> hibernation-am33xx-v3.12 to be used in BeagleBone black too, after I clone
>> and checkout the branch, I'm not sure whether my opration is right, can
>> someone help me to comfirm?
>> Below is my operation:
>> 1. make ARCH=arm CROSS_COMPILE=/media/work/BBB/tools/arm-2010.09/bin/arm-
>> none-linux-gnueabi- omap2plus_defconfig . Is the omap2plus_defconfig is
>> right configuration file?
>> 2. russdill says his board is BeagleBone(http://www.youtube.com/watch?
>> v=3hdbH-Ur-hE), so if there would be some modificaiton to be done before
>> compile this source code?
>> 3. Is there any intructions about using and compiling the hibernation source
>> code?
> Hi Tony,
>
> I use omap2plus_defconfig.
>
> I have been working with BeagleBone Black (bbb) for hibernation on this branch:
>
> http://git.linaro.org/git-ro/people/sebastian.capella/linux.git hibernation_3.13_russMerge
>
> I ran into a few minor issues on Russ' branch for bbb that I had to work
> around. In the end it worked fine, but I know I had to add some entries
> in the dts files at least for it to work.
>
> On bbb I'm resuming from initramfs by echoing the hibernation
> swap device onto /sys/power/resume during my initscript, but before
> remounting the partitions. You may need to do similar.
>
> You will have to change power managemennt -> hibernation to on in
> menuconfig.
>
> I can help more, please let me know what you have and how you'd like to
> set it up.
>
> Thanks!
>
> Sebastian
next prev parent reply other threads:[~2014-03-02 7:57 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 [this message]
2014-03-04 5:12 ` Sebastian Capella
2014-03-04 11:04 ` TonyHo
2014-03-05 0:16 ` Sebastian Capella
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=5312E46B.8020900@gmail.com \
--to=tonyho.profession@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).