Return-path: Received: from mailwasher.lanl.gov ([204.121.3.2]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1JD39y-0005cd-IX for kexec@lists.infradead.org; Thu, 10 Jan 2008 19:33:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailwasher.lanl.gov (Postfix) with ESMTP id 5224BEC861F for ; Thu, 10 Jan 2008 12:33:49 -0700 (MST) Received: from mailwasher.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher.lanl.gov (Postfix) with ESMTP id 25D17EC861D for ; Thu, 10 Jan 2008 12:33:49 -0700 (MST) Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailwasher.lanl.gov (Postfix) with ESMTP id 205EBEC861B for ; Thu, 10 Jan 2008 12:33:49 -0700 (MST) Received: from nmt-mail.lanl.gov (nmt-mail.lanl.gov [128.165.4.122]) by mailrelay2.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id m0AJXnGO024014 for ; Thu, 10 Jan 2008 12:33:49 -0700 Received: from [128.165.248.199] (glacier.lanl.gov [128.165.248.199]) by nmt-mail.lanl.gov (Postfix) with ESMTP id D8E0B21C007 for ; Thu, 10 Jan 2008 12:33:43 -0700 (MST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Message-Id: <2D2AC01D-D2BE-48CA-9333-8632AE8096C3@lanl.gov> From: kevint Subject: Re: Re: x86_64 kernel relocation question Date: Thu, 10 Jan 2008 12:33:41 -0700 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0659473717==" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org --===============0659473717== Content-Type: multipart/alternative; boundary=Apple-Mail-19-495606209 --Apple-Mail-19-495606209 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > * kevint [2008-01-10 01:45]: >> >> I am relatively new to kexec, and am running into some problems with >> relocations when I try to use kexec to load several different X86_64 >> kernels. I think this is the correct list to post to, but please >> point me >> in the right direction if it isn't. >> >> Here is some of the information on my test environment: >> >> $ kexec --version >> kexec-tools-testing 20071030 released 30th October 2007 >> >> $ uname -r >> 2.6.21.5 > > Just to make sure, is CONFIG_RELOCATABLE set? > I was a bit confused about this. I have two kernels: the kernel I want to kexec from and the one I want to kexec to. From what I've read, the kernel I kexec from needs to have kexec support (CONFIG_KEXEC=y) and the kernel I want to kexec to needs to be relocatable. It appears from: http://lists.infradead.org/pipermail/kexec/2007-April/000012.html that this configuration option (CONFIG_RELOCATABLE) is no longer required. I am going to dig around a bit more to see if I can find out more on how to build a relocatable x86_64 kernel. Please correct me if I am missing something here. >> $ kexec -l /tmp/vmlinuz >> Unhandled rela relocation: 4258616 >> >> I noticed this line in the source file, >> kexec/arch/x86_64/kexec-elf-rel-x86_64.c: >> >> die("Unhandled rela relocation: %lu\n", reloc_name(r_type)); >> >> I figured %lu should be %s, so I changed it, and got the following >> output: > > Can you make a patch and send it to this list so that it get fixed in > kexec-tools-testing? Cc Simon Horman , the > maintainer. > > Sent patch in previous message. > > Bernhard > > > > ------------------------------ Thanks again! ******************************************** Kevin Tegtmeier HPC-3 Scientific Computing Resources Los Alamos National Laboratory email: kevint@lanl.gov phone: 505.667.3488 ******************************************** --Apple-Mail-19-495606209 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1

* kevint <kevint@lanl.gov> [2008-01-10 = 01:45]:

I am relatively new to kexec, = and am running into some problems with=A0
=A0
kernels.=A0 = I think this is the correct list to post to, but please point = me=A0
in the right direction if it isn't.

Here is = some of the information on my test environment:

$ kexec = --version
kexec-tools-testing 20071030 = released 30th October 2007

$ uname -r
2.6.21.5

Just to make = sure, is CONFIG_RELOCATABLE set?


I was a bit confused about = this.=A0 I have two kernels:=A0 the kernel I want to kexec from and the = one I want to kexec to.=A0 =46rom what I've read, the kernel I kexec = from needs to have kexec support (CONFIG_KEXEC=3Dy) and the kernel I = want to kexec to needs to be relocatable.

It appears = from:

http://lists.infradead.org/pipermail/kexec/2007-April/000012.html

that this = configuration option (CONFIG_RELOCATABLE) is no longer required.=A0 I am = going to dig around a bit more to see if I can find out more on how to = build a relocatable x86_64 kernel.

Please correct me if I am = missing something here.

=
$ kexec -l = /tmp/vmlinuz
Unhandled rela relocation: = 4258616

I noticed this line in the source file,=A0


I = figured %lu should be %s, so I changed it, and got the following = output:
Can you make a patch and send it = to this list so that it get fixed in
horms@verge.net.au>, = the
maintainer.



Sent patch in previous = message.

=A0 =A0 =A0 =A0 = Bernhard



Thanks again!

= kevint@lanl.gov
phone: = 505.667.3488
********************************************
<= DIV>

=

= --Apple-Mail-19-495606209-- --===============0659473717== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec --===============0659473717==--