From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrITW-0002nC-Co for qemu-devel@nongnu.org; Wed, 19 Jan 2005 11:14:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CrITT-0002m5-So for qemu-devel@nongnu.org; Wed, 19 Jan 2005 11:14:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrITT-0002lF-MF for qemu-devel@nongnu.org; Wed, 19 Jan 2005 11:14:27 -0500 Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CrIFn-0006iE-JI for qemu-devel@nongnu.org; Wed, 19 Jan 2005 11:00:19 -0500 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CrIFm-0004D7-00 for ; Wed, 19 Jan 2005 17:00:18 +0100 Received: from antec.office.bytemark.co.uk ([80.68.80.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Jan 2005 17:00:17 +0100 Received: from matthew by antec.office.bytemark.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Jan 2005 17:00:17 +0100 From: Matthew Bloch Date: Wed, 19 Jan 2005 16:00:04 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Sender: news Subject: [Qemu-devel] -initrd broken in latest CVS (+fix) 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 I was wanting to use qemu (CVS as of earlier today) to test some kernel / initrd boot combinations and found that the -initrd functionality was broken: checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd Freeing initrd memory: 8566k freed Unable to handle kernel paging request at virtual address d10f9c1c printing eip: c0137d31 *pde = 00000000 Oops: 0000 [#1] PREEMPT SMP Modules linked in: CPU: 0 EIP: 0060:[] Not tainted VLI EFLAGS: 00000093 (2.6.10-bytemark-i386-20050119-1) EIP is at free_pages_bulk+0x12d/0x244 eax: 00000001 ebx: c0353d04 ecx: c0353d88 edx: c1100180 esi: fff9a9e7 edi: 7ffcd4f3 ebp: 00000000 esp: c11abf50 ds: 007b es: 007b ss: 0068 Process swapper (pid: 1, threadinfo=c11aa000 task=c119aa20) Stack: 00000001 c0353d88 c1008c00 00000001 ffffffff c0353d04 c0353d00 00000000 c1000000 c0353d04 00000086 c0353880 c1008ce0 c11aa000 c0353910 c0138335 c0353880 00000000 c0353910 00000000 00000282 c0353880 c0468000 c0c5d800 Call Trace: [] free_hot_cold_page+0x115/0x120 [] free_initrd_mem+0x5d/0x6c [] populate_rootfs+0xa8/0xd8 [] init+0x73/0x160 [] init+0x0/0x160 [] kernel_thread_helper+0x5/0xc Code: 03 83 fd 09 0f 87 af 00 00 00 8d 93 08 05 00 00 89 54 24 04 89 f6 8b 4c 24 04 39 4c 24 14 0f 83 00 01 00 00 8b 5c 24 14 8b 53 08 <0f> bb 3a 19 c0 85 c0 0f 84 81 00 00 00 89 e9 b8 01 00 00 00 d3 <0>Kernel panic - not syncing: Attempted to kill init! I'm not entirely sure what the issue was but in hw/pc.c changing #define INITRD_LOAD_ADDR 0x00400000 to: #define INITRD_LOAD_ADDR 0x00600000 seemed to fix it-- I support the kernel was stomping over the initrd and putting it a bit higher in memory seemed to fix this. -- Matthew Bloch Bytemark Hosting http://www.bytemark.co.uk/ phone UK: 0845 004 3 004 US: 1-877 BYTEMAR Dedicated Linux hosts from 15ukp ($26) per month