Skip to contentSkip to conversation

change where the kernel loads

PATCH In review Mike Wolf 2 participants 2 messages Jan 15, 2008 PowerPC

lore
Share & tools
lore

Mike Wolf

author
#0 lore raw

PATCH 1/1 change where the kernel loads

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 ([email protected])

------

arch/powerpc/boot/zImage.lds +0 -0
@@ -2,7 +2,7 @@

ENTRY(_zimage_start)
SECTIONS
{
- . = (4*1024*1024);
+ . = (64*1024);
_start = .;
.text :
{

#1 lore raw
Quoted 6 lines · Mike Wolf

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