From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O8VrU-0003zQ-8F for mharc-grub-devel@gnu.org; Sun, 02 May 2010 05:53:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8VrQ-0003yN-9W for grub-devel@gnu.org; Sun, 02 May 2010 05:53:16 -0400 Received: from [140.186.70.92] (port=36693 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8VrO-0003xw-8M for grub-devel@gnu.org; Sun, 02 May 2010 05:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8VrK-0008CQ-Qd for grub-devel@gnu.org; Sun, 02 May 2010 05:53:14 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:55577) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8VrK-0008CB-Km for grub-devel@gnu.org; Sun, 02 May 2010 05:53:10 -0400 Received: by bwz23 with SMTP id 23so879089bwz.26 for ; Sun, 02 May 2010 02:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=1rG/+w5hi67epHzbJd4Bc142vo/3bhs7sex65OKL2yc=; b=KrnI+yfIvD0oilxPt012AHymAryEisiDViiPH3yNaqq0USStKGtoBcNvBEVHRu7HgR h6HuR2xCVT+jxnz4+4Sfro29FuxLaSDwpobINU0ckCatxfrJW+nqqRhSr/cow204z1kQ NhJeuMBRBccNMeXYNPEZscKALPoSFHOqYEzmE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=Ty80YjptYSF3Mf/ldmDrCAQFwsZL4XbywCIEuJ1UO030vqC9ZKW2DPH38KVcAsLSHh 032uAtTD5FT5Daokoz7sbdIZsm6eTTL7SjCjMSby3ppEGjh8UmJsbMWqwBwUS9N9CJvX DMDu3S0tn6/DaolB3lTUs7UsK0icjI/MCqhxU= Received: by 10.204.73.149 with SMTP id q21mr8780081bkj.57.1272793987007; Sun, 02 May 2010 02:53:07 -0700 (PDT) Received: from debian.bg45.phnet ([81.62.158.176]) by mx.google.com with ESMTPS id 15sm1258641bwz.8.2010.05.02.02.53.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 May 2010 02:53:06 -0700 (PDT) Message-ID: <4BDD4B72.5040704@gmail.com> Date: Sun, 02 May 2010 11:52:50 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <1272780357.467.11.camel@simon-laptop> In-Reply-To: <1272780357.467.11.camel@simon-laptop> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig53F025ECBC6296C33CFB3D8F" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: getting grub booting in qemu.. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2010 09:53:16 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig53F025ECBC6296C33CFB3D8F Simon Kitching wrote: > I'm trying to set up a qemu image for testing grub; see attached script= =2E > When I start qemu with the resulting image file, via "qemu raw.img" I > get: > > =20 This is not a tech support list. But ok, you forgot to include either biosdisk or ata module > Booting from Hard Disk.... > Welcome to Grub! > > error: no such disk. > Entering rescue mode... > grub rescue> _ > > If I type > $root > I get back > Unknown command `hd0,1' > > So it would seem that the MBR and embedded core.img are working well, > but that core.img cannot find /boot/grub. > > Any ideas why, given that $root appears to be correct? I've tried > explicitly defining the disk in grub-mkimage with > "--prefix=3D(hd0,1)/boot/grub", and confirmed with gdb that this is ind= eed > being recognised, but it had no effect. > > I have been trying to debug this by putting some print-statements in > disk/i386/pc/biosdisk.c to show what disk is being accessed, but this > code doesn't appear to be run. > > How exactly is "kernel.img" built anyway? I've looked in the makefiles > and can't see what source files kernel.img is made from. File genmk.rb > perhaps has something to do with it, but I just don't understand.. > > And I see that in grub-mkimage there is something to do with qemu: > #elif defined(GRUB_MACHINE_QEMU) > .... > Is this relevant or not? > > Any ideas how I might debug this further? > > Thanks, > Simon > > =20 > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig53F025ECBC6296C33CFB3D8F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAkvdS4AACgkQNak7dOguQglLvgD7BnRKnnjGvgjFsU9ETem329Ie dW2WIt+yEK9+YcQP+QABAL3PzQexcemRDluBYIil3cHjkp5eck0m7xqtZHHc4KoH =wGzs -----END PGP SIGNATURE----- --------------enig53F025ECBC6296C33CFB3D8F--