Changeset 3349a3a in clfs-sysroot for BOOK/bootable
- Timestamp:
- May 27, 2006, 9:02:20 PM (19 years ago)
- Branches:
- master
- Children:
- d9bec84
- Parents:
- f6c417f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootable/arm/kernel.xml
rf6c417f r3349a3a 54 54 url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para> 55 55 56 <screen os="i"><userinput>make menuconfig</userinput></screen>56 <screen os="i"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen> 57 57 58 58 <para os="j">Alternatively, <command>make oldconfig</command> may be more … … 69 69 <para os="m">Compile the kernel image and modules:</para> 70 70 71 <screen os="n"><userinput>make </userinput></screen>71 <screen os="n"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}-</userinput></screen> 72 72 73 73 <para os="o">If using kernel modules, an … … 97 97 them:</para> 98 98 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> 100 101 101 102 <para os="u">After kernel compilation is complete, additional steps are 102 103 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> 104 105 105 106 <para os="v">Issue the following command to install the kernel:</para> 106 107 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> 108 109 109 110 <para os="w"><filename>System.map</filename> is a symbol file for the kernel. … … 112 113 kernel. Issue the following command to install the map file:</para> 113 114 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> 115 116 116 117 <para os="x">The kernel configuration file <filename>.config</filename> … … 119 120 It is a good idea to keep this file for future reference:</para> 120 121 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> 141 123 142 124 <warning os="z">
Note:
See TracChangeset
for help on using the changeset viewer.