From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([66.187.233.31]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1Jh6jk-0000a2-89 for kexec@lists.infradead.org; Wed, 02 Apr 2008 17:27:00 +0000 Date: Wed, 2 Apr 2008 13:26:57 -0400 From: Vivek Goyal Subject: Re: kexec won't --load-panic a 2.6.22 relocatable kernel? Message-ID: <20080402172657.GJ668@redhat.com> References: <170fa0d20803182305x3b16f7bt198d767a53553c8e@mail.gmail.com> <20080321053236.GA29330@verge.net.au> <20080324082924.GA26733@verge.net.au> <170fa0d20803240718p3b0d20cbga6c0d4f34af63125@mail.gmail.com> <170fa0d20803240822j1bf02aeer7471651b6ec7e321@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <170fa0d20803240822j1bf02aeer7471651b6ec7e321@mail.gmail.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@lists.infradead.org To: Mike Snitzer Cc: Simon Horman , kexec@lists.infradead.org On Mon, Mar 24, 2008 at 11:22:59AM -0400, Mike Snitzer wrote: > On Mon, Mar 24, 2008 at 10:18 AM, Mike Snitzer wrote: > > > > On Mon, Mar 24, 2008 at 4:29 AM, Simon Horman wrote: > > > > > > On Fri, Mar 21, 2008 at 02:32:36PM +0900, Simon Horman wrote: > > > > On Wed, Mar 19, 2008 at 02:05:46AM -0400, Mike Snitzer wrote: > > > > > I'm building a x86_64 2.6.22 kernel with the following options set: > > > > > > > > > > CONFIG_KEXEC=y > > > > > CONFIG_CRASH_DUMP=y > > > > > CONFIG_RELOCATABLE=y > > > > > CONFIG_PHYSICAL_START=0x200000 > > > > > > > > > > If I try to load the kernel with the following I get: > > > > > > > > > > ./kexec --args-linux -p '--command-line=ro root=LABEL=/1 rhgb quiet > > > > > irqpoll maxcpus=1' --initrd=/boot/initrd-2.6.22.19.img > > > > > /boot/vmlinuz-2.6.22.19 > > > > > > > > > > ./kexec: unrecognized option `--args-linux' > > > > > kexec-tools-testing 20080318-rc released 18th March 2008 > > > > > Usage: kexec [OPTION]... [kernel] > > > > > ... > > > > > Cannot load /boot/vmlinuz-2.6.22.19 > > > > > > > > Hi Mike, > > > > > > > > that looks a lot like a problem with kexec-tools parsing command line > > > > arguments to me. However I'm not having much luck reproducing it here. > > > > I'll poke a bit more. > > > > > > > > Did you get kexec-tools-testing 20080318-rc as a tarball from > > > > kernel.org? I just want to make sure we are looking at the same code. > > > > > > Sorry for being a bit slow, I have managed to reproduce the problem, > > > which is that --args-linux can't be used if the image is a bzImage. > > > Could you try with a vmlinux image instead? > > > > Interesting, makes sense. > > > > Sure enough RedHat's image is a "ELF 64-bit LSB shared object" and a > > vmlinux is "ELF 64-bit LSB executable". > > > > I wonder how RedHat gets their kernel image to be an ELF image? > > RedHat includes the following (which never made it upstream): > http://lkml.org/lkml/2006/8/14/203 > Yep. Andrew Morton's one machine with lilo boot-loader did not boot with ELF header for bzImage and we did not know what was wrong. So above patch never made upstream. Anyway, it was not a necessary patch though.. Thanks Vivek _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec