qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Increase maximum kernel size allowed by -kernel and -initrd
@ 2006-05-01  3:16 Ed Swierk
  0 siblings, 0 replies; only message in thread
From: Ed Swierk @ 2006-05-01  3:16 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

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

[-- Attachment #2: qemu-initrd.patch --]
[-- Type: text/x-patch, Size: 450 bytes --]

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
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-01  3:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-01  3:16 [Qemu-devel] [PATCH] Increase maximum kernel size allowed by -kernel and -initrd Ed Swierk

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).