diff --git a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml index b1119afcf5..f1e37175af 100644 --- a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml @@ -1,7 +1,7 @@ @@ -29,6 +29,104 @@ Depending on which version of FreeBSD you are running, how you get Linux-mode up will vary somewhat: + + Installing Linux Mode in 3.0-RELEASE and later + + It is no longer necessary to specify options + LINUX or options COMPAT_LINUX. 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: + + + + In /etc/rc.conf, you need the following + line: + + +linux_enable=YES + + + + This, in turn, triggers the following action in + /etc/rc.i386: + + +# Start the Linux binary compatibility if requested. +if [ "X${linux_enable}" = X"YES" ]; then echo -n ' + linux'; linux > /dev/null 2>&1 +fi + + + + If you want to verify that the KLD is loaded, kldstat will do that: + + &prompt.user; kldstat +Id Refs Address Size Name + 1 2 0xc0100000 16bdb8 kernel + 7 1 0xc24db000 d000 linux.ko + + 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 + + +options LINUX + + to your kernel config file. Then run config and install the new + kernel as described in the kernel + configuration section. + + + + Installing Linux Mode in 2.2.2-RELEASE and later 2.2.x versions + + It is no longer necessary to specify options + LINUX or options COMPAT_LINUX. 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: + + + + In /etc/rc.conf, you need the following + line: + + +linux_enable=YES + + + + This, in turn, triggers the following action in + /etc/rc.i386: + + +# Start the Linux binary emulation if requested. +if [ "X${linux_enable}" = X"YES" ]; then echo -n ' + linux'; linux > /dev/null 2>&1 +fi + + + + If you want to verify that the LKM is running, modstat will do that: + + &prompt.user; modstat +Type Id Off Loadaddr Size Info Rev Module Name +EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod + + 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 + + +options LINUX + + to your kernel config file. Then run config and install the new + kernel as described in the kernel + configuration section. + + Installing Linux Mode in 2.1-STABLE @@ -103,104 +201,6 @@ linux=YES linux - - Installing Linux Mode in 2.2.2-RELEASE and later 2.2.x versions - - It is no longer necessary to specify options - LINUX or options COMPAT_LINUX. 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: - - - - In /etc/rc.conf, you need the following - line: - - -linux_enable=YES - - - - This, in turn, triggers the following action in - /etc/rc.i386: - - -# Start the Linux binary emulation if requested. -if [ "X${linux_enable}" = X"YES" ]; then echo -n ' - linux'; linux > /dev/null 2>&1 -fi - - - - If you want to verify that the LKM is running, modstat will do that: - - &prompt.user; modstat -Type Id Off Loadaddr Size Info Rev Module Name -EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod - - 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 - - -options LINUX - - to your kernel config file. Then run config and install the new - kernel as described in the kernel - configuration section. - - - - Installing Linux Mode in 3.0-RELEASE and later - - It is no longer necessary to specify options - LINUX or options COMPAT_LINUX. 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: - - - - In /etc/rc.conf, you need the following - line: - - -linux_enable=YES - - - - This, in turn, triggers the following action in - /etc/rc.i386: - - -# Start the Linux binary compatibility if requested. -if [ "X${linux_enable}" = X"YES" ]; then echo -n ' - linux'; linux > /dev/null 2>&1 -fi - - - - If you want to verify that the KLD is loaded, kldstat will do that: - - &prompt.user; kldstat -Id Refs Address Size Name - 1 2 0xc0100000 16bdb8 kernel - 7 1 0xc24db000 d000 linux.ko - - 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 - - -options LINUX - - to your kernel config file. Then run config and install the new - kernel as described in the kernel - configuration section. - - Installing Linux Runtime Libraries diff --git a/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml b/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml index b1119afcf5..f1e37175af 100644 --- a/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml +++ b/en_US.ISO_8859-1/books/handbook/linuxemu/chapter.sgml @@ -1,7 +1,7 @@ @@ -29,6 +29,104 @@ Depending on which version of FreeBSD you are running, how you get Linux-mode up will vary somewhat: + + Installing Linux Mode in 3.0-RELEASE and later + + It is no longer necessary to specify options + LINUX or options COMPAT_LINUX. 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: + + + + In /etc/rc.conf, you need the following + line: + + +linux_enable=YES + + + + This, in turn, triggers the following action in + /etc/rc.i386: + + +# Start the Linux binary compatibility if requested. +if [ "X${linux_enable}" = X"YES" ]; then echo -n ' + linux'; linux > /dev/null 2>&1 +fi + + + + If you want to verify that the KLD is loaded, kldstat will do that: + + &prompt.user; kldstat +Id Refs Address Size Name + 1 2 0xc0100000 16bdb8 kernel + 7 1 0xc24db000 d000 linux.ko + + 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 + + +options LINUX + + to your kernel config file. Then run config and install the new + kernel as described in the kernel + configuration section. + + + + Installing Linux Mode in 2.2.2-RELEASE and later 2.2.x versions + + It is no longer necessary to specify options + LINUX or options COMPAT_LINUX. 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: + + + + In /etc/rc.conf, you need the following + line: + + +linux_enable=YES + + + + This, in turn, triggers the following action in + /etc/rc.i386: + + +# Start the Linux binary emulation if requested. +if [ "X${linux_enable}" = X"YES" ]; then echo -n ' + linux'; linux > /dev/null 2>&1 +fi + + + + If you want to verify that the LKM is running, modstat will do that: + + &prompt.user; modstat +Type Id Off Loadaddr Size Info Rev Module Name +EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod + + 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 + + +options LINUX + + to your kernel config file. Then run config and install the new + kernel as described in the kernel + configuration section. + + Installing Linux Mode in 2.1-STABLE @@ -103,104 +201,6 @@ linux=YES linux - - Installing Linux Mode in 2.2.2-RELEASE and later 2.2.x versions - - It is no longer necessary to specify options - LINUX or options COMPAT_LINUX. 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: - - - - In /etc/rc.conf, you need the following - line: - - -linux_enable=YES - - - - This, in turn, triggers the following action in - /etc/rc.i386: - - -# Start the Linux binary emulation if requested. -if [ "X${linux_enable}" = X"YES" ]; then echo -n ' - linux'; linux > /dev/null 2>&1 -fi - - - - If you want to verify that the LKM is running, modstat will do that: - - &prompt.user; modstat -Type Id Off Loadaddr Size Info Rev Module Name -EXEC 0 4 f09e6000 001c f09ec010 1 linux_mod - - 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 - - -options LINUX - - to your kernel config file. Then run config and install the new - kernel as described in the kernel - configuration section. - - - - Installing Linux Mode in 3.0-RELEASE and later - - It is no longer necessary to specify options - LINUX or options COMPAT_LINUX. 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: - - - - In /etc/rc.conf, you need the following - line: - - -linux_enable=YES - - - - This, in turn, triggers the following action in - /etc/rc.i386: - - -# Start the Linux binary compatibility if requested. -if [ "X${linux_enable}" = X"YES" ]; then echo -n ' - linux'; linux > /dev/null 2>&1 -fi - - - - If you want to verify that the KLD is loaded, kldstat will do that: - - &prompt.user; kldstat -Id Refs Address Size Name - 1 2 0xc0100000 16bdb8 kernel - 7 1 0xc24db000 d000 linux.ko - - 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 - - -options LINUX - - to your kernel config file. Then run config and install the new - kernel as described in the kernel - configuration section. - - Installing Linux Runtime Libraries