From 03f10acc6e488c26ade54fcb896bf194c8ec1b25 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 24 Nov 2006 18:53:45 +0000 Subject: Add instructions for creating a ramdisk root image. These likely need to be augmented with instructions for those platforms that have /boot/loader. --- share/man/man4/md.4 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'share/man/man4/md.4') diff --git a/share/man/man4/md.4 b/share/man/man4/md.4 index 71ed28f..f13de64 100644 --- a/share/man/man4/md.4 +++ b/share/man/man4/md.4 @@ -7,7 +7,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 9, 2001 +.Dd November 24, 2006 .Dt MD 4 .Os .Sh NAME @@ -55,6 +55,23 @@ Backing store is allocated from swap space. .Pp For more information, please see .Xr mdconfig 8 . +.Sh EXAMPLES +To create a kernel with a ramdisk or MD file system, your kernel config +needs the following options: +.Bd -literal -ofset indent +options MD_ROOT #MD is a potential root device +options MD_ROOT_SIZE=8192 # 8MB ram disk +makeoptions MFS_IMAGE=/h/foo/ARM-MD +options ROOTDEVNAME=\"ufs:md0\" +.Ed +The image in +.Pa /h/foo/ARM-MD +will be loaded as the initial image each boot. +To create the image to use, please follow the steps to create a file-backed +disk found in the +.Xr mdconfig 8 +man page. +Other tools will also create these images, such as NanoBSD. .Sh SEE ALSO .Xr disklabel 5 , .Xr disklabel 8 , -- cgit v1.1