All of lore.kernel.org
 help / color / mirror / Atom feed
* Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99)
@ 2014-07-19 21:44 Noel Hunt
  2014-07-19 21:55 ` seth.goldberg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Noel Hunt @ 2014-07-19 21:44 UTC (permalink / raw)
  To: grub-devel

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

I have a FreeBSD 10.0/Solaris 11.1 dual-boot machine. Solaris was
installed after FreeBSD and since it uses grub by default I am using
that to boot. Currently I am just invoking /boot/loader from grub.cfg
in Solaris to boot FreeBSD, but I would like to boot directly. This
just doesn't work.

I have installed grub2 on FreeBSD via ports, and run `grub-mkconfig'
to get some entries for grub.cfg which I have simply applied to the
Solaris installation (via the custom.cfg script).

But, this entry just doesn't work. I have tried running each command
by hand at the grub CLI with debugging but after all the debug output
is printed (not revealing anything abnormal) the screen goes black
and the machine reverts to the normal power-on screen, and the
boot selection process starts all over again.

This is the entry:

menuentry 'FreeBSD, with kFreeBSD kernel' {
        insmod part_gpt
        insmod ufs2
        search --no-floppy --fs-uuid --set=root 53a87fa1e9b6256d
        echo 'Loading kernel of FreeBSD kernel ...'
        kfreebsd  /boot/kernel/kernel
        kfreebsd_loadenv   /boot/device.hints
        kfreebsd_module_elf     /boot/kernel/ufs.ko
        set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/53a87fa1e9b6256d
        set kFreeBSD.vfs.root.mountfrom.options=rw
}

If I could see what actually happens at the grub `boot' I might be
able to fix this, but it doesn't look like there are any other debug
mechanisms for grub apart from `set debug=all'.

I tried to add different flags to the kernel invocation, -v and -d but
nothing happened. The screen goes black and reverts to a normal
grub boot menu.

Are there any mechanisms inside grub to get more debugging
information?

Noel Hunt

[-- Attachment #2: Type: text/html, Size: 2422 bytes --]

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

* Re: Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99)
  2014-07-19 21:44 Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99) Noel Hunt
@ 2014-07-19 21:55 ` seth.goldberg
  2014-07-19 23:35 ` Vladimir 'phcoder' Serbinenko
  2014-07-20 11:23 ` Andrey Borzenkov
  2 siblings, 0 replies; 4+ messages in thread
From: seth.goldberg @ 2014-07-19 21:55 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi,

  If you can try this from qemu, you can get down to the machine level to figure out what's going wrong.  Booting FreeBSD is something we never really tested unfortunately but if there are issues that perhaps existed in the trunk at the point we forked grub for Solaris, we might need to add some patches. If you can help to figure out which those are, I'll get those integrated.  Sorry about the inconvenience!

  Thanks,
  --S

> On Jul 19, 2014, at 2:44 PM, Noel Hunt <noel.hunt@gmail.com> wrote:
> 
> I have a FreeBSD 10.0/Solaris 11.1 dual-boot machine. Solaris was
> installed after FreeBSD and since it uses grub by default I am using
> that to boot. Currently I am just invoking /boot/loader from grub.cfg
> in Solaris to boot FreeBSD, but I would like to boot directly. This
> just doesn't work.
> 
> I have installed grub2 on FreeBSD via ports, and run `grub-mkconfig'
> to get some entries for grub.cfg which I have simply applied to the
> Solaris installation (via the custom.cfg script).
> 
> But, this entry just doesn't work. I have tried running each command
> by hand at the grub CLI with debugging but after all the debug output
> is printed (not revealing anything abnormal) the screen goes black
> and the machine reverts to the normal power-on screen, and the
> boot selection process starts all over again.
> 
> This is the entry:
> 
> menuentry 'FreeBSD, with kFreeBSD kernel' {
>         insmod part_gpt
>         insmod ufs2
>         search --no-floppy --fs-uuid --set=root 53a87fa1e9b6256d
>         echo 'Loading kernel of FreeBSD kernel ...'
>         kfreebsd  /boot/kernel/kernel
>         kfreebsd_loadenv   /boot/device.hints
>         kfreebsd_module_elf     /boot/kernel/ufs.ko
>         set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/53a87fa1e9b6256d
>         set kFreeBSD.vfs.root.mountfrom.options=rw
> }
> 
> If I could see what actually happens at the grub `boot' I might be
> able to fix this, but it doesn't look like there are any other debug
> mechanisms for grub apart from `set debug=all'.
> 
> I tried to add different flags to the kernel invocation, -v and -d but
> nothing happened. The screen goes black and reverts to a normal
> grub boot menu.
> 
> Are there any mechanisms inside grub to get more debugging
> information?
> 
> Noel Hunt
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


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

* Re: Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99)
  2014-07-19 21:44 Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99) Noel Hunt
  2014-07-19 21:55 ` seth.goldberg
@ 2014-07-19 23:35 ` Vladimir 'phcoder' Serbinenko
  2014-07-20 11:23 ` Andrey Borzenkov
  2 siblings, 0 replies; 4+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2014-07-19 23:35 UTC (permalink / raw)
  To: The development of GRUB 2

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

Please upgrade your grub
On 19 Jul 2014 23:45, "Noel Hunt" <noel.hunt@gmail.com> wrote:

> I have a FreeBSD 10.0/Solaris 11.1 dual-boot machine. Solaris was
> installed after FreeBSD and since it uses grub by default I am using
> that to boot. Currently I am just invoking /boot/loader from grub.cfg
> in Solaris to boot FreeBSD, but I would like to boot directly. This
> just doesn't work.
>
> I have installed grub2 on FreeBSD via ports, and run `grub-mkconfig'
> to get some entries for grub.cfg which I have simply applied to the
> Solaris installation (via the custom.cfg script).
>
> But, this entry just doesn't work. I have tried running each command
> by hand at the grub CLI with debugging but after all the debug output
>  is printed (not revealing anything abnormal) the screen goes black
> and the machine reverts to the normal power-on screen, and the
> boot selection process starts all over again.
>
> This is the entry:
>
> menuentry 'FreeBSD, with kFreeBSD kernel' {
>         insmod part_gpt
>         insmod ufs2
>         search --no-floppy --fs-uuid --set=root 53a87fa1e9b6256d
>         echo 'Loading kernel of FreeBSD kernel ...'
>         kfreebsd  /boot/kernel/kernel
>         kfreebsd_loadenv   /boot/device.hints
>         kfreebsd_module_elf     /boot/kernel/ufs.ko
>         set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/53a87fa1e9b6256d
>         set kFreeBSD.vfs.root.mountfrom.options=rw
> }
>
> If I could see what actually happens at the grub `boot' I might be
> able to fix this, but it doesn't look like there are any other debug
> mechanisms for grub apart from `set debug=all'.
>
> I tried to add different flags to the kernel invocation, -v and -d but
> nothing happened. The screen goes black and reverts to a normal
> grub boot menu.
>
> Are there any mechanisms inside grub to get more debugging
> information?
>
> Noel Hunt
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>

[-- Attachment #2: Type: text/html, Size: 2986 bytes --]

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

* Re: Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99)
  2014-07-19 21:44 Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99) Noel Hunt
  2014-07-19 21:55 ` seth.goldberg
  2014-07-19 23:35 ` Vladimir 'phcoder' Serbinenko
@ 2014-07-20 11:23 ` Andrey Borzenkov
  2 siblings, 0 replies; 4+ messages in thread
From: Andrey Borzenkov @ 2014-07-20 11:23 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: noel.hunt

В Sun, 20 Jul 2014 07:44:57 +1000
Noel Hunt <noel.hunt@gmail.com> пишет:

> I have a FreeBSD 10.0/Solaris 11.1 dual-boot machine. Solaris was
> installed after FreeBSD and since it uses grub by default I am using
> that to boot. Currently I am just invoking /boot/loader from grub.cfg
> in Solaris to boot FreeBSD, but I would like to boot directly. This
> just doesn't work.
> 
> I have installed grub2 on FreeBSD via ports, and run `grub-mkconfig'
> to get some entries for grub.cfg which I have simply applied to the
> Solaris installation (via the custom.cfg script).
> 
> But, this entry just doesn't work. I have tried running each command
> by hand at the grub CLI with debugging but after all the debug output
> is printed (not revealing anything abnormal) the screen goes black
> and the machine reverts to the normal power-on screen, and the
> boot selection process starts all over again.
> 

Just to be sure - you run commands *inside* menuentry { ... }, right?
If you run them exactly as they appear below, it just (re-)defines menu
entry without actually booting anything.

You need to run commands inside of curly braces, followed by
"boot" (which is implicit in case of menu entry processing).

> This is the entry:
> 
> menuentry 'FreeBSD, with kFreeBSD kernel' {
>         insmod part_gpt
>         insmod ufs2
>         search --no-floppy --fs-uuid --set=root 53a87fa1e9b6256d
>         echo 'Loading kernel of FreeBSD kernel ...'
>         kfreebsd  /boot/kernel/kernel
>         kfreebsd_loadenv   /boot/device.hints
>         kfreebsd_module_elf     /boot/kernel/ufs.ko
>         set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/53a87fa1e9b6256d
>         set kFreeBSD.vfs.root.mountfrom.options=rw
> }
> 
> If I could see what actually happens at the grub `boot' I might be
> able to fix this, but it doesn't look like there are any other debug
> mechanisms for grub apart from `set debug=all'.
> 
> I tried to add different flags to the kernel invocation, -v and -d but
> nothing happened. The screen goes black and reverts to a normal
> grub boot menu.
> 
> Are there any mechanisms inside grub to get more debugging
> information?
> 
> Noel Hunt



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

end of thread, other threads:[~2014-07-20 11:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-19 21:44 Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99) Noel Hunt
2014-07-19 21:55 ` seth.goldberg
2014-07-19 23:35 ` Vladimir 'phcoder' Serbinenko
2014-07-20 11:23 ` Andrey Borzenkov

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.