From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTfA0-0001ZZ-42 for qemu-devel@nongnu.org; Sun, 01 Feb 2009 11:27:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTf9y-0001Xn-C2 for qemu-devel@nongnu.org; Sun, 01 Feb 2009 11:27:02 -0500 Received: from [199.232.76.173] (port=37239 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTf9y-0001XW-5I for qemu-devel@nongnu.org; Sun, 01 Feb 2009 11:27:02 -0500 Received: from [208.43.5.43] (port=37882 helo=scorpio.hrn9.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTf9x-0008A1-OT for qemu-devel@nongnu.org; Sun, 01 Feb 2009 11:27:01 -0500 Received: from [127.0.0.1] (helo=[192.168.1.3]) by scorpio.hrn9.com with esmtpa (Exim 4.69) (envelope-from ) id 1LTf9t-0006C0-3c for qemu-devel@nongnu.org; Sun, 01 Feb 2009 21:56:57 +0530 Subject: Re: [Qemu-devel] How linux kernel is directly loaded? From: Thakur In-Reply-To: References: <1233468649.5990.3.camel@himanshu-laptop> Content-Type: text/plain Date: Sun, 01 Feb 2009 21:57:06 +0530 Message-Id: <1233505626.6790.1.camel@himanshu-laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: thakur@symmetricore.com, 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 Sun, 2009-02-01 at 16:51 +0200, Blue Swirl wrote: > On 2/1/09, Thakur wrote: > > Hi, > > > > I was searching for code in qemu which is directly able to load linux > > kernel with -k option. Which file implements it? Can someone point me to > > location where this load process is described? My objective is to load > > the Minix kernel in same fashion. > > For PC architecture, it's done in hw/pc.c. There are ELF, a.out and > binary load functions available, if you need them for Minix. > > I don't have much knowledge of internals of qemu. I know how u-boot loads the linux kernel, so I was searching for similar pattern. :) How does qemu know the entry point of the kernel? Thanks Regards - Himanshu