All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Update manual NetBSD-wise
@ 2012-07-29 23:06 Grégoire Sutre
  2012-07-31 13:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Grégoire Sutre @ 2012-07-29 23:06 UTC (permalink / raw)
  To: The development of GNU GRUB

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

The attached patch updates the NetBSD-specific parts of the manual.

Grégoire

[-- Attachment #2: manual-netbsd.diff --]
[-- Type: text/x-patch, Size: 2545 bytes --]

=== 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
 


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

* Re: [PATCH] Update manual NetBSD-wise
  2012-07-29 23:06 [PATCH] Update manual NetBSD-wise Grégoire Sutre
@ 2012-07-31 13:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2012-07-31 22:21   ` Grégoire Sutre
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-07-31 13:28 UTC (permalink / raw)
  To: grub-devel

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

On 30.07.2012 01:06, Grégoire Sutre wrote:

> The attached patch updates the NetBSD-specific parts of the manual.

Go ahead

> 
> Grégoire
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel



-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

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

* Re: [PATCH] Update manual NetBSD-wise
  2012-07-31 13:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-07-31 22:21   ` Grégoire Sutre
  0 siblings, 0 replies; 3+ messages in thread
From: Grégoire Sutre @ 2012-07-31 22:21 UTC (permalink / raw)
  To: The development of GNU GRUB

On 07/31/2012 03:28 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 30.07.2012 01:06, Grégoire Sutre wrote:
>
>> The attached patch updates the NetBSD-specific parts of the manual.
>
> Go ahead

Done, thanks.

Grégoire


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

end of thread, other threads:[~2012-07-31 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-29 23:06 [PATCH] Update manual NetBSD-wise Grégoire Sutre
2012-07-31 13:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-07-31 22:21   ` Grégoire Sutre

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.