Changeset 81d9bce in clfs-embedded for BOOK/bootable
- Timestamp:
- Nov 27, 2006, 8:16:08 PM (18 years ago)
- Branches:
- master
- Children:
- 89cc05c
- Parents:
- cff0bb4
- Location:
- BOOK/bootable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootable/mips/kernel.xml
rcff0bb4 r81d9bce 42 42 xpointer="xpointer(//*[@os='e'])"/> 43 43 44 <screen os="f"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>45 46 44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 47 45 href="../x86/kernel.xml" 48 xpointer="xpointer(//*[@os='g'])"/> 46 xpointer="xpointer(//*[@os='f'])"/> 47 48 <screen os="g"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 49 49 50 50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 56 56 xpointer="xpointer(//*[@os='i'])"/> 57 57 58 <screen os="j"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>59 60 58 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 61 59 href="../x86/kernel.xml" 62 xpointer="xpointer(//*[@os='k'])"/> 60 xpointer="xpointer(//*[@os='j'])"/> 61 62 <screen os="k"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 63 63 64 64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 78 78 xpointer="xpointer(//*[@os='o'])"/> 79 79 80 <screen os="p"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- \81 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>82 83 80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 84 81 href="../x86/kernel.xml" 85 xpointer="xpointer(//*[@os='q'])"/> 82 xpointer="xpointer(//*[@os='p'])"/> 83 84 <screen os="q"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- \ 85 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 86 86 87 87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 129 129 xpointer="xpointer(//*[@os='z'])"/> 130 130 131 <para os="aa">The bootloaders section contains more information on 132 how to configure the kernel for specifc bootloaders. Please refer 133 to this section for your specific needs.</para> 131 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 132 href="../x86/kernel.xml" 133 xpointer="xpointer(//*[@os='aa'])"/> 134 135 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 136 href="../x86/kernel.xml" 137 xpointer="xpointer(//*[@os='ab'])"/> 134 138 135 139 </sect2> -
BOOK/bootable/x86/kernel.xml
rcff0bb4 r81d9bce 43 43 packages outside of CLFS at <ulink 44 44 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 49 54 appropriate in some situations. See the <filename>README</filename> 50 55 file for more information.</para> 51 56 52 <para os=" h">If desired, skip kernel configuration by copying the kernel57 <para os="i">If desired, skip kernel configuration by copying the kernel 53 58 config file, <filename>.config</filename>, from the host system 54 59 (assuming it is available) to the root directory of the unpacked kernel … … 57 62 from scratch.</para> 58 63 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, an64 <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 64 69 <filename>/etc/modprobe.conf</filename> file may be needed. 65 70 Information pertaining to modules and kernel configuration is … … 69 74 be of interest.</para> 70 75 71 <para os=" l">Be very careful when reading other documentation relating to76 <para os="m">Be very careful when reading other documentation relating to 72 77 kernel modules because it usually applies to 2.4.x kernels only. As 73 78 far as we know, kernel configuration issues specific to Hotplug and … … 78 83 <filename>/etc/modprobe.conf</filename> file do not work with Udev:</para> 79 84 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, 83 88 we strongly recommend starting with a completely non-modular kernel 84 89 configuration, especially if this is the first time using Udev.</para> 85 90 86 <para os=" o">Install the modules, if the kernel configuration uses91 <para os="p">Install the modules, if the kernel configuration uses 87 92 them:</para> 88 93 89 <screen os=" p"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \94 <screen os="q"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \ 90 95 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 91 96 92 <para os=" q">After kernel compilation is complete, additional steps are97 <para os="r">After kernel compilation is complete, additional steps are 93 98 required to complete the installation. Some files need to be copied to 94 99 the <filename class="directory">${CLFS}/boot</filename> directory.</para> 95 100 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. 101 106 It maps the function entry points of every function in the kernel API, 102 107 as well as the addresses of the kernel data structures for the running 103 108 kernel. Issue the following command to install the map file:</para> 104 109 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.pl110 <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 108 113 is avaiable from busybox, we need to create the module dependency list by 109 114 issuing the following command:</para> 110 115 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> 114 119 produced by the <command>make menuconfig</command> step above contains 115 120 all the configuration selections for the kernel that was just compiled. 116 121 It is a good idea to keep this file for future reference:</para> 117 122 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"> 121 126 <para>Some kernel documentation recommends creating a symlink from 122 127 <filename class="symlink">/usr/src/linux</filename> pointing to the … … 132 137 <emphasis>never</emphasis> be replaced by the kernel headers.</para> 133 138 </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> 134 143 135 144 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.