qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: initrd not working


From: Dick Streefland
Subject: [Qemu-devel] Re: initrd not working
Date: Mon, 4 Dec 2006 22:24:09 +0100
User-agent: Mutt/1.5.12-2006-07-14

On Sunday 2006-12-03 00:18, Dick Streefland wrote:
| I run qemu-0.8.2 on Kubuntu, and I would like to test an initramfs by
| booting the kernel with qemu. However, I'm having problems with the
| initrd. The kernel reports "bad gzip magic numbers" when checking the
| initramfs, both with a compressed ext2 filesystem image and with a
| compressed cpio archive. What am I doing wrong?

It looks like the kernel is overwriting the initrd image. When I
increase the space for the kernel to 64Mb:

--- qemu-0.8.2/hw/pc.c.orig     2006-12-04 22:17:09.000000000 +0100
+++ qemu-0.8.2/hw/pc.c  2006-12-04 22:04:36.000000000 +0100
@@ -32,7 +32,7 @@
 #define LINUX_BOOT_FILENAME "linux_boot.bin"
 
 #define KERNEL_LOAD_ADDR     0x00100000
-#define INITRD_LOAD_ADDR     0x00600000
+#define INITRD_LOAD_ADDR     0x04100000
 #define KERNEL_PARAMS_ADDR   0x00090000
 #define KERNEL_CMDLINE_ADDR  0x00099000
 
I can successfully boot. The 5Mb space is not enough for my kernel:

Memory: 120640k/131072k available (4138k kernel code, 9900k reserved, 2300k 
data, 320k init, 0k highmem)

Perhaps, the load address could be made dynamic?

-- 
Dick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]