From owner-doc-jp@jp.freebsd.org  Sun Sep 26 20:55:57 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id UAA98471;
	Sun, 26 Sep 1999 20:55:57 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from mail.kt.rim.or.jp (root@mail.kt.rim.or.jp [202.247.130.53])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id UAA98466
	for <doc-jp@jp.freebsd.org>; Sun, 26 Sep 1999 20:55:57 +0900 (JST)
	(envelope-from kuriyama@sky.rim.or.jp)
Received: from rhea.sky.rim.or.jp (ppp534.kt.rim.or.jp [202.247.140.184])
	by mail.kt.rim.or.jp (8.8.8/3.6W-RIMNET-98-06-09) with ESMTP id UAA21022
	for <doc-jp@jp.freebsd.org>; Sun, 26 Sep 1999 20:55:55 +0900 (JST)
Received: from localhost.sky.rim.or.jp (localhost [127.0.0.1])
	by rhea.sky.rim.or.jp (8.9.3/3.7W/rhea-1.1) with ESMTP id UAA59197
	for <doc-jp@jp.freebsd.org>; Sun, 26 Sep 1999 20:55:53 +0900 (JST)
Date: Sun, 26 Sep 1999 20:55:52 +0900
Message-ID: <14318.2504.329083.91839F@localhost.sky.rim.or.jp>
From: Jun Kuriyama <kuriyama@sky.rim.or.jp>
To: Japanese Documentation Project <doc-jp@jp.freebsd.org>
User-Agent: Wanderlust/1.0.3 (Notorious) SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) MULE XEmacs/20.4 (Emerald) (i386--freebsd)
MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko")
Content-Type: text/plain; charset=ISO-2022-JP
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: doc-jp 6714
Subject: [doc-jp 6714] <handbook> linuxemu/chapter.sgml (1.20)
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: kuriyama@sky.rim.or.jp


$B!!$A$g$C$H$4$F$4$F$7$F$k$+$b!#(B


Index: chapter.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- chapter.sgml	1999/09/06 06:53:00	1.19
+++ chapter.sgml	1999/09/15 01:15:03	1.20
@@ -1,7 +1,7 @@
 <!--
      The FreeBSD Documentation Project
 
-     $FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.19 1999/09/06 06:53:00 peter Exp $
+     $FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.20 1999/09/15 01:15:03 obrien Exp $
 -->
 
 <chapter id="linuxemu">
@@ -103,7 +103,7 @@
     </sect2>
     
     <sect2>
-      <title>Installing Linux Emulation in 2.2.2-RELEASE and later</title>
+      <title>Installing Linux Emulation in 2.2.2-RELEASE and later 2.2 versions</title>
       
       <para>It is no longer necessary to specify <literal>options
 	  LINUX</literal> or <literal>options COMPAT_LINUX</literal>.  Linux
@@ -132,7 +132,7 @@
 	</listitem>
       </orderedlist>
       
-      <para>If you want to verify it is running, modstat will do that:</para>
+      <para>If you want to verify that the LKM is running, modstat will do that:</para>
 
       <screen>&prompt.user; modstat
 Type     Id Off Loadaddr Size Info     Rev Module Name
@@ -141,6 +141,55 @@
       <para>However, there have been reports that this fails on some
 	2.2-RELEASE and later systems.  If for some reason you cannot load the
 	linux LKM, then statically link the emulator in the kernel by
+	adding
+
+	<programlisting>
+options  LINUX</programlisting>
+
+	to your kernel config file.  Then run config and install the new
+	kernel as described in the <link linkend="kernelconfig">kernel
+	  configuration</link> section.</para>
+    </sect2>
+    
+    <sect2>
+      <title>Installing Linux Emulation in 3.0-RELEASE and later</title>
+      
+      <para>It is no longer necessary to specify <literal>options
+	  LINUX</literal> or <literal>options COMPAT_LINUX</literal>.  Linux
+	emulation is done with an KLD object (&ldquo;Kernel LoaDable object&rdquo;)
+	so it can be installed on the fly without having to reboot.  You will
+	need the following things in your startup files, however:</para>
+      
+      <orderedlist>
+	<listitem>
+	  <para>In <filename>/etc/rc.conf</filename>, you need the following
+	    line:</para>
+
+	  <programlisting>
+linux_enable=YES</programlisting>
+	</listitem>
+	      
+	<listitem>
+	  <para>This, in turn, triggers the following action in
+	    <filename>/etc/rc.i386</filename>:</para>
+	  
+	  <programlisting>
+# Start the Linux binary emulation if requested.
+if [ "X${linux_enable}" = X"YES" ]; then echo -n '
+        linux';               linux &gt; /dev/null 2&gt;&amp;1
+fi</programlisting>
+	</listitem>
+      </orderedlist>
+      
+      <para>If you want to verify that the KLD is loaded, kldstat will do that:</para>
+
+      <screen>&prompt.user; kldstat
+Id Refs Address    Size     Name
+ 1    2 0xc0100000 16bdb8   kernel
+ 7    1 0xc24db000 d000     linux.ko</screen>
+      
+      <para>If for some reason you do not want to or cannot load the
+	linux KLD, then statically link the emulator in the kernel by
 	adding
 
 	<programlisting>


$B$/$j$d$^(B // kuriyama@sky.rim.or.jp
        // kuriyama@FreeBSD.ORG
