Changeset 3349a3a in clfs-sysroot for BOOK/bootable


Ignore:
Timestamp:
May 27, 2006, 9:02:20 PM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
d9bec84
Parents:
f6c417f
Message:

r3669@server (orig r1667): jciccone | 2006-05-27 18:13:38 -0700
Various text and command fixes

File:
1 edited

Legend:

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

    rf6c417f r3349a3a  
    5454    url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para>
    5555
    56 <screen os="i"><userinput>make menuconfig</userinput></screen>
     56<screen os="i"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen>
    5757
    5858    <para os="j">Alternatively, <command>make oldconfig</command> may be more
     
    6969    <para os="m">Compile the kernel image and modules:</para>
    7070
    71 <screen os="n"><userinput>make</userinput></screen>
     71<screen os="n"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}-</userinput></screen>
    7272
    7373    <para os="o">If using kernel modules, an
     
    9797    them:</para>
    9898
    99 <screen os="t"><userinput>make modules_install</userinput></screen>
     99<screen os="t"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- \
     100    INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen>
    100101
    101102    <para os="u">After kernel compilation is complete, additional steps are
    102103    required to complete the installation. Some files need to be copied to
    103     the <filename class="directory">/boot</filename> directory.</para>
     104    the <filename class="directory">${LFS}/boot</filename> directory.</para>
    104105
    105106    <para os="v">Issue the following command to install the kernel:</para>
    106107
    107 <screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
     108<screen><userinput>cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version;</userinput></screen>
    108109
    109110    <para os="w"><filename>System.map</filename> is a symbol file for the kernel.
     
    112113    kernel. Issue the following command to install the map file:</para>
    113114
    114 <screen os="w1"><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
     115<screen os="w1"><userinput>cp System.map ${LFS}/boot/System.map-&linux-version;</userinput></screen>
    115116
    116117    <para os="x">The kernel configuration file <filename>.config</filename>
     
    119120    It is a good idea to keep this file for future reference:</para>
    120121
    121 <screen os="x1"><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
    122 
    123     <para os="y">It is important to note that the files in the kernel source
    124     directory are not owned by <systemitem class="username">root</systemitem>.
    125     Whenever a package is unpacked as user <systemitem
    126     class="username">root</systemitem> (like we did
    127     inside chroot), the files have the user and group IDs of whatever
    128     they were on the packager's computer. This is usually not a problem
    129     for any other package to be installed because the source tree is
    130     removed after the installation. However, the Linux source tree is
    131     often retained for a long time.  Because of this, there is a chance
    132     that whatever user ID the packager used will be assigned to somebody
    133     on the machine. That person would then have write access to the kernel
    134     source.</para>
    135 
    136     <para os="y1">If the kernel source tree is going to retained, run
    137     <command>chown -R 0:0</command> on the <filename
    138     class="directory">linux-&linux-version;</filename> directory to
    139     ensure all files are owned by user <systemitem
    140     class="username">root</systemitem>.</para>
     122<screen os="x1"><userinput>cp .config ${LFS}/boot/config-&linux-version;</userinput></screen>
    141123
    142124    <warning os="z">
Note: See TracChangeset for help on using the changeset viewer.