FreeBSD Bugzilla – Attachment 24098 Details for
Bug 41270
[patch] handbook: confusing directions for kernelconfig chapter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 9.34 KB, created by
Ross Lippert
on 2002-08-02 21:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ross Lippert
Created:
2002-08-02 21:10:01 UTC
Size:
9.34 KB
patch
obsolete
>Index: en_US.ISO8859-1/books/handbook/kernelconfig/chapter.sgml >=================================================================== >RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/kernelconfig/chapter.sgml,v >retrieving revision 1.78 >diff -c -r1.78 chapter.sgml >*** en_US.ISO8859-1/books/handbook/kernelconfig/chapter.sgml 2002/07/01 18:38:17 1.78 >--- en_US.ISO8859-1/books/handbook/kernelconfig/chapter.sgml 2002/08/02 19:53:10 >*************** >*** 136,165 **** > <para>First, let us take a quick tour of the kernel build directory. > All directories mentioned will be relative to the main > <filename>/usr/src/sys</filename> directory, which is also >! accessible through <filename>/sys</filename>. There are a number of > subdirectories here representing different parts of the kernel, but >! the most important, for our purposes, are > <filename><replaceable>arch</replaceable>/conf</filename>, where you >! will edit your custom kernel configuration, and > <filename>compile</filename>, which is the staging area where your > kernel will be built. <replaceable>arch</replaceable> represents >! either <filename>i386</filename>, <filename>alpha</filename>, or > <filename>pc98</filename> (an alternative development branch of PC > hardware, popular in Japan). Everything inside a particular > architecture's directory deals with that architecture only; the rest >! of the code is common to all platforms to which FreeBSD could >! potentially be ported. Notice the logical organization of the >! directory structure, with each supported device, filesystem, and >! option in its own subdirectory.</para> > > <note> > <para>If there is <emphasis>not</emphasis> a > <filename>/usr/src/sys</filename> directory on your system, then >! the kernel source has not been installed. The easiest way to > do this is by running <command>/stand/sysinstall</command> as > <username>root</username>, choosing <literal>Configure</literal>, > then <literal>Distributions</literal>, then >! <literal>src</literal>, then <literal>sys</literal>. If you > have an aversion to <ommand line:</para> >--- 136,168 ---- > <para>First, let us take a quick tour of the kernel build directory. > All directories mentioned will be relative to the main > <filename>/usr/src/sys</filename> directory, which is also >! accessible through <filename>/sys</filename> via a symbolic link. >! There are a number of > subdirectories here represen editor. If you are just starting out, the only editor available >--- 198,211 ---- > &prompt.root; <userinput>mkdir /root/kernels</userinput> > &prompt.root; <userinput>cp GENERIC /root/kernels/<replaceable>MYKERNEL</replaceable></userinput> > &prompt.root; <userinput>ln -s /root/kernels/<replaceable>MYKERNEL</replaceable></userinput></screen> > >! <para>Storing your kernel config file directly under >! <filename>/usr/src</filename> can be a bad idea. If you are >! experiencing problems it can be tempting to just delete >! <filename>/usr/src</filename> and start again. Five setor o If you are trying to <link > linkend="cutting-edge">sync your source-tree</link> with the >! latest sources of the FreeBSD project, be sure to check >! the file >! <filename>/usr/src/UPDATING</filename>, before performing any >! updates. >! All important issues with updating FreeBSD >! are written down in this file. >! <filename>/usr/src/UPDATING</filename> always fits with >! your version of the FreeBSD sources, and is therefore more accurate >! for those information than the handbook.</para> > </note> > >! <para>You must now compile the source code for the kernel. There are two >! procedures you can use to do this, and the one you will use depends on >! why you are rebuilding the kernel, and the version of FreeBSD you are >! running.</para> >! >! <itemizedlist> >! <listitem> >! <para>If you have installed <emphasis>only</emphasis> the kernel >! source code, use procedure 1.</para> >! </listitem> >! >! <listitem> >! <para>If you are running a FreeBSD version prior to 4.0, and you are >! <emphasis>not</emphasis> upgrading to FreeBSD 4.0 or higher using >! the <maketarget>make world</maketarget> procedure, use procedure 1. >! </para> >! </listitem> >! >! <listitem> >! <para>If you are building a new kernel without updating the source >! code (perhaps just to add a new option, such as >! <literal>IPFIREWALL</literal>) you can use either procedure.</para> >! </listitem> >! >! <listitem> >! <para>If you are rebuilding the kernel as part of a >! <maketarget>make world</maketarget> process, use procedure 2. >! </para> >! </listitem> >! </itemizedlist> >! > <procedure> >! <title>Procedure 1. Building a kernel the <quote>traditional</quote> way</title> > > <step> > <para>Run &man.config.8; to generate the kernel source code.</para> > >! <screen>&prompt.root; <userinput>/usr/sbin/config <replaceable>MYKERNEL</replaceable></userinput></screen> > </step> > > <step> >--- 228,275 ---- > section slowly and carefully.</para> > > <note> >! <para> >! If you are trying to <link > linkend="cutting-edge">sync your source-tree</link> with the >! latest sources of the FreeBSD project, be sure to check >! the file >! <filename>/usr/src/UPDATING</filename>, before performing any >! updates. >! All important issues with updating FreeBSD >! are written down in this file. >! <filename>/usr/src/UPDATING</filename> always fits with >! your version of the FreeBSD source and is more accurate >! than the information in this handbook.</para> > </note> > >! <indexterm> >! <primary><command>cvsup</command></primary> >! </indexterm> >! <indexterm><primary>anonymous CVS</primary></indexterm> >! <indexterm><primary>CTM</primary></indexterm> >! <indexterm> >! <primary>CVS</primary> >! <secondary>anonymous</secondary> >! </indexterm> >! >! <para>You must now compile and install the source code for the kernel. >! There are two ways of doing this. >! If you have <emphasis>not</emphasis> upgraded your source >! tree in any way (you have not run <application>CVSup</application>, >! <application>CTM</application>, or used >! <application>anoncvs</application>), then do the first. >! If you are updating/rebuilding your whole system, or upgrading your >! kernel to a FreeBSD version with a greater major version number >! (e.g. 3.X to 4.X), then do the second.</para> >! >! > <procedure> >! <title>Building/Installing the kernel alone</title> > > <step> > <para>Run &man.config.8; to generate the kernel source code.</para> > >! <screen>&prompt.root; <userinput>/usr/sbin/config -g <replaceable>MYKERNEL</replaceable></userinput></screen> > </step> > > <step> >*************** >*** 303,310 **** > </procedure> > > <procedure> >! <title>Procedure 2. Building a kernel the <quote>new</quote> >! way</title> > > <step> > <para>Change to the <filename>/usr/src</filename> directory.</para> >--- 293,299 ---- > </procedure> > > <procedure> >! <title>Building/Installing as part of a <maketarget>make world</maketarget> process.</title> > > <step> > <para>Change to the <filename>/usr/src</filename> directory.</para> >*************** >*** 332,354 **** > recognize <literal>KERNCONF=</literal>.</para> > </note> > >- <indexterm> >- <primary><command>cvsup</command></primary> >- </indexterm> >- <indexterm><ndexterm><primary>CTM</primary></indexterm> >- <indexterm> >- <primary>CVS</primary> >- <secondary>anonymous</secondary> >- </indexterm> >- >- <para>If you have <emphasis>not</emphasis> upgraded your source >- tree in any way (you have not run <application>CVSup</application>, >- <application>CTM</application>, or used >- <application>anoncvs</application>), then you should use the >- <command>config</command>, <maketarget>make depend</maketarget>, >- <command>make</command>, <maketarget>make install</maketarget> sequence. >- </para> > > <indexterm> > <primary><filename>kernel.old</filename></primary> >--- 321,326 ---- >*************** >*** 356,363 **** > > <para>The new kernel will be copied to the root directory as > <filename>/kernel</filename> and the old kernel will be moved to >! <filename>/kernel.old</filename>. Now, shutdown the system and >! reboot to use your kernel. In case something goes wrong, there are > some <link linkend="kernelconfig-trouble">troubleshooting</link> > instructions at the end of this chapter. Be sure to read the > section which explains how to recover in case your new kernel <link >--- 328,335 ---- > > <para>The new kernel will be copied to the root directory as > <filename>/kernel</filename> and the old kernel will be moved to >! <filename>/kernel.old</filename>. On the next boot, your system >! will boot with the new kernel. In case something goes wrong, there are > some <link linkend="kernelconfig-trouble">troubleshooting</link> > instructions at the end of this chapter. Be sure to read the > section which explains how to recover in case your new kernel <link
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41270
: 24098