📄 1122.html
字号:
<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 <*>, 然后选中以下7项<br>
parallel port support 中,增加 parallel port support <*><br>
(3) network devices中,在Ethernet (10 r 100M bit)中,选中3COM cards [*]<br>
3c590/3c900 series <*><br>
Input Core Support中, 打开所有<*> (除了joystick) (这样就支持USB)<br>
File Systems中,打开Ext3 journalling file system support <*><br>
DOS FAT fs <*><br>
MSDOS fs support <*><br>
vfat (windows-95) fs support <*><br>
Network File Systems<br>
SMB file system support (to mount windows shares etc.) <*><br>
Native Language Support<br>
选中<br>
simplified chinese charset <*><br>
traditional chinese charset <*><br>
USB support<br>
打开UHCI Alternate Driver (JE) support <*><br>
打开OHCI (Compaq, iMacs, OPTi, SiS, ALi, ... ) support <M><br>
USB Human Interface Devices (HID)<br>
打开<br>
USB Human Interface Device (full HID) support <M><br>
HID input layer support [*]<br>
/dev/hiddev raw HID device support [*]<br>
USB HIDBP Keyboard (basic) support <M><br>
USB HIDBP Mouse (basic) support <M><br>
<br>
<br>
UHCI (Intel PIIX4, VIA, ...) support (NEW) <*><br>
OHCI (COMPAQ, iMacs, OPTi, SiS, ALi, ...) support <*><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>
< > ISA Plug and Play support<br>
<br>
(2) Block devices<br>
增加<br>
<*> Loopback device support<br>
<*> Network block device support<br>
<*> RAM disk support<br>
[*] Initial RAM disk (initrd) support<br>
<br>
(2) IEEE 1394 (FireWire) support (EXPERIMENTAL)<br>
增加<br>
<M> IEEE 1394 (FireWire) support (EXPERIMENTAL) (NEW)<br>
<M> OHCI-1394 support (NEW)<br>
<M> Raw IEEE1394 I/O support (NEW)<br>
<br>
(3) Network device support<br>
Ethernet (10 or 100Mbit)<br>
增加
[*] 3COM cards<br>
<*> 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>
<*> Input core support<br>
<*> Keyboard support<br>
<*> Mouse support<br>
<br>
(5) Character devices<br>
增加<br>
<M> Enhanced Real Time Clock Support<br>
<br>
(6) FILE SYSTEMS<br>
增加<br>
<*> Ext3 journalling file system support<br>
<*> DOS FAT fs support<br>
<*> MSDOS fs support<br>
<*> VFAT (Windows-95) fs support<br>
<*> NTFS file system support<br>
<*> Network File Systems<br>
<*> SMB file system support (to mount Windows shares etc.)<br>
[*] Use a default NLS (NEW)<br>
将.config中的cp437改为cp936
<*> Native language support<br>
<*> Simplified Chinese charset (CP936, GB2312) (NEW)<br>
<br>
(7) Sound<br>
增加<br>
<*> Creative SBLive! (EMU10K1)<br>
删除<br>
< > Creative Ensoniq AudioPCI 97 (ES1371)<br>
<br>
(8) USB support<br>
增加<br>
<*> Preliminary USB device filesystem<br>
<*> OHCI (Compaq, iMacs, OPTi, Sis, ALi, ...) support<br>
<M> USB Human Interface Device (full HID) support<br>
<*> HID input layer support<br>
<*> /dev/hiddev raw HID device support<br>
<M> USB HIDBP Keyboard (basic) support<br>
<M> 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>版权所有 © 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 + -