Skip to contentSkip to conversation

Increase maximum kernel size allowed by -kernel and -initrd

PATCH New Ed Swierk 1 participant 1 message May 1, 2006

lore
Share & tools
lore

Ed Swierk

author
#0 lore raw

PATCH 1/1 Increase maximum kernel size allowed by -kernel and -initrd

qemu fails to boot recent releases of Fedora Core with the -kernel/-initrd options, since the kernel is large enough to overrun the space allocated to it by qemu's built-in bootloader.

The attached patch simply moves the base address of the initrd to a higher location, which allows sufficient space for a larger kernel.

Ideally qemu would figure out where to load the initrd based on the size of the kernel, but I hope this patch is simple enough to solve the problem for now.

--Ed

hw/pc.c +1 -1
diff -burN qemu-0.7.2.orig/hw/pc.c qemu-0.7.2/hw/pc.c
@@ -32,7 +32,7 @@
 #define LINUX_BOOT_FILENAME "linux_boot.bin"
 
 #define KERNEL_LOAD_ADDR     0x00100000
-#define INITRD_LOAD_ADDR     0x00400000
+#define INITRD_LOAD_ADDR     0x00600000
 #define KERNEL_PARAMS_ADDR   0x00090000
 #define KERNEL_CMDLINE_ADDR  0x00099000