All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc: noel.hunt@gmail.com
Subject: Re: Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99)
Date: Sun, 20 Jul 2014 15:23:42 +0400	[thread overview]
Message-ID: <20140720152342.3dd9c092@opensuse.site> (raw)
In-Reply-To: <CAGfO01xqQ0wVYp91Pz9kZFe4VC44YKOzkGCEzgOVQivBGphJAA@mail.gmail.com>

В 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



      parent reply	other threads:[~2014-07-20 11:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=20140720152342.3dd9c092@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    --cc=noel.hunt@gmail.com \
    /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.