* [PATCH] change where the kernel loads
@ 2008-01-15 21:06 Mike Wolf
2008-01-15 21:09 ` Scott Wood
0 siblings, 1 reply; 2+ messages in thread
From: Mike Wolf @ 2008-01-15 21:06 UTC (permalink / raw)
To: linuxppc-dev
When netbooting a kernel with an initrd or initramfs that makes
the image larger than 8 meg the firmware will kick out the kernel
and go to the second boot device. However when the mkzimage
script is used to create the image instead of 'make zImage' then
the kernel/initrd will netboot. So this patch changes boot/zImage.lds
to load the kernel at the same location that the mkzimage would set.
This has been boot tested on POWER5, POWER5+, blades and POWER6
systems successfully.
signed off by: Mike Wolf (mjw@us.ibm.com)
------
--- linux-2.6.16.46-0.12.orig/arch/powerpc/boot/zImage.lds 2008-01-07 14:51:05.000000000 -0600
+++ linux-2.6.16.46-0.12/arch/powerpc/boot/zImage.lds 2008-01-07 14:31:14.000000000 -0600
@@ -2,7 +2,7 @@
ENTRY(_zimage_start)
SECTIONS
{
- . = (4*1024*1024);
+ . = (64*1024);
_start = .;
.text :
{
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] change where the kernel loads
2008-01-15 21:06 [PATCH] change where the kernel loads Mike Wolf
@ 2008-01-15 21:09 ` Scott Wood
0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2008-01-15 21:09 UTC (permalink / raw)
To: mjw; +Cc: linuxppc-dev
Mike Wolf wrote:
> When netbooting a kernel with an initrd or initramfs that makes
> the image larger than 8 meg the firmware will kick out the kernel
> and go to the second boot device. However when the mkzimage
> script is used to create the image instead of 'make zImage' then
> the kernel/initrd will netboot. So this patch changes boot/zImage.lds
> to load the kernel at the same location that the mkzimage would set.
>
> This has been boot tested on POWER5, POWER5+, blades and POWER6
> systems successfully.
This will fail on any platform without a vmlinux_alloc(), as there will
be insufficient room for the kernel at address zero.
-Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-15 21:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 21:06 [PATCH] change where the kernel loads Mike Wolf
2008-01-15 21:09 ` Scott Wood
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).