List instructions for turning on Linux mode in order of usefulness:
for FreeBSD 3.x, followed by 2.2.x, followed by 2.1.
This commit is contained in:
parent
95ea7f519f
commit
4386f7817a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=5631
2 changed files with 198 additions and 198 deletions
|
@ -1,7 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
The FreeBSD Documentation Project
|
The FreeBSD Documentation Project
|
||||||
|
|
||||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.20 1999/09/15 01:15:03 obrien Exp $
|
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.21 1999/09/15 18:17:19 obrien Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="linuxemu">
|
<chapter id="linuxemu">
|
||||||
|
@ -29,6 +29,104 @@
|
||||||
<para>Depending on which version of FreeBSD you are running, how you get
|
<para>Depending on which version of FreeBSD you are running, how you get
|
||||||
Linux-mode up will vary somewhat:</para>
|
Linux-mode up will vary somewhat:</para>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>Installing Linux Mode 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
|
||||||
|
binary compatibility is done with an KLD object (“Kernel LoaDable object”)
|
||||||
|
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 compatibility if requested.
|
||||||
|
if [ "X${linux_enable}" = X"YES" ]; then echo -n '
|
||||||
|
linux'; linux > /dev/null 2>&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 binary compatibility 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 Mode in 2.2.2-RELEASE and later 2.2.x versions</title>
|
||||||
|
|
||||||
|
<para>It is no longer necessary to specify <literal>options
|
||||||
|
LINUX</literal> or <literal>options COMPAT_LINUX</literal>. Linux
|
||||||
|
binary compatibility is done with an LKM (“Loadable Kernel Module”)
|
||||||
|
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 > /dev/null 2>&1
|
||||||
|
fi</programlisting>
|
||||||
|
</listitem>
|
||||||
|
</orderedlist>
|
||||||
|
|
||||||
|
<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
|
||||||
|
EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod</screen>
|
||||||
|
|
||||||
|
<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 Linux compatibility 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>
|
<sect2>
|
||||||
<title>Installing Linux Mode in 2.1-STABLE</title>
|
<title>Installing Linux Mode in 2.1-STABLE</title>
|
||||||
|
|
||||||
|
@ -103,104 +201,6 @@ linux=YES</programlisting>
|
||||||
linux</programlisting>
|
linux</programlisting>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
|
||||||
<title>Installing Linux Mode in 2.2.2-RELEASE and later 2.2.x versions</title>
|
|
||||||
|
|
||||||
<para>It is no longer necessary to specify <literal>options
|
|
||||||
LINUX</literal> or <literal>options COMPAT_LINUX</literal>. Linux
|
|
||||||
binary compatibility is done with an LKM (“Loadable Kernel Module”)
|
|
||||||
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 > /dev/null 2>&1
|
|
||||||
fi</programlisting>
|
|
||||||
</listitem>
|
|
||||||
</orderedlist>
|
|
||||||
|
|
||||||
<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
|
|
||||||
EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod</screen>
|
|
||||||
|
|
||||||
<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 Linux compatibility 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 Mode 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
|
|
||||||
binary compatibility is done with an KLD object (“Kernel LoaDable object”)
|
|
||||||
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 compatibility if requested.
|
|
||||||
if [ "X${linux_enable}" = X"YES" ]; then echo -n '
|
|
||||||
linux'; linux > /dev/null 2>&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 binary compatibility 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>
|
<sect2>
|
||||||
<title>Installing Linux Runtime Libraries</title>
|
<title>Installing Linux Runtime Libraries</title>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
The FreeBSD Documentation Project
|
The FreeBSD Documentation Project
|
||||||
|
|
||||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.20 1999/09/15 01:15:03 obrien Exp $
|
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml,v 1.21 1999/09/15 18:17:19 obrien Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="linuxemu">
|
<chapter id="linuxemu">
|
||||||
|
@ -29,6 +29,104 @@
|
||||||
<para>Depending on which version of FreeBSD you are running, how you get
|
<para>Depending on which version of FreeBSD you are running, how you get
|
||||||
Linux-mode up will vary somewhat:</para>
|
Linux-mode up will vary somewhat:</para>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>Installing Linux Mode 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
|
||||||
|
binary compatibility is done with an KLD object (“Kernel LoaDable object”)
|
||||||
|
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 compatibility if requested.
|
||||||
|
if [ "X${linux_enable}" = X"YES" ]; then echo -n '
|
||||||
|
linux'; linux > /dev/null 2>&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 binary compatibility 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 Mode in 2.2.2-RELEASE and later 2.2.x versions</title>
|
||||||
|
|
||||||
|
<para>It is no longer necessary to specify <literal>options
|
||||||
|
LINUX</literal> or <literal>options COMPAT_LINUX</literal>. Linux
|
||||||
|
binary compatibility is done with an LKM (“Loadable Kernel Module”)
|
||||||
|
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 > /dev/null 2>&1
|
||||||
|
fi</programlisting>
|
||||||
|
</listitem>
|
||||||
|
</orderedlist>
|
||||||
|
|
||||||
|
<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
|
||||||
|
EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod</screen>
|
||||||
|
|
||||||
|
<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 Linux compatibility 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>
|
<sect2>
|
||||||
<title>Installing Linux Mode in 2.1-STABLE</title>
|
<title>Installing Linux Mode in 2.1-STABLE</title>
|
||||||
|
|
||||||
|
@ -103,104 +201,6 @@ linux=YES</programlisting>
|
||||||
linux</programlisting>
|
linux</programlisting>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
|
||||||
<title>Installing Linux Mode in 2.2.2-RELEASE and later 2.2.x versions</title>
|
|
||||||
|
|
||||||
<para>It is no longer necessary to specify <literal>options
|
|
||||||
LINUX</literal> or <literal>options COMPAT_LINUX</literal>. Linux
|
|
||||||
binary compatibility is done with an LKM (“Loadable Kernel Module”)
|
|
||||||
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 > /dev/null 2>&1
|
|
||||||
fi</programlisting>
|
|
||||||
</listitem>
|
|
||||||
</orderedlist>
|
|
||||||
|
|
||||||
<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
|
|
||||||
EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod</screen>
|
|
||||||
|
|
||||||
<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 Linux compatibility 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 Mode 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
|
|
||||||
binary compatibility is done with an KLD object (“Kernel LoaDable object”)
|
|
||||||
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 compatibility if requested.
|
|
||||||
if [ "X${linux_enable}" = X"YES" ]; then echo -n '
|
|
||||||
linux'; linux > /dev/null 2>&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 binary compatibility 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>
|
<sect2>
|
||||||
<title>Installing Linux Runtime Libraries</title>
|
<title>Installing Linux Runtime Libraries</title>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue