⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1122.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>编译内核实践篇</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>从www.kernel.org上下载最新的内核源文件linux-2.4.20.tar.bz2,并于rh8上编译。<br>
1.  cp linux-2.4.20.tar.bz2 /usr/src<br>
2.  cd /usr/src<br>
3.  tar xvfj linux-2.4.20.tar.bz2<br>
4.  ln -sf linux-2.4.20 linux<br>
5.  cd /usr/src/linux<br>
6.  make mrproper<br>
7.  cd /usr/include/<br>
9.  ln -sf /usr/src/linux/include/asm-i386 asm<br>
10. ln -sf /usr/src/linux/include/linux linux<br>
11. ln -sf /usr/src/linux/include/scsi scsi<br>
12. make menuconfig<br>
13. make dep<br>
14. make clean<br>
15. make bzImage或make zImage<br>
16. make modules<br>
17. make modules_install<br>
18. depmod -a<br>
19. cp /usr/src/linux/System.map /boot/System.map-2.4.20<br>
20. cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20<br>
21. cd /boot<br>
22. ln -sf vmlinuz-2.4.20 vmlinuz<br>
23. ln -sf System.map-2.4.20 System.map<br>
24. /sbin/mkinitrd /boot/initrd-2.4.20.img 2.4.20<br>
25. vi /etc/rc.sysinit,将keybdev替换成usbkbd,mousedev替换成usbmouse.
25. Grub启动, 在/etc/grub.conf中增加<br>
    title Red Hat linux (2.4.20)<br>
    root (hd0,0)<br>
    kernel /vmlinuz-2.4.20 ro root=/dev/hda2<br>
    Grub不需再次调用命令,自动生效。<br>
    重启以后就可以用新内核了。<br>
    <br>
over<br>
<br>
make menuconfig的变化<br>
(1) processor type and features<br>
  删去<br>
    symmetric multi-processing support<br>
  增加<br>
    MTTR (memory type range register)support. [*]<br>
<br>
(2) general setup
  增加<br>
    advanced power management BIOS support &lt;*&gt;, 然后选中以下7项<br>
    parallel port support 中,增加 parallel port support &lt;*&gt;<br>
(3) network devices中,在Ethernet (10 r 100M bit)中,选中3COM cards [*]<br>
                                                        3c590/3c900 series &lt;*&gt;<br>
   Input Core Support中, 打开所有&lt;*&gt; (除了joystick)  (这样就支持USB)<br>
   File Systems中,打开Ext3 journalling file system support &lt;*&gt;<br>
                       DOS FAT fs &lt;*&gt;<br>
                           MSDOS fs support &lt;*&gt;<br>
                           vfat (windows-95) fs support &lt;*&gt;<br>
                       Network File Systems<br>
                           SMB file system support (to mount windows shares etc.) &lt;*&gt;<br>
                       Native Language Support<br>
                           选中<br>
                           simplified chinese charset   &lt;*&gt;<br>
                           traditional chinese charset  &lt;*&gt;<br>
    USB support<br>
               打开UHCI Alternate Driver (JE) support   &lt;*&gt;<br>
               打开OHCI (Compaq, iMacs, OPTi, SiS, ALi, ... ) support   &lt;M&gt;<br>
               USB Human Interface Devices (HID)<br>
               打开<br>
                   USB Human Interface Device (full HID) support &lt;M&gt;<br>
                   HID input layer support                       [*]<br>
                   /dev/hiddev raw HID device support            [*]<br>
                   USB HIDBP Keyboard (basic) support            &lt;M&gt;<br>
                   USB HIDBP Mouse (basic) support               &lt;M&gt;<br>
<br>
<br>
UHCI (Intel PIIX4, VIA, ...) support (NEW)             &lt;*&gt;<br>
OHCI (COMPAQ, iMacs, OPTi, SiS, ALi, ...) support      &lt;*&gt;<br>
<br><br><br>
最新一次的改变:
2.4.20 make menuconfig的变化<br>
(0) Code maturity level options<br>
  增加<br>
    [*] Prompt for development and/or incomplete code/drivers<br>
<br>
(1) processor type and features<br>
  删除<br>
    symmetric multi-processing support<br>
<br>
(1) General Setup<br>
  删除<br>
    [ ] ISA bus support<br>
<br>
(1) Plug and Play configuration<br>
  删除<br>
    &lt; &gt; ISA Plug and Play support<br>
<br>
(2) Block devices<br>
  增加<br>
    &lt;*&gt; Loopback device support<br>
    &lt;*&gt; Network block device support<br>
        &lt;*&gt; RAM disk support<br>
        [*] Initial RAM disk (initrd) support<br>
<br>
(2) IEEE 1394 (FireWire) support (EXPERIMENTAL)<br>
  增加<br>
    &lt;M&gt; IEEE 1394 (FireWire) support (EXPERIMENTAL) (NEW)<br>
      &lt;M&gt; OHCI-1394 support (NEW)<br>
      &lt;M&gt; Raw IEEE1394 I/O support (NEW)<br>
<br>
(3) Network device support<br>
  Ethernet (10 or 100Mbit)<br>
  增加
    [*] 3COM cards<br>
        &lt;*&gt; 3 c590/3c900 series (592/595/597) "Vortex/Boomerang" support (NEW)<br>
  删除<br>
    [ ] EISA,VLB,PCI and on board controllers<br>
  PCMCIA network device support<br>
  删除<br>
    [ ] PCMCIA network device support<br>
<br>
(4) Input core support<br>
  增加<br>
    &lt;*&gt; Input core support<br>
    &lt;*&gt; Keyboard support<br>
    &lt;*&gt; Mouse support<br>
<br>
(5) Character devices<br>
  增加<br>
    &lt;M&gt; Enhanced Real Time Clock Support<br>
<br>
(6) FILE SYSTEMS<br>
  增加<br>
    &lt;*&gt; Ext3 journalling file system support<br>
    &lt;*&gt; DOS FAT fs support<br>
    &lt;*&gt; MSDOS fs support<br>
    &lt;*&gt; VFAT (Windows-95) fs support<br>
    &lt;*&gt; NTFS file system support<br>
    &lt;*&gt; Network File Systems<br>
      &lt;*&gt; SMB file system support (to mount Windows shares etc.)<br>
        [*] Use a default NLS (NEW)<br>
        将.config中的cp437改为cp936
    &lt;*&gt; Native language support<br>
      &lt;*&gt; Simplified Chinese charset (CP936, GB2312) (NEW)<br>
<br>
(7) Sound<br>
  增加<br>
    &lt;*&gt; Creative SBLive! (EMU10K1)<br>
  删除<br>
    &lt; &gt; Creative Ensoniq AudioPCI 97 (ES1371)<br>
<br>
(8) USB support<br>
  增加<br>
    &lt;*&gt; Preliminary USB device filesystem<br>
    &lt;*&gt; OHCI (Compaq, iMacs, OPTi, Sis, ALi, ...) support<br>
    &lt;M&gt; USB Human Interface Device (full HID) support<br>
      &lt;*&gt; HID input layer support<br>
      &lt;*&gt; /dev/hiddev raw HID device support<br>
    &lt;M&gt; USB HIDBP Keyboard (basic) support<br>
    &lt;M&gt; USB HIDBP Mouse (basic) support<br>
<br>
</FONT><br>
                                      </TD>
                                    </TR>
                                <TR>
                                <TD colSpan=2><FONT 
                                class=middlefont></FONT><BR>
                                        <FONT 
                                class=normalfont>全文结束</FONT> </TD>
                                    </TR>
                                <TR>
                                <TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2 
                                height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
                        <TD vAlign=top width="20%" 
                      background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2> 
                          <DIV align=center> 
                            <table class=tableoutline cellspacing=1 cellpadding=4 
                        width="100%" align=center border=0>
                              <tr class=firstalt> 
                                <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
                                <font class=normalfont><b>所有分类</b></font></td>
                              </tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td>    </tr>  </table></td></tr>                            </table>
                          </DIV></TD></TR>
                    <TR vAlign=top>
                        <TD width="80%"> 
                          <DIV align=center><BR>
                          </DIV>
                        </TD></TR></TBODY></TABLE></TD></TR>
                </TABLE></TD></TR>
          </TABLE>
      <TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee 
        border=0><TBODY>
        <TR>
          <TD width="50%">
              <P><FONT class=middlefont>版权所有 &copy; 2004 <A 
            href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
                违者必究. </FONT></P>
            </TD>
          <TD width="50%">
              <DIV align=right><FONT class=middlefont>Powered by: <A 
            href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
            </TD></TR></TBODY></TABLE>
      <CENTER></CENTER></TD></TR>
    </TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -