ºìÁªLinuxÃÅ»§
Linux°ïÖú

LinuxÄں˻ù±¾¼¼ÄÜ-Éý¼¶Äںˣ¬¸ÐÊÜLinuxÐÂʱ¿Õ

·¢²¼Ê±¼ä:2006-01-22 09:47:11À´Ô´:ºìÁª×÷Õß:ming
Linux 2.6Äں˵Äά»¤ÈËAndrew MortonÔÚ·¢²¼2.6.0ÄÚºËʱÌáµ½£¬2.6.0ÄÚºËÄÜÔÚ·þÎñÆ÷¼¶µÄ»úÆ÷ÉÏÔËÐеúܺ㬵«ÔÚ×ÀÃæµçÄԺͱʼDZ¾µçÄÔÖпÉÄÜ»áÅöµ½Ò»Ð©Âé·³¡£µ«ÎÞÂÛÈçºÎ£¬2.6°æÄÚºËÒѾ­ÕýʽÍƳöÁË£¬½ÓÏÂÀ´¸÷ÖÖLinux³§É̺Í×éÖ¯£¬¶¼»áÖð²½Éý¼¶µ½2.6°æÄںˡ£ËäÈ»³öÓÚÎȶ¨ÐÔ¡¢³ÉÊì¶ÈµÄ¿¼ÂÇ£¬Õâ¸ö±ä»¯»áÊǽ¥½øµÄ£¬µ«ÊÇһЩÓÐÄÜÁ¦µÄ¸öÈËÓû§ÍêÈ«¿ÉÒÔÏÈÐг¢ÊÔ2.6°æÄں˴øÀ´µÄÖÖÖÖÐÂÌØÐÔ¡£

³õÊÔLinux 2.6µÄµÚÒ»»÷¾ÍÊÇÉý¼¶Äںˡ£

²½ÖèÒ»£ºÏÂÔØÐÂÄÚºË

´Ókernel.orgÏÂÔØ2.6°æÄں˵ÄÍêÕûÔ´´úÂëѹËõ°ü£º

# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.0.tar.bz2



ÏÂÔØÔ´´úÂëµÄͬʱ£¬×îºÃÒ²ÏÂÔضÔÓ¦µÄGnuPGÇ©ÃûÎļþ£¬ÒÔÑéÖ¤ËùÏÂÔصÄÔ´´úÂëÊÇ·ñ°²È«£¬·ÀÖ¹Ô´´úÂë±»¼ÓÈë¶ñÒâ´úÂë¡£ÏêÇé¿É²Î¿¼http://www.kernel.org/signature.htmlÉϵĽéÉÜ

²½Öè¶þ£ºÔĶÁÎĵµ

²»ÊìϤÈçºÎ±àÒëÄں˵ĶÁÕߣ¬¿ÉÒÔÏÈÔĶÁLinux Kernel HOWTO£¨http://www.linux.org/docs/ldp/howto/Kernel-HOWTO/£©¡£±àÒë¹ýÄں˵ĶÁÕßÔòҪעÒ⣬2.6°æÄں˵ıàÒë·½·¨ÓÐËù¸Ä½ø£¬ÕâÔÚÄÚºËÔ´´úÂëËù¸½µÄReadmeÎļþÖÐÓоßÌå˵Ã÷¡£ËùÒÔÔڽ⿪ÄÚºËÔ´´úÂë°üºó£¬Ê×ÏÈÒª×öµÄÊÇÔĶÁReadmeµÈ°ïÖúÎļþ¡£

²½ÖèÈý£ºÅäÖÃÐÂÄÚºË

ÔÚ2.6°æÄÚºËÖУ¬Äں˱àÒëϵͳµÃµ½ÐµĸĽø£¬´Ó¶øÓÐЧµØ¼Ó¿ìÁ˱àÒëËٶȡ£Í¬Ê±£¬ÒÔÇ°ÓÃTk/TclʵÏÖµÄͼÐλ¯ÄÚºËÅäÖ÷½Ê½¡°make xconfig¡±£¬ÔÚ2.6°æÄÚºËÖб»Ê¹ÓÃQt¿âµÄеġ°make xconfig¡±·½Ê½ËùÈ¡´ú¡£

2.6°æÄں˻¹ÌṩÁËÁíÒ»ÖÖʹÓÃGtk¿âµÄͼÐλ¯ÄÚºËÅäÖ÷½Ê½¡°make gconfig¡±£¬Êµ¼ÊÉÏËü¾ÍÏñÊÇ¡°make xconfig¡±µÄ¿Ë¡£¬ÆäÍâ¹ÛºÍ²Ù×÷·½Ê½Óë¡°make xconfig¡±ÍêÈ«Ò»Ö¡£

ÒÔÉÏÁ½ÖÖͼÐλ¯ÄÚºËÅäÖ÷½Ê½ÔËÐÐÔÚX-WindowÖУ¬ÓëÒÔÇ°Ïà±È¸ü¼Ó·½±ãÒ×Óá£Èç¹ûÊÇÔÚ×Ö·û½çÃæÅäÖÃÄںˣ¬ÈÔȻʹÓá°make config¡±¡¢¡°make menuconfig¡±¡¢¡°make oldconfig¡±¡£ÆäÓ÷¨ºÍÒÔÇ°µÄ°æ±¾ÍêÈ«Ò»Ñù¡£ºÜÃ÷ÏÔ¡£¡°make xconfig¡±µÄÅäÖ÷½Ê½¸üΪֱ¹ÛÒ×Óã¬ËùÒÔÔÚ°²×°ÓÐX-WindowµÄÇé¿öÏ£¬½¨Òé³õѧÕßʹÓá°make xconfig¡±½øÐÐÄÚºËÅäÖá£

¶ÔÓÚÆÕͨPCÓû§£¬ÌرðÊÇʹÓÃLinux×÷Ϊ×ÀÃæ²Ù×÷ϵͳµÄÓû§À´Ëµ£¬Éý¼¶Äں˲¢²»ÊÇäĿµØÑ¡ÔñËùÓÐÐÂÌØÐÔ¡£ÒòΪÐí¶àÕë¶Ô¸ß¶Ë·þÎñÆ÷µÄÌØÐÔ£¬ÆÕͨÓû§ÊÇÎÞ·¨ÏíÊܵ½µÄ£¬·´¶ø»áʹÄں˱ä´ó£¬¸ü¼ÓÈÝÒ×ÔÚ±àÒëÖвúÉú´íÎó¡£ËùÒÔ£¬Éý¼¶µÄÖصãÊÇʵÏÖ2.6°æÄÚºËÖиöÈËÓû§¿ÉÒÔÏíÊܵ½µÄÏà¹ØÌØÐÔ£¬±ÈÈçÇÀռʽÄںˡ¢Ö§³ÖALSA¡¢¸Ä½øµÄNTFSÇý¶¯¡¢Ö§³Ö¸ü¶àÖ÷Á÷É豸µÈ¡£ÔÚÕýʽ¿ªÊ¼±àÒëºÍʹÓÃÐÂÄÚºË֮ǰ£¬Òª×öºÃÊý¾Ý±¸·Ý¡¢Æô¶¯Å̵È×¼±¸¹¤×÷¡£ÕâÀï×ܽáÒ»ÏÂÅäÖÃ2.6°æÄÚºËҪעÒâµÄ¼¸¸öÎÊÌ⣬¹©´ó¼Ò½è¼ø²Î¿¼£º

1£®Ñ¡Ôñ2.6°æÄÚºËÖиöÈËÓû§¿ÉÒÔÏíÊܵ½µÄÏà¹ØÌØÐÔ¡£

2£®Óò»µ½µÄÇý¶¯Òª¾¡¿ÉÄܵØɾ³ý£¬¶àÓàµÄÇý¶¯»áʹÄں˱ä´ó£¬Ó°ÏìËٶȡ£

3£®¶ÔÓÚÊôÓÚ¡°development¡±¡¢¡°experimental¡±»ò¡°debugging¡±µÄÑ¡Ïһ°ãÑ¡Ôñ¡°N¡±£¬ÕâÑùÉú³ÉµÄÄں˽«¸ü¼ÓÎȶ¨¡£

4£®¶ÔÓÚÄÚºËÅäÖõľֲ¿Ð޸ĿÉʹÓá°make oldconfig¡±£¬ÕâÑùËٶȻá¿ìÐí¶à¡£

5£®Èç¹ûʹÓÃÁËmodules·½Ê½À´Ö§³ÖSCSI»òRAIDµÈÉ豸£¬ÐèҪѡ¡°RAM Disk support¡±ºÍ¡°Initial RAM disk¡±£¬²¢Éú³Éinitrd.img£¬ÒÔ±ãÔÚÆô¶¯Ê±ÔØÈëÏà¹ØÇý¶¯¡£

6£®×¢ÒâÔĶÁÁª»ú°ïÖú£¬ÅªÇå³þÑ¡ÏîµÄÕýÈ·º¬ÒåºóÔÙ½øÐÐÑ¡Ôñ¡£

ÔÚ¶Ô2.6°æÄں˵ÄÅäÖùý³ÌÖлᷢÏÖÐí¶àÐÂÔö»ò¸ÄдµÄ¹¦ÄÜ£¬±ÈÈçÔÚ¶Ô¡°sound¡±µÄÖ§³ÖÖаüÀ¨ÁËALSAºÍOSSÁ½ÖÖÉùÒôϵͳ¡£

ALSAÊǸüΪÏȽøµÄÉùÒôϵͳ£¬¶ÔÓÚÓµÓкÃÉù¿¨ºÍºÃÒôÏäµÄÓû§£¬´ËÏîӦΪ±ØÑ¡¡£

ÁíÍ⣬ÔÚ¡°File System¡±µÄÑ¡Ïî¡°DOS/FAT/NT Filesystems¡±µÄ×ÓÑ¡Ïî¡°NTFS file system support¡±ÖУ¬¶ÔNTFSµÄд²Ù×÷ÒѾ­Ã»ÓÐÒÔÇ°°æ±¾ÖеÄΣÏÕ±êÖ¾ÁË¡£ÕâÊÇÒ»¸öºÜÌùÐĵĸĽø£¬±Ï¾¹ÒÔÇ°Ö»ÄܶÁ¶ø²»ÄÜд£¬ÊµÔÚÊÇÌ«²»·½±ãÁË¡£

2.6°æÄں˻¹ÐÂÔöÁË¡°Enable different security models¡±Ñ¡ÏÕâÒ²±íʾ³öLinux¿ª·¢ÕßÃǶԲÙ×÷ϵͳ°²È«µÄÖØÊÓ¡£

ÔÚ2.6°æÄں˵ÄÅäÖùý³ÌÖУ¬»¹Ôö¼ÓÁËÐí¶àµÄÐÂÓ²¼þ£¬±ÈÈç2.4°æÄÚºËÖÐû°üº¬Promise IDE RAIDµÄÇý¶¯£¬ÐèÒªÓó§¼ÒÌṩµÄÇý¶¯ÈíÅ̽øÐа²×°£¬ÏÖÔÚÔò²»±ØÁË¡£ÀàËƵÄÓ²¼þÖ§³Ö»¹Óкܶࡣ

²½ÖèËÄ£º½¨Á¢ÐÂÄÚºË

ÔÚÍê³ÉÄÚºËÅäÖúó£¬ÔËÐС°make bzImage¡±À´±àÒë²úÉúÐÂÄںˡ£ÕâÒ»µãÓëÒÔÇ°2.4°æÄں˵ıàÒë¹ý³ÌÏà±È£¬Ê¡ÂÔÁË¡°make dep¡±ÕâÒ»²½£¬´Ó¶ø¸ü¼ò½à¡£¡°make bzImage¡±ÐèҪһЩʱ¼ä£¬µ«¸Ð¾õ±È±àÒë2.4°æÄÚºËÒª¿ìÐí¶à¡£Í¬Ê±£¬±àÒë¹ý³ÌÖеÄÆÁÄ»ÐÅÏ¢Ò²¼ò½àÁËÐí¶à¡£

ͨ³£Çé¿ö϶¼Ñ¡ÔñÁË¡°Loadable module support¡±µÄÑ¡ÏËùÒÔ¡°make modules¡±ºÍ¡°make modules_install¡±Ò²ÐèҪһЩʱ¼ä£¬¾ßÌåʱ¼äÊÓËùÑ¡ÔñmodulesµÄ¶àÉÙ¶ø¶¨¡£

²½ÖèÎ壺ÆôÓÃÐÂÄÚºË

Äں˺Ímodules¶¼±àÒëÍê³Éºó£¬¾ÍÒªÐÞ¸ÄGRUB»òLILOÀ´ÆôÓÃÐÂÄںˡ£ÕâÒ»²½ºÍÒÔÍù°æ±¾ÖеIJÙ×÷Ò»Ñù£¬·½·¨ÓкܶàÖÖ£¬¿ÉÒÔÊÖ¶¯¸´ÖÆSymtem.map¡¢bzImageµ½¶ÔӦĿ¼£¨Èç/boot£©£¬È»ºóÐÞ¸ÄÒýµ¼³ÌÐòµÄÅäÖᣱÈÈ磺

ÒýÓÃ:
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.0
# cp System.map /boot/System.map-2.6.0
# cd /boot
# rm System.map
# ln -s System.map-lvs System.map
# rm vmlinuz
# ln -s vmlinuz-2.6.0 vmlinuz
# vi /etc/grub.conf
# reboot




Ò²¿ÉÒÔʹÓá°make install¡±À´×Ô¶¯¼ÓÈëÐÂÄںˡ£±ÈÈ磺

ÒýÓÃ:
# make install
# vi /etc/grub.conf
# reboot




¹Ø¼üÔÚÓÚÒªÀí½âLinuxÒýµ¼Æô¶¯¹ý³ÌµÄ¹¤×÷Ô­Àí¡£

ÖØÐÂÆô¶¯ºó£¬Ñ¡ÔñÐÂÄںˣ¬ÐÂÄں˽«½âѹ¡¢Æô¶¯¡¢ÔËÐÐÖ±ÖÁ³öÏֵǼ½çÃ棬½øÈëϵͳ¡£Ê¹ÓÃunameÃüÁî²é¿´ËùʹÓõÄÄں˰汾¡£

ÊÔÓøÐÊÜ

ʹÓÃ2.6°æÐÂÄÚºËÆô¶¯ºó£¬¿ÉÒÔ¿ªÊ¼³¢ÊÔÄÚºËÅäÖÃÖÐËùÑ¡Óõĸ÷ÖÖÌØÐÔÁË£¬±ÈÈçASLA¡£ÓÉÓÚÊǵÚÒ»´ÎʹÓÃALSA£¬ÐèҪȥhttp://www.alsa-project.org/ÏÂÔØеÄalsa-libºÍalsa-utils£¬È»ºó½øÐа²×°¡£

ÒÔÇ°µÄsndconfigÕë¶ÔOSSÉùÒôϵͳ£¬ALSAÔòʹÓÃalsaconfÀ´ÅäÖÃÉù¿¨£¬Ê¹ÓÃalsamixer¿ÉÒÔµ÷ÕûÒôÁ¿¡£»ñµÃ¸üÏêϸµÄÐÅÏ¢¿ÉÒÔ·ÃÎÊhttp://www.alsa-project.org/¡£

ÆäËüÌØÐÔÒ²¿ÉÒ»Ò»³¢ÊÔ£¬ÕâÀï²»ÔÙ׸Êö¡£Éý¼¶µ½2.6°æÄں˺󣬾ø´ó¶àÊý·þÎñºÍÓ¦ÓóÌÐò¶¼Ã»ÓÐÊÜÓ°Ï죬µ«Ò²ÓÐһЩ³ÌÐòÈçVMwareºÍÄں˰汾Óйأ¬ËùÒÔ»áÓÐËùÓ°Ïì¡£ÔÚʹÓÃX-Window·½Ã棬ʹÓÃÐÂÄں˸оõËÙ¶ÈÂÔÓÐÌáÉý¡£Õâ´ó¸ÅÒª¹é¹¦ÓÚʹÓÃÁË¿ÉÇÀռʽÄںˣ¬ËüÔÊÐíÄÚºËÔÚÖ´ÐÐÈÎÎñʱ±»´ò¶Ï£¬ÕâÑùÓû§ÈÎÎñ¿ÉÒÔ²»±ØµÈ´ýÄÚºËÍê³É×ÔÉíµÄÈÎÎñ¾ÍµÃµ½ÏµÍ³µÄÏìÓ¦£¬Ê¹µÃÓû§µÄ½»»¥Ê½²Ù×÷ÏìÓ¦Ëٶȴó´óÌá¸ß£¬´Ó¶øÁîÓû§¸Ð¾õËÙ¶ÈÌáÉý¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. suo2800 ÓÚ 2006-07-14 13:17:12·¢±í:

    Áô×ÅÔÙ¿´