All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: getting grub booting in qemu..
Date: Sun, 02 May 2010 11:52:50 +0200	[thread overview]
Message-ID: <4BDD4B72.5040704@gmail.com> (raw)
In-Reply-To: <1272780357.467.11.camel@simon-laptop>

[-- Attachment #1: Type: text/plain, Size: 1725 bytes --]

> 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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]

      reply	other threads:[~2010-05-02  9:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-02  6:05 getting grub booting in qemu Simon Kitching
2010-05-02  9:52 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BDD4B72.5040704@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.