Changeset 81d9bce in clfs-embedded for BOOK/bootable/x86


Ignore:
Timestamp:
Nov 27, 2006, 8:16:08 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
89cc05c
Parents:
cff0bb4
Message:

Added note about what has to built into the kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/bootable/x86/kernel.xml

    rcff0bb4 r81d9bce  
    4343    packages outside of CLFS at <ulink
    4444    url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para>
    45 
    46 <screen os="f"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
    47 
    48     <para os="g">Alternatively, <command>make oldconfig</command> may be more
     45 
     46    <note os="f"><para>Since we are building for an embedded system we need to make sure
     47    our key components are build into the kernel and not as modules. Our key
     48    components are console/video, disk, and network. With out these built in our
     49    system will not function properly.</para></note>
     50
     51<screen os="g"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
     52
     53    <para os="h">Alternatively, <command>make oldconfig</command> may be more
    4954    appropriate in some situations. See the <filename>README</filename>
    5055    file for more information.</para>
    5156
    52     <para os="h">If desired, skip kernel configuration by copying the kernel
     57    <para os="i">If desired, skip kernel configuration by copying the kernel
    5358    config file, <filename>.config</filename>, from the host system
    5459    (assuming it is available) to the root directory of the unpacked kernel
     
    5762    from scratch.</para>
    5863
    59     <para os="i">Compile the kernel image and modules:</para>
    60 
    61 <screen os="j"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
    62 
    63     <para os="k">If using kernel modules, an
     64    <para os="j">Compile the kernel image and modules:</para>
     65
     66<screen os="k"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
     67
     68    <para os="l">If using kernel modules, an
    6469    <filename>/etc/modprobe.conf</filename> file may be needed.
    6570    Information pertaining to modules and kernel configuration is
     
    6974    be of interest.</para>
    7075
    71     <para os="l">Be very careful when reading other documentation relating to
     76    <para os="m">Be very careful when reading other documentation relating to
    7277    kernel modules because it usually applies to 2.4.x kernels only. As
    7378    far as we know, kernel configuration issues specific to Hotplug and
     
    7883    <filename>/etc/modprobe.conf</filename> file do not work with Udev:</para>
    7984
    80 <screen os="m"><literal>alias char-major-XXX some-module</literal></screen>
    81 
    82     <para os="n">Because of the complications with Udev and modules,
     85<screen os="n"><literal>alias char-major-XXX some-module</literal></screen>
     86
     87    <para os="o">Because of the complications with Udev and modules,
    8388    we strongly recommend starting with a completely non-modular kernel
    8489    configuration, especially if this is the first time using Udev.</para>
    8590
    86     <para os="o">Install the modules, if the kernel configuration uses
     91    <para os="p">Install the modules, if the kernel configuration uses
    8792    them:</para>
    8893
    89 <screen os="p"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
     94<screen os="q"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
    9095    INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
    9196
    92     <para os="q">After kernel compilation is complete, additional steps are
     97    <para os="r">After kernel compilation is complete, additional steps are
    9398    required to complete the installation. Some files need to be copied to
    9499    the <filename class="directory">${CLFS}/boot</filename> directory.</para>
    95100
    96     <para os="r">Issue the following command to install the kernel:</para>
    97 
    98 <screen os="s"><userinput>cp vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
    99 
    100     <para os="t"><filename>System.map</filename> is a symbol file for the kernel.
     101    <para os="s">Issue the following command to install the kernel:</para>
     102
     103<screen os="t"><userinput>cp vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
     104
     105    <para os="u"><filename>System.map</filename> is a symbol file for the kernel.
    101106    It maps the function entry points of every function in the kernel API,
    102107    as well as the addresses of the kernel data structures for the running
    103108    kernel. Issue the following command to install the map file:</para>
    104109
    105 <screen os="u"><userinput>cp System.map ${CLFS}/boot/System.map-&linux-version;</userinput></screen>
    106 
    107     <para os="v">If we compiled our kernel with modules and we made sure depmod.pl
     110<screen os="v"><userinput>cp System.map ${CLFS}/boot/System.map-&linux-version;</userinput></screen>
     111
     112    <para os="w">If we compiled our kernel with modules and we made sure depmod.pl
    108113    is avaiable from busybox, we need to create the module dependency list by
    109114    issuing the following command:</para>
    110115
    111 <screen os="w"><userinput>${CLFS}/cross-tools/bin/depmod.pl -F ${CLFS}/boot/System.map -b ${CLFS}/lib/modules/&linux-version;</userinput></screen>
    112 
    113     <para os="x">The kernel configuration file <filename>.config</filename>
     116<screen os="x"><userinput>${CLFS}/cross-tools/bin/depmod.pl -F ${CLFS}/boot/System.map -b ${CLFS}/lib/modules/&linux-version;</userinput></screen>
     117
     118    <para os="y">The kernel configuration file <filename>.config</filename>
    114119    produced by the <command>make menuconfig</command> step above contains
    115120    all the configuration selections for the kernel that was just compiled.
    116121    It is a good idea to keep this file for future reference:</para>
    117122
    118 <screen os="y"><userinput>cp .config ${CLFS}/boot/config-&linux-version;</userinput></screen>
    119 
    120     <warning os="z">
     123<screen os="z"><userinput>cp .config ${CLFS}/boot/config-&linux-version;</userinput></screen>
     124
     125    <warning os="aa">
    121126      <para>Some kernel documentation recommends creating a symlink from
    122127      <filename class="symlink">/usr/src/linux</filename> pointing to the
     
    132137      <emphasis>never</emphasis> be replaced by the kernel headers.</para>
    133138    </warning>
     139
     140   <para os="ab">The bootloaders section contains more information on
     141    how to configure the kernel for specifc bootloaders. Please refer
     142    to this section for your specific needs.</para>
    134143
    135144  </sect2>
Note: See TracChangeset for help on using the changeset viewer.