* relocatable kernel vs. yaboot
@ 2008-10-29 23:26 Johannes Berg
2008-10-30 21:33 ` Paul Mackerras
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2008-10-29 23:26 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev list
[-- Attachment #1: Type: text/plain, Size: 840 bytes --]
Hi,
Sorry if this has been discussed before, but I just found that yaboot
rejects relocatable kernels claiming they are an invalid ELF file.
In the patch adding relocatable kernel support, I found
+# The iseries hypervisor won't take an ET_DYN executable, so this
+# changes the type (byte 17) in the file to ET_EXEC (2).
$(obj)/zImage.iseries: vmlinux
$(STRIP) -s -R .comment $< -o $@
+ printf "\x02" | dd of=$@ conv=notrunc bs=1 seek=17
Modifying the vmlinux in the same way as above makes yaboot take it, and
I can easily make this part of my installation procedure, but I wonder
if it should be done automatically? Or maybe only documented in the
Kconfig help text? I probably wouldn't have enabled it and then wondered
why it doesn't work if it had warned me about breaking yaboot ;)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: relocatable kernel vs. yaboot
2008-10-29 23:26 relocatable kernel vs. yaboot Johannes Berg
@ 2008-10-30 21:33 ` Paul Mackerras
2008-10-30 21:37 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Paul Mackerras @ 2008-10-30 21:33 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev list
Johannes Berg writes:
> Sorry if this has been discussed before, but I just found that yaboot
> rejects relocatable kernels claiming they are an invalid ELF file.
Yes, yaboot needs to be fixed.
> In the patch adding relocatable kernel support, I found
>
> +# The iseries hypervisor won't take an ET_DYN executable, so this
> +# changes the type (byte 17) in the file to ET_EXEC (2).
> $(obj)/zImage.iseries: vmlinux
> $(STRIP) -s -R .comment $< -o $@
> + printf "\x02" | dd of=$@ conv=notrunc bs=1 seek=17
>
>
> Modifying the vmlinux in the same way as above makes yaboot take it, and
> I can easily make this part of my installation procedure, but I wonder
> if it should be done automatically? Or maybe only documented in the
> Kconfig help text? I probably wouldn't have enabled it and then wondered
> why it doesn't work if it had warned me about breaking yaboot ;)
Yes, we could add something to the help text. Until yaboot gets
fixed, you could either boot the zImage with yaboot or use that
iseries hack.
Why did you enable it? Just to try it out? The main reason for
having it turned on is if you want to have a single kernel image that
can be used both as a normal kernel and a kdump kernel.
Paul.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: relocatable kernel vs. yaboot
2008-10-30 21:33 ` Paul Mackerras
@ 2008-10-30 21:37 ` Johannes Berg
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2008-10-30 21:37 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev list
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
On Fri, 2008-10-31 at 08:33 +1100, Paul Mackerras wrote:
> Yes, yaboot needs to be fixed.
Yeah, my bad, I was offline when writing this and only checked later to
find you'd already discussed that. Sorry.
> > Modifying the vmlinux in the same way as above makes yaboot take it, and
> > I can easily make this part of my installation procedure, but I wonder
> > if it should be done automatically? Or maybe only documented in the
> > Kconfig help text? I probably wouldn't have enabled it and then wondered
> > why it doesn't work if it had warned me about breaking yaboot ;)
>
> Yes, we could add something to the help text. Until yaboot gets
> fixed, you could either boot the zImage with yaboot or use that
> iseries hack.
I can send a patch if you want?
> Why did you enable it? Just to try it out? The main reason for
> having it turned on is if you want to have a single kernel image that
> can be used both as a normal kernel and a kdump kernel.
Yeah, no particular reason, just enabled it on a whim when oldconfig
asked.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-30 21:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 23:26 relocatable kernel vs. yaboot Johannes Berg
2008-10-30 21:33 ` Paul Mackerras
2008-10-30 21:37 ` Johannes Berg
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).