From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1R91Mk-000640-7V for mharc-grub-devel@gnu.org; Wed, 28 Sep 2011 17:08:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R91Mh-00062b-3B for grub-devel@gnu.org; Wed, 28 Sep 2011 17:08:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R91Mf-0005TL-Jv for grub-devel@gnu.org; Wed, 28 Sep 2011 17:08:27 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:48413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R91Mf-0005TF-74 for grub-devel@gnu.org; Wed, 28 Sep 2011 17:08:25 -0400 Received: by wyf22 with SMTP id 22so422962wyf.0 for ; Wed, 28 Sep 2011 14:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=4xqRHMRj6iufrZlYibDZMZqpGz7v7LmWC2uniFUrHx4=; b=YMufNULVUHRcEDxwU9iVkGeB3X1uzNdjiUydeN7Tl/xZEjTiEa7U129NAHE+wsVOBW LPvSw3oqEDtp4VTOg9c3qWyKkslRSRV974X68u5JyTGmChCLGDjNsU2vZpqCATD+k2Z6 OTNwQwzemqrH4eI7TQqRIOCmIsQ9vPj9bV3rY= Received: by 10.216.133.132 with SMTP id q4mr10479867wei.107.1317244104326; Wed, 28 Sep 2011 14:08:24 -0700 (PDT) Received: from debian.x201.phnet (67-232.197-178.cust.bluewin.ch. [178.197.232.67]) by mx.google.com with ESMTPS id o7sm57784wbh.8.2011.09.28.14.08.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Sep 2011 14:08:22 -0700 (PDT) Message-ID: <4E838CC3.1060003@gmail.com> Date: Wed, 28 Sep 2011 23:08:19 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Iceowl/1.0b2 Icedove/3.1.13 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: How to boot NetBSD and FreeBSD with grub: missing bits for the GRUB manual References: <4E727524.2010206@libera.cc> In-Reply-To: <4E727524.2010206@libera.cc> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig506B43509A6F914FF9647141" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 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: Wed, 28 Sep 2011 21:08:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig506B43509A6F914FF9647141 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15.09.2011 23:59, Emmanuel Kasper wrote: > Hello > > I found out that altough GRUB supports a rich set of options for the > kfreebsd and knetbsd commands, the GRUB manual was lacking reference on= > how to use them. I propose the following text to be added in the sectio= n > 4.2 Some caveats on OS-specific issues. > > Plus I noticed a FIXME in 4.1.1 How to boot an OS directly with GRUB so= > I propose an addition for that part (see at end ) > > I tried to work the FreeBSD part in a OS-agnotic way, so it can apply t= o > FreeBSD and GNU/kFreeBSD > > If this text looks fine, I can re-send in the form of an info patch ( > did not want to learn yet another markup language before getting > feedback ... ) > > I used the following thread to get the needed information before > verifying on my NetBSD and GNU/kFreeBSD machines: > http://forums.freebsd.org/showthread.php?t=3D5918 > > Manu > > > > > > FreeBSD > GRUB can boot a FreeBSD kernel by using > the 'kfreebsd' command. The procedure would look like this: > > 1. Set the partition where resides the FreeBSD kernel: > > 'set root=3D(hd0,1,a)' > you use the device notation from an old version. This is not supported anymore. Also it's recommended to use UUIDs > 2. Load the kernel > > 'kfreebsd /boot/kernel/kernel' > > 3. Load the kernel boot information > > 'kfreebsd_loadenv /boot/device.hints' > > 4. Set the root devicepath > 'set kFreeBSD.vfs.root.mountfrom=3Dufs:/dev/ad4s1a' > > 5. Set any filesystem options to pass > vfs.root.mountfrom.options=3Drw You forget kFreeBSD prefix. > 6. Finally, run the command 'boot' (see boot). > This is for shell. Explaining how to create a menuentry is more useful > If you want to use the FreeBSD /boot/loader third-stage bootstrap > program, you > would can do the following: > > 1. Set the partition where resides the /boot/loader program: > > 'set root=3D(hd0,1,a)' > > 2. Load /boot/loader > 'kfreebsd /boot/kernel/kernel' > > 3. Finally, run the command 'boot' (see boot) > I wouldn't recommend this. It's mostly chainloading. > The list of all available options for the 'kfreebsd' command can be see= n by > running 'kfreebsd --help' from the GRUB prompt. > > > > > > > NetBSD > GRUB can boot a NetBSD kernel by using the 'knetbsd' command. Procedure= > is as > follows: > > 1. Set the partition where resides the NetBSD kernel. If NetBSD is inst= alled > on the first partition of your first hard disk, you would need: > > 'set root=3D(hd0,1,a)' > > 2. Load the kernel and specify the root devicepath: > > 'knetbsd /netbsd --root=3Dwd0a' > > 3. Finally, run the command 'boot' ( see boot) > > The list of all available options for the 'kfreebsd' command can be see= n by > running 'kfreebsd --help' from the GRUB prompt. > > > > > > > > Multiboot (addition to 4.1.1 ) > Booting a multiboot compliant kernel, requires loading the kernel with = the > 'multiboot' command, and then executing it with the 'boot' command. > An example of very simple but fully compliant kernel, is the Grub > Invaders game, > which you can start this way: > > 1. Load Grub Invaders with the command 'multiboot' > > 'multiboot /boot/invaders.exe' > There is no reason to add .exe here. > 2. Run the command 'boot' ( see boot) > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig506B43509A6F914FF9647141 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk6DjMMACgkQNak7dOguQgkttgEAiZ/6W6CL8qfY8vc8sk7FmHKR b7gOrifR+nIKvdT0FH8BAJFrFjcueIK7P5WAVwgn8qi8VAQkQowcLFwcfzEzfYTl =vhwc -----END PGP SIGNATURE----- --------------enig506B43509A6F914FF9647141--