From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI8Jw-0003jq-7q for qemu-devel@nongnu.org; Thu, 05 May 2011 19:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI8Jv-0007Jd-Bh for qemu-devel@nongnu.org; Thu, 05 May 2011 19:51:00 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:59049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI8Jv-0007JZ-6I for qemu-devel@nongnu.org; Thu, 05 May 2011 19:50:59 -0400 Received: by gxk26 with SMTP id 26so1167346gxk.4 for ; Thu, 05 May 2011 16:50:58 -0700 (PDT) Message-ID: <4DC337DF.1060100@landley.net> Date: Thu, 05 May 2011 18:50:55 -0500 From: Rob Landley MIME-Version: 1.0 References: <57FFBBA3-27A2-4362-A6AC-4D48315352EB@suse.de> In-Reply-To: <57FFBBA3-27A2-4362-A6AC-4D48315352EB@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Allow ARMv7M to be started without a kernel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Peter Maydell , qemu-devel@nongnu.org, Ben Leslie On 05/05/2011 06:26 PM, Alexander Graf wrote: >> As an aside: I think QEMU should have an option which is "just load >> a plain ELF or raw binary, with no funny Linux-kernel-specific >> behaviour" rather than overloading -kernel to mean "if it's a raw >> image it's Linux and if it's an ELF file it's not". > > Traditionally, -bios has been that one. -kernel is more of a real > bootloader replacement, including all the weirdness a bootloader does > :). Except that neither "qemu-system-x86_64 -bios vmlinux" nor qemu-system-x86_64 -kernel vmlinux" will load an ELF kernel on x86-64. The code to do this _exists_ within qemu, it's just not hooked up consistently on all targets. We have a universal cross-platform image format, and we have support in qemu for loading that format, and for some reason it's only enabled on certain targets. I've never understood why... Rob