Changeset f23b5ee in clfs-embedded for BOOK/bootable/x86


Ignore:
Timestamp:
Nov 18, 2006, 11:16:54 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
9b0a535
Parents:
428c8a6
Message:

Removed uclibc-headers
Update Kernel Build
Added depmod.pl for Modular Kernel builds

File:
1 edited

Legend:

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

    r428c8a6 rf23b5ee  
    3737    un-tarring.</para>
    3838
    39     <para os="h">Configure the kernel via a menu-driven interface.
     39    <para os="e">Configure the kernel via a menu-driven interface.
    4040    Please note that the udev bootscript requires "rtc" and "tmpfs" to be
    4141    enabled and built into the kernel, not as modules. BLFS has
     
    4444    url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para>
    4545
    46 <screen os="i"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
     46<screen os="f"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
    4747
    48     <para os="j">Alternatively, <command>make oldconfig</command> may be more
     48    <para os="g">Alternatively, <command>make oldconfig</command> may be more
    4949    appropriate in some situations. See the <filename>README</filename>
    5050    file for more information.</para>
    5151
    52     <para os="k">If desired, skip kernel configuration by copying the kernel
     52    <para os="h">If desired, skip kernel configuration by copying the kernel
    5353    config file, <filename>.config</filename>, from the host system
    5454    (assuming it is available) to the root directory of the unpacked kernel
     
    5757    from scratch.</para>
    5858
    59     <para os="m">Compile the kernel image and modules:</para>
     59    <para os="i">Compile the kernel image and modules:</para>
    6060
    61 <screen os="n"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
     61<screen os="j"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
    6262
    63     <para os="o">If using kernel modules, an
     63    <para os="k">If using kernel modules, an
    6464    <filename>/etc/modprobe.conf</filename> file may be needed.
    6565    Information pertaining to modules and kernel configuration is
     
    6969    be of interest.</para>
    7070
    71     <para os="p">Be very careful when reading other documentation relating to
     71    <para os="l">Be very careful when reading other documentation relating to
    7272    kernel modules because it usually applies to 2.4.x kernels only. As
    7373    far as we know, kernel configuration issues specific to Hotplug and
     
    7878    <filename>/etc/modprobe.conf</filename> file do not work with Udev:</para>
    7979
    80 <screen os="q"><literal>alias char-major-XXX some-module</literal></screen>
     80<screen os="m"><literal>alias char-major-XXX some-module</literal></screen>
    8181
    82     <para os="r">Because of the complications with Udev and modules,
     82    <para os="n">Because of the complications with Udev and modules,
    8383    we strongly recommend starting with a completely non-modular kernel
    8484    configuration, especially if this is the first time using Udev.</para>
    8585
    86     <para os="s">Install the modules, if the kernel configuration uses
     86    <para os="o">Install the modules, if the kernel configuration uses
    8787    them:</para>
    8888
    89 <screen os="t"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
     89<screen os="p"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
    9090    INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
    9191
    92     <para os="u">After kernel compilation is complete, additional steps are
     92    <para os="q">After kernel compilation is complete, additional steps are
    9393    required to complete the installation. Some files need to be copied to
    9494    the <filename class="directory">${CLFS}/boot</filename> directory.</para>
    9595
    96     <para os="v">Issue the following command to install the kernel:</para>
     96    <para os="r">Issue the following command to install the kernel:</para>
    9797
    98 <screen><userinput>cp vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
     98<screen os="s"><userinput>cp vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
    9999
    100     <para os="w"><filename>System.map</filename> is a symbol file for the kernel.
     100    <para os="t"><filename>System.map</filename> is a symbol file for the kernel.
    101101    It maps the function entry points of every function in the kernel API,
    102102    as well as the addresses of the kernel data structures for the running
    103103    kernel. Issue the following command to install the map file:</para>
    104104
    105 <screen os="w1"><userinput>cp System.map ${CLFS}/boot/System.map-&linux-version;</userinput></screen>
     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
     108    is avaiable from busybox, we need to create the module dependency list by
     109    issuing the following command:</para>
     110
     111<screen os="w"><userinput>${CLFS}/cross-tools/bin/depmod.pl -F ${CLFS}/boot/System.map -b ${CLFS}/lib/modules/&linux-version;</userinput></screen>
    106112
    107113    <para os="x">The kernel configuration file <filename>.config</filename>
Note: See TracChangeset for help on using the changeset viewer.