Changeset f23b5ee in clfs-embedded for BOOK/bootable/x86
- Timestamp:
- Nov 18, 2006, 11:16:54 AM (18 years ago)
- Branches:
- master
- Children:
- 9b0a535
- Parents:
- 428c8a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootable/x86/kernel.xml
r428c8a6 rf23b5ee 37 37 un-tarring.</para> 38 38 39 <para os=" h">Configure the kernel via a menu-driven interface.39 <para os="e">Configure the kernel via a menu-driven interface. 40 40 Please note that the udev bootscript requires "rtc" and "tmpfs" to be 41 41 enabled and built into the kernel, not as modules. BLFS has … … 44 44 url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para> 45 45 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> 47 47 48 <para os=" j">Alternatively, <command>make oldconfig</command> may be more48 <para os="g">Alternatively, <command>make oldconfig</command> may be more 49 49 appropriate in some situations. See the <filename>README</filename> 50 50 file for more information.</para> 51 51 52 <para os=" k">If desired, skip kernel configuration by copying the kernel52 <para os="h">If desired, skip kernel configuration by copying the kernel 53 53 config file, <filename>.config</filename>, from the host system 54 54 (assuming it is available) to the root directory of the unpacked kernel … … 57 57 from scratch.</para> 58 58 59 <para os=" m">Compile the kernel image and modules:</para>59 <para os="i">Compile the kernel image and modules:</para> 60 60 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> 62 62 63 <para os=" o">If using kernel modules, an63 <para os="k">If using kernel modules, an 64 64 <filename>/etc/modprobe.conf</filename> file may be needed. 65 65 Information pertaining to modules and kernel configuration is … … 69 69 be of interest.</para> 70 70 71 <para os=" p">Be very careful when reading other documentation relating to71 <para os="l">Be very careful when reading other documentation relating to 72 72 kernel modules because it usually applies to 2.4.x kernels only. As 73 73 far as we know, kernel configuration issues specific to Hotplug and … … 78 78 <filename>/etc/modprobe.conf</filename> file do not work with Udev:</para> 79 79 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> 81 81 82 <para os=" r">Because of the complications with Udev and modules,82 <para os="n">Because of the complications with Udev and modules, 83 83 we strongly recommend starting with a completely non-modular kernel 84 84 configuration, especially if this is the first time using Udev.</para> 85 85 86 <para os=" s">Install the modules, if the kernel configuration uses86 <para os="o">Install the modules, if the kernel configuration uses 87 87 them:</para> 88 88 89 <screen os=" t"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \89 <screen os="p"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \ 90 90 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 91 91 92 <para os=" u">After kernel compilation is complete, additional steps are92 <para os="q">After kernel compilation is complete, additional steps are 93 93 required to complete the installation. Some files need to be copied to 94 94 the <filename class="directory">${CLFS}/boot</filename> directory.</para> 95 95 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> 97 97 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> 99 99 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. 101 101 It maps the function entry points of every function in the kernel API, 102 102 as well as the addresses of the kernel data structures for the running 103 103 kernel. Issue the following command to install the map file:</para> 104 104 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> 106 112 107 113 <para os="x">The kernel configuration file <filename>.config</filename>
Note:
See TracChangeset
for help on using the changeset viewer.