Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GrLII-0003zy-Da for qemu-devel@nongnu.org; Mon, 04 Dec 2006 16:24:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GrLIH-0003ze-HU for qemu-devel@nongnu.org; Mon, 04 Dec 2006 16:24:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrLIH-0003zb-Ap for qemu-devel@nongnu.org; Mon, 04 Dec 2006 16:24:09 -0500 Received: from [194.109.24.37] (helo=smtp-vbr17.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GrLIH-0000cv-06 for qemu-devel@nongnu.org; Mon, 04 Dec 2006 16:24:09 -0500 Received: from zarniwoop.de.bilt (streefland.xs4all.nl [213.84.249.15]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id kB4LO3ZQ028512 for ; Mon, 4 Dec 2006 22:24:07 +0100 (CET) (envelope-from dick@streefland.xs4all.nl) Date: Mon, 4 Dec 2006 22:24:09 +0100 From: Dick Streefland Message-ID: <20061204212409.GA18318@streefland.xs4all.nl> References: <20061202231857.GA12814@streefland.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061202231857.GA12814@streefland.xs4all.nl> Subject: [Qemu-devel] Re: initrd not working Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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