From: "Huang, Ying" <ying.huang@intel.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: david@lang.hm, nigel@nigel.suspend2.net,
Kexec Mailing List <kexec@lists.infradead.org>,
linux-kernel@vger.kernel.org, "Rafael J. Wysocki" <rjw@sisk.pl>,
Alan Stern <stern@rowland.harvard.edu>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-pm@lists.linux-foundation.org,
Jeremy Maitin-Shepard <jbms@cmu.edu>
Subject: Re: [PATH 0/1] Kexec jump - v2 - the first step to kexec based hibernation
Date: Wed, 01 Aug 2007 09:34:31 +0800 [thread overview]
Message-ID: <1185932071.1363.13.camel@caritas-dev.intel.com> (raw)
In-Reply-To: <20070731110458.GA1777@elf.ucw.cz>
On Tue, 2007-07-31 at 13:04 +0200, Pavel Machek wrote:
> Hi!
>
> > 3. Boot kernel compiled for normal usage, the reserved crash kernel
> > memory region must be added to kernel command line as following:
> >
> > crashkernel=<XX>M@<XX>M
> >
> > Where, <XX> should be replaced by the real memory size and
> > position.
>
> I used crashkernel=64M@64M .
>
>
> > 4. Load kernel compiled for hibernating usage as a crashdump kernel
> > with kexec, the same kernel as that of 3 can be used if
> > CONFIG_RELOCATABLE=y is selected. The kernel command line option as
> > following must be appended to kernel command line.
> >
> > kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`
> >
> > For example, the shell command line can be as follow:
> >
> > kexec -p /boot/vmlinux --args-linux --append="root=/dev/hdb signal
> > kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`"
>
> I think I followed the instructions closely. Now I'm trying to do
>
> kexec -p /data/l/linux/vmlinux --args-linux --append="init=/bin/bash
> kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`"
>
> but it tells me:
>
> Invalid memory segment 0x100000 - 0x7a0fff
>
> (and nothing in dmesg)
>
> If I try to load bzImage (corresponding to vmlinux I tried to use), I
> get:
>
> root@amd:~# kexec -p /data/l/linux/arch/i386/boot/bzImage --append="init=/bin/bash kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`"
> Could not find a free area of memory of 9000 bytes...
> locate_hole failed
> root@amd:~#
>
> What am I doing wrong?
The kexec-tools version 1.101 does not work perfectly with relocatable
kernel. This would have been solved if I worked against kexec-tools
testing tree. I will work against testing tree in the next version.
But, with some trick, it can work. When configure kernel, make sure the
following option is set:
CONFIG_PHYSICAL_START=0x4000000 # if crashkernel=<XX>M@64M
Best Regards,
Huang Ying
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: "Huang, Ying" <ying.huang@intel.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
nigel@nigel.suspend2.net, "Rafael J. Wysocki" <rjw@sisk.pl>,
Jeremy Maitin-Shepard <jbms@cmu.edu>,
Alan Stern <stern@rowland.harvard.edu>,
Andrew Morton <akpm@linux-foundation.org>,
david@lang.hm, linux-kernel@vger.kernel.org,
linux-pm@lists.linux-foundation.org,
Kexec Mailing List <kexec@lists.infradead.org>
Subject: Re: [PATH 0/1] Kexec jump - v2 - the first step to kexec based hibernation
Date: Wed, 01 Aug 2007 09:34:31 +0800 [thread overview]
Message-ID: <1185932071.1363.13.camel@caritas-dev.intel.com> (raw)
In-Reply-To: <20070731110458.GA1777@elf.ucw.cz>
On Tue, 2007-07-31 at 13:04 +0200, Pavel Machek wrote:
> Hi!
>
> > 3. Boot kernel compiled for normal usage, the reserved crash kernel
> > memory region must be added to kernel command line as following:
> >
> > crashkernel=<XX>M@<XX>M
> >
> > Where, <XX> should be replaced by the real memory size and
> > position.
>
> I used crashkernel=64M@64M .
>
>
> > 4. Load kernel compiled for hibernating usage as a crashdump kernel
> > with kexec, the same kernel as that of 3 can be used if
> > CONFIG_RELOCATABLE=y is selected. The kernel command line option as
> > following must be appended to kernel command line.
> >
> > kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`
> >
> > For example, the shell command line can be as follow:
> >
> > kexec -p /boot/vmlinux --args-linux --append="root=/dev/hdb signal
> > kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`"
>
> I think I followed the instructions closely. Now I'm trying to do
>
> kexec -p /data/l/linux/vmlinux --args-linux --append="init=/bin/bash
> kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`"
>
> but it tells me:
>
> Invalid memory segment 0x100000 - 0x7a0fff
>
> (and nothing in dmesg)
>
> If I try to load bzImage (corresponding to vmlinux I tried to use), I
> get:
>
> root@amd:~# kexec -p /data/l/linux/arch/i386/boot/bzImage --append="init=/bin/bash kexec_jump_buf_pfn=`cat /sys/kernel/kexec_jump_buf_pfn`"
> Could not find a free area of memory of 9000 bytes...
> locate_hole failed
> root@amd:~#
>
> What am I doing wrong?
The kexec-tools version 1.101 does not work perfectly with relocatable
kernel. This would have been solved if I worked against kexec-tools
testing tree. I will work against testing tree in the next version.
But, with some trick, it can work. When configure kernel, make sure the
following option is set:
CONFIG_PHYSICAL_START=0x4000000 # if crashkernel=<XX>M@64M
Best Regards,
Huang Ying
next prev parent reply other threads:[~2007-08-01 1:34 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-15 7:13 [PATH 0/1] Kexec jump - v2 - the first step to kexec based hibernation Huang, Ying
2007-07-15 7:13 ` Huang, Ying
2007-07-15 9:08 ` Nigel Cunningham
2007-07-15 9:08 ` Nigel Cunningham
2007-07-15 9:08 ` Nigel Cunningham
2007-07-15 10:09 ` Rafael J. Wysocki
2007-07-15 10:09 ` Rafael J. Wysocki
2007-07-15 10:09 ` Rafael J. Wysocki
2007-07-19 1:04 ` Andrew Morton
2007-07-19 1:04 ` Andrew Morton
2007-07-19 1:04 ` Andrew Morton
2007-07-19 2:15 ` Nigel Cunningham
2007-07-19 2:15 ` Nigel Cunningham
2007-07-19 2:15 ` Nigel Cunningham
2007-07-19 3:30 ` david
2007-07-19 3:30 ` david
2007-07-19 3:30 ` david
2007-07-19 6:43 ` Huang, Ying
2007-07-19 6:43 ` Huang, Ying
2007-07-19 9:13 ` Rafael J. Wysocki
2007-07-19 9:13 ` Rafael J. Wysocki
2007-07-19 9:13 ` Rafael J. Wysocki
2007-07-19 6:43 ` Huang, Ying
2007-07-31 9:10 ` Pavel Machek
2007-07-31 9:10 ` Pavel Machek
2007-07-31 9:25 ` Huang, Ying
2007-07-31 9:25 ` Huang, Ying
2007-07-31 9:25 ` Huang, Ying
2007-07-31 10:52 ` Eric W. Biederman
2007-07-31 10:52 ` Eric W. Biederman
2007-07-31 10:52 ` Eric W. Biederman
2007-07-31 11:12 ` Pavel Machek
2007-07-31 11:12 ` Pavel Machek
2007-07-31 11:12 ` Pavel Machek
2007-08-01 1:16 ` Huang, Ying
2007-08-01 1:16 ` Huang, Ying
2007-08-01 1:16 ` Huang, Ying
2007-07-31 11:14 ` Pavel Machek
2007-07-31 11:14 ` Pavel Machek
2007-07-31 11:14 ` Pavel Machek
2007-07-31 9:10 ` Pavel Machek
2007-07-31 11:04 ` Pavel Machek
2007-07-31 11:04 ` Pavel Machek
2007-07-31 11:04 ` Pavel Machek
2007-08-01 1:34 ` Huang, Ying [this message]
2007-08-01 1:34 ` Huang, Ying
2007-08-05 18:55 ` Pavel Machek
2007-08-05 18:55 ` Pavel Machek
2007-08-06 2:31 ` Huang, Ying
2007-08-06 2:31 ` Huang, Ying
2007-08-06 9:02 ` Pavel Machek
2007-08-06 9:02 ` Pavel Machek
2007-08-06 9:02 ` Pavel Machek
2007-08-06 13:22 ` Huang, Ying
2007-08-06 13:22 ` Huang, Ying
2007-08-06 13:22 ` Huang, Ying
2007-08-06 2:31 ` Huang, Ying
2007-08-05 18:55 ` Pavel Machek
2007-08-01 1:34 ` Huang, Ying
-- strict thread matches above, loose matches on Subject: below --
2007-07-15 7:13 Huang, Ying
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=1185932071.1363.13.camel@caritas-dev.intel.com \
--to=ying.huang@intel.com \
--cc=akpm@linux-foundation.org \
--cc=david@lang.hm \
--cc=ebiederm@xmission.com \
--cc=jbms@cmu.edu \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=nigel@nigel.suspend2.net \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
--cc=stern@rowland.harvard.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.