Add directions for 3.0+.

Submitted by:	eivind
This commit is contained in:
David E. O'Brien 1999-09-15 01:15:03 +00:00
parent fc6d4bdc1c
commit 6327c10ea7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=5627
2 changed files with 104 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
$FreeBSD$
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.19 1999/09/06 06:53:00 peter Exp $
-->
<chapter id="linuxemu">
@ -103,7 +103,7 @@ linux</programlisting>
</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 @@ fi</programlisting>
</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
@ -151,6 +151,55 @@ options LINUX</programlisting>
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>
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 Runtime Libraries</title>

View file

@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
$FreeBSD$
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.19 1999/09/06 06:53:00 peter Exp $
-->
<chapter id="linuxemu">
@ -103,7 +103,7 @@ linux</programlisting>
</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 @@ fi</programlisting>
</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
@ -151,6 +151,55 @@ options LINUX</programlisting>
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>
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 Runtime Libraries</title>