Return-path: Received: from gprs189-60.eurotel.cz ([160.218.189.60] helo=amd.ucw.cz) by canuck.infradead.org with esmtp (Exim 4.63 #1 (Red Hat Linux)) id 1IFpWx-0000O3-Lx for kexec@lists.infradead.org; Tue, 31 Jul 2007 07:04:51 -0400 Date: Tue, 31 Jul 2007 13:04:58 +0200 From: Pavel Machek Subject: Re: [PATH 0/1] Kexec jump - v2 - the first step to kexec based hibernation Message-ID: <20070731110458.GA1777@elf.ucw.cz> References: <1184483593.1898.98.camel@caritas-dev.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1184483593.1898.98.camel@caritas-dev.intel.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org+dwmw2=infradead.org@lists.infradead.org To: "Huang, Ying" Cc: david@lang.hm, nigel@nigel.suspend2.net, Kexec Mailing List , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Alan Stern , "Eric W. Biederman" , Andrew Morton , linux-pm@lists.linux-foundation.org, Jeremy Maitin-Shepard Hi! > 3. Boot kernel compiled for normal usage, the reserved crash kernel > memory region must be added to kernel command line as following: > > crashkernel=M@M > > Where, 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? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec