From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SvcZC-0006Hj-Hf for mharc-grub-devel@gnu.org; Sun, 29 Jul 2012 19:06:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvcZA-0006HO-6I for grub-devel@gnu.org; Sun, 29 Jul 2012 19:06:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvcZ7-0004Op-VA for grub-devel@gnu.org; Sun, 29 Jul 2012 19:06:28 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvcZ7-0004NF-Oq for grub-devel@gnu.org; Sun, 29 Jul 2012 19:06:25 -0400 Received: by wibhq4 with SMTP id hq4so1007636wib.12 for ; Sun, 29 Jul 2012 16:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=QLrCSncRsCnzdTb2KSWFa/ra26zYvnm/vFkoWfKxI7g=; b=UfOyFIJvjcbW45mKehnZ7/siMGtp0L3GXLAc/WFSQfSrJxP19G2IvrOikJthCGV6bz 3JPUgEyogqM+D/eG4m6bFR4c3pf/G/lAn6x7iSLKCb2OTxRgvbuUKhxwYLknEGKgBNj6 cecAW8/iduQc8fdV+w+zZ2bhBlc9cJU7vIVqB9YkcVBESV+oLY9jjnDY+IZ8te1lrDWm JvxGOQ2sUREQrJo39tXv27OV9e81bmwP2YHxVFm1S32nBPLhYFwxgvbS5p0MH0aibiv3 isY9mATp9q8kozzIb8ezImfBxtMxpmeIl7I1uQDJCCbo0ZFf15E/76Vk0bYCUA63R63O GCww== Received: by 10.216.139.15 with SMTP id b15mr4769312wej.169.1343603184515; Sun, 29 Jul 2012 16:06:24 -0700 (PDT) Received: from [192.168.1.37] (c2433-1-88-160-112-182.fbx.proxad.net. [88.160.112.182]) by mx.google.com with ESMTPS id o2sm19414853wiz.11.2012.07.29.16.06.23 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jul 2012 16:06:23 -0700 (PDT) Message-ID: <5015C1EF.60206@gmail.com> Date: Mon, 30 Jul 2012 01:06:23 +0200 From: =?ISO-8859-1?Q?Gr=E9goire_Sutre?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: The development of GNU GRUB Subject: [PATCH] Update manual NetBSD-wise Content-Type: multipart/mixed; boundary="------------060904000107060404030103" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.171 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, 29 Jul 2012 23:06:29 -0000 This is a multi-part message in MIME format. --------------060904000107060404030103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit The attached patch updates the NetBSD-specific parts of the manual. Grégoire --------------060904000107060404030103 Content-Type: text/x-patch; name="manual-netbsd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="manual-netbsd.diff" === modified file 'docs/grub.texi' --- docs/grub.texi 2012-06-23 08:55:14 +0000 +++ docs/grub.texi 2012-07-29 23:01:27 +0000 @@ -311,8 +311,10 @@ tables are also loaded. @item Support non-Multiboot kernels Support many of the various free 32-bit kernels that lack Multiboot -compliance (primarily FreeBSD, NetBSD, OpenBSD, and -Linux). Chain-loading of other boot loaders is also supported. +compliance (primarily FreeBSD, NetBSD@footnote{The NetBSD/i386 kernel +is Multiboot-compliant, but lacks support for Multiboot modules.}, +OpenBSD, and Linux). Chain-loading of other boot loaders is also +supported. @item Load multiples modules Fully support the Multiboot feature of loading multiple modules. @@ -897,6 +899,7 @@ Here, we describe some caveats on severa @menu * GNU/Hurd:: * GNU/Linux:: +* NetBSD:: * DOS/Windows:: @end menu @@ -997,6 +1000,63 @@ the size, run the command @command{upper kernel. @xref{uppermem}, for more information. +@node NetBSD +@subsection NetBSD + +Booting a NetBSD kernel from GRUB is also relatively easy: first set +GRUB's root device, then load the kernel and the modules, and finally +run @command{boot}. + +@enumerate +@item +Set GRUB's root device to the partition holding the NetBSD root file +system. For a disk with a NetBSD disk label, this is usually the first +partition (a:). In that case, and assuming that the partition is on the +first hard disk, set GRUB's root device as follows: + +@example +grub> @kbd{insmod part_bsd} +grub> @kbd{set root=(hd0,netbsd1)} +@end example + +For a disk with a GUID Partition Table (GPT), and assuming that the +NetBSD root partition is the third GPT partition, do this: + +@example +grub> @kbd{insmod part_gpt} +grub> @kbd{set root=(hd0,gpt3)} +@end example + +@item +Load the kernel using the command @command{knetbsd}: + +@example +grub> @kbd{knetbsd /netbsd} +@end example + +Various options may be given to @command{knetbsd}. These options are, +for the most part, the same as in the NetBSD boot loader. For instance, +to boot the system in single-user mode and with verbose messages, do +this: + +@example +grub> @kbd{knetbsd /netbsd -s -v} +@end example + +@item +If needed, load kernel modules with the command +@command{knetbsd_module_elf}. A typical example is the module for the +root file system: + +@example +grub> @kbd{knetbsd_module_elf /stand/amd64/6.0/modules/ffs/ffs.kmod} +@end example + +@item +Finally, run the command @command{boot} (@pxref{boot}). +@end enumerate + + @node DOS/Windows @subsection DOS/Windows --------------060904000107060404030103--