[PATCH] change where the kernel loads
Mike Wolf
mjw at linux.vnet.ibm.com
Wed Jan 16 08:06:00 EST 2008
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 at 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 :
{
More information about the Linuxppc-dev
mailing list