All of lore.kernel.org
 help / color / mirror / Atom feed
* getting grub booting in qemu..
@ 2010-05-02  6:05 Simon Kitching
  2010-05-02  9:52 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Kitching @ 2010-05-02  6:05 UTC (permalink / raw)
  To: grub-devel

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

I'm trying to set up a qemu image for testing grub; see attached script.
When I start qemu with the resulting image file, via "qemu raw.img" I
get:

  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=(hd0,1)/boot/grub", and confirmed with gdb that this is indeed
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


[-- Attachment #2: inst.sh --]
[-- Type: application/x-shellscript, Size: 3909 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: getting grub booting in qemu..
  2010-05-02  6:05 getting grub booting in qemu Simon Kitching
@ 2010-05-02  9:52 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2010-05-02  9:52 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-02  9:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-02  6:05 getting grub booting in qemu Simon Kitching
2010-05-02  9:52 ` Vladimir 'φ-coder/phcoder' Serbinenko

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.