From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1X8pDp-0000ND-3O for mharc-grub-devel@gnu.org; Sun, 20 Jul 2014 07:24:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8pDe-0000G7-3c for grub-devel@gnu.org; Sun, 20 Jul 2014 07:24:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8pDV-0001S1-2M for grub-devel@gnu.org; Sun, 20 Jul 2014 07:23:54 -0400 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:39606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8pDU-0001Rw-Qe for grub-devel@gnu.org; Sun, 20 Jul 2014 07:23:44 -0400 Received: by mail-lb0-f175.google.com with SMTP id 10so838096lbg.6 for ; Sun, 20 Jul 2014 04:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=gzHfzJU9D3aFTd16USSaoIOuzrQdQG2p7rJ7Xl6Lcow=; b=za/SfhKD03WRPfq78wrxH2cCAS4wmcP/hegX2M1c8WOfqqjaCDJdX8rKVPtPXYIw7u 4TvfWOCdoTQBYtwbj1rWTbSPy8gGIV8Ekb/jW0FeaSfcIN/ZTlCbsWJ8wz80U556/sEL TPew5/lw+UYffY6+cE3s8BBjKPeNjAjgPVvD30jJAi+kXLdOL9Id/V6VSBGYLbYnZz5y ILCP3gTLpAArpyuXVaHYWUmaJl1jiQ0oE9aKf2AfPAcD/43ysptsxps95LII52u9cBz0 dOorH0gPFvJERYUorVyxsj/0tRxGlDC2OccaGX00drRs0Uic6lo0xu51ufMK5nm/NfFO MtJA== X-Received: by 10.112.147.233 with SMTP id tn9mr16856203lbb.17.1405855423710; Sun, 20 Jul 2014 04:23:43 -0700 (PDT) Received: from opensuse.site (ppp94-29-76-101.pppoe.spdop.ru. [94.29.76.101]) by mx.google.com with ESMTPSA id h4sm19406239lbj.1.2014.07.20.04.23.42 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jul 2014 04:23:43 -0700 (PDT) Date: Sun, 20 Jul 2014 15:23:42 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: Booting FreeBSD 10 from grub on Solaris 11.1 (grub 1.99) Message-ID: <20140720152342.3dd9c092@opensuse.site> In-Reply-To: References: X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22f Cc: noel.hunt@gmail.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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, 20 Jul 2014 11:24:03 -0000 В Sun, 20 Jul 2014 07:44:57 +1000 Noel Hunt пишет: > 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