qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Ed Swierk" <eswierk@arastra.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Increase maximum kernel size allowed by -kernel and -initrd
Date: Sun, 30 Apr 2006 20:16:19 -0700	[thread overview]
Message-ID: <c1bf1cf0604302016w1631d90cl7ff132e6fb4caefb@mail.gmail.com> (raw)

[-- 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
 

                 reply	other threads:[~2006-05-01  3:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c1bf1cf0604302016w1631d90cl7ff132e6fb4caefb@mail.gmail.com \
    --to=eswierk@arastra.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).