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
diff -burN qemu-0.7.2.orig/hw/pc.c qemu-0.7.2/hw/pc.c
--- qemu-0.7.2.orig/hw/pc.c	2005-09-04 17:11:31.000000000 +0000
+++ qemu-0.7.2/hw/pc.c	2005-11-22 20:39:29.000000000 +0000
@@ -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
 
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to