Received: from [140.186.70.92] (port=40028 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OscSe-0007G9-KK for qemu-devel@nongnu.org; Mon, 06 Sep 2010 10:14:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OscSd-0002Rn-CP for qemu-devel@nongnu.org; Mon, 06 Sep 2010 10:14:16 -0400 Received: from smtp28.orange.fr ([80.12.242.100]:29629) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OscSd-0002RV-7X for qemu-devel@nongnu.org; Mon, 06 Sep 2010 10:14:15 -0400 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2806.orange.fr (SMTP Server) with ESMTP id 372B270011C0 for ; Mon, 6 Sep 2010 16:14:12 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2806.orange.fr (SMTP Server) with ESMTP id 2AC467002020 for ; Mon, 6 Sep 2010 16:14:12 +0200 (CEST) Received: from localhost.localdomain (AToulouse-159-1-51-197.w92-134.abo.wanadoo.fr [92.134.82.197]) by mwinf2806.orange.fr (SMTP Server) with ESMTP id D739370011C0 for ; Mon, 6 Sep 2010 16:14:11 +0200 (CEST) From: Daniel Lezcano Date: Mon, 6 Sep 2010 16:12:50 +0200 Message-Id: <1283782373-4797-1-git-send-email-daniel.lezcano@free.fr> Subject: [Qemu-devel] [rfc 0/3] arm : dynamically choose initrd load address List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, after compiling my kernel on the arm architecture I was not able to start it because qemu was segfaulting or going to an infinite loop. After google'ing I found on launchpad the bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/524893 Following the indications, I rebuilt qemu with an higher initrd load address and the kernel booted correctly. I am trying to make the things easier and/or to fail gracefully with patchset but I am not familiar with the ARM architecture neither qemu internals, so may be I am totally wrong :) The first patch raise an error if there is an overlapping error. But the two next patches makes to compute automatically an address for initrd to loaded. Daniel Lezcano (3): arm : raise an error if the kernel size will overlap the initrd arm : factor out set_kernel_args[_old] arm : make initrd load address dynamic hw/arm-misc.h | 1 + hw/arm_boot.c | 40 +++++++++++++++++++--------------------- 2 files changed, 20 insertions(+), 21 deletions(-)