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

»ùÓÚFedora Core 3µÄÄں˱àÒëµÄ×¼±¸¹¤×÷

·¢²¼Ê±¼ä:2006-10-31 01:04:30À´Ô´:ºìÁª×÷Õß:ÏÄÓê
ÓÉÓÚÐèÒªÓõ½intelµÄ2200bgµÄminipciµÄwireless card£¬ÇÒ¹Ù·½ÌṩµÄÇý¶¯Ö»ÓлùÓÚlinux2¡£6µÄ£¬ËùÒԾͲ»µÃ²»×Ô¼º¿ªÊ¼±àÒëlinux2¡£6µÄÄںˡ£ËäÈ»Fedora Core 3ÓõÄÊÇ2.6µÄÄںˣ¬µ«»¹ÊDz»ÄÜÖ±½Ó±àÒ룬ËùÒÔ×¼±¸¹¤×÷¼Ç¼ÈçÏ£º
¸öÈ˸оõlinux2¡£6ÊÇ¿ìÁËһЩ£¬µ«¸Ð¾õ×îÃ÷ÏԵĻ¹Êǹػú£¬ºÇºÇ£¬²Ã¼õºóµÄ¹Ø»úÄǸö¿ì°¡¡£
ËùÒÔ£¬»¹ÊÇÏ£Íû´ó¼Ò¸Ï¿ìͶÈëµ½2¡£6µÄÊÀ½çÀ´°É¡£

ËùÓÃϵͳ£ºFedora3

1ÏÂÔØÒ»·ÝÄÚºËÔ´´úÂë
http://kernel.org/pub/linux/kernel/v2.6/
2.°²×°module-init-tools-3.0.tar.gz¹¤¾ß°ü¡£Ëü»áÌæ´údepmod [/sbin/depmod]ºÍÆäËû¹¤¾ß.
http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz
tar -zxvf module-init-tools-3.0.tar.gz
cd module-init-tools-3.0
./configure --prefix=/sbin
make
make install
./generate-modprobe.conf /etc/modprobe.conf #´Ë²½ÎÞ»ØÏÔ£¬ÐèÒªÄÍÐĵĵÈÒ»»á¡£Éϴξ͹ÒÔÚÕâÀï¡£

ÃüÁî"make moveold"½«°ÑϵͳԭÀ´µÄmodutils¹¤¾ß³ÌÐò¸ÄÃûΪ"*.old"(±ÈÈç,lsmod.oldµÈµÈ). NOTE! ÕâÊǷdz£ÖØÒªµÄÒ»²½, ǧÍò²»ÒªÊ¡ÂÔ. Õ⽫ʹµÃÄã¿ÉÒÔ¼ÌÐøʹÓÃÔ­ÓеÄlinux-2.4.xϵͳ, ÒòΪÔÚ2.4.xϵͳÏÂ, еÄmodule-init-tools¹¤¾ß°üʵ¼ÊÉÏÊÇÒÐÀµÔ­À´"*.old"³ÌÐòÀ´¼ÓÔØÄÚºËÄ£¿é. Èç¹ûÍü¼ÇÁËÕâÒ»²½Ò²²»Òª½ôÕÅ, ¿ÉÒÔÏÈÏÂÔز¢°²×°Ô­À´µÄmodutils³ÌÐò°ü, È»ºó°´ÕÕÉÏÃæµÄ²½ÖèÖØÀ´Ò»±é¾Í¿ÉÒÔÁË.
еÄmodule-init-tools¹¤¾ß°ü²»ÔÙʹÓÃÔ­À´µÄ/etc/modules.confÅäÖÃÎļþÁË, ¶øÊÇʹÓÃеÄÅäÖÃÎļþ/etc/modprobe.conf. Òò´Ë±ØÐèÓÃÃüÁî"./generate-modprobe.conf /etc/modprobe.conf"À´Éú³ÉеÄÅäÖÃÎļþ/etc/modprobe.conf.
3¡£°²×°modutils-2.4.25-8.9.i386.rpm
http://www.kernel.org/pub/linux/ker...4.21-23.src.rpm
# rpm -Uvih modutils-2.4.25-8.9.i386.rpm
¶Ômodutils½øÐÐÉý¼¶¡£

4¡£°²×°ÐÂÄÚºË:
½«ÐÂÄÚºËcopyµ½/usr/srcÏÂ,
#tar xzvf linux-2.6.9.tar.gz -----½âѹËõ.
ÓÃll²é¿´/usr/src/ÏÂÊÇ·ñ´æÔÚÃûΪlinuxµÄ·ûºÅÁ´½Ó£¬ÓÐÔòɾµô¸ÃÁ´½Ó£¬ÕâʱÊÇ°æ±¾Äں˵ķûºÅÁ´½Ó.
#ln -s linux-2.6.9 linux ------½¨Á¢linux-2.6.11µÄ·ûºÅÁ´½Ólinux
5¡£ÉèÖÃÄÚºË.
# cd /usr/src/linux
# make mrproper -----ɾ³ý²»±ØÒªµÄÎļþºÍĿ¼
#make config£¨»ùÓÚÎı¾µÄ×îΪ´«Í³µÄÅäÖýçÃ棬²»ÍƼöʹÓã©
#make menuconfig£¨»ùÓÚÎı¾Ñ¡µ¥µÄÅäÖýçÃ棬×Ö·ûÖÕ¶ËÏÂÍƼöʹÓã©
#make xconfig£¨»ùÓÚͼÐδ°¿ÚģʽµÄÅäÖýçÃ棬XwindowÏÂÍƼöʹÓã©
#make oldconfig£¨Èç¹ûÖ»ÏëÔÚÔ­À´ÄÚºËÅäÖõĻù´¡ÉÏÐÞ¸ÄһЩСµØ·½£¬»áÊ¡È¥²»ÉÙÂé·³£©[ÎÒÃÇÒÔºóÒªÓÃÕâ¸ö]

ÅäÖƺÃÄں˺ó, ¾Í¿ÉÒÔÖ±½Ó±àÒëÁË, "make dep"ÕâÒ»²½ÒѾ­ÏÔʾ²»ÐèÒªÁË.
# make bzImage
# make modules
# make modules_install
# make install

ÉÏÃæµÄÃüÁî"make install"½«: (
1)°ÑѹËõÄÚºËÓ³Ïó¿½±´µ½/bootĿ¼ÏÂ, ²¢´´½¨ÏàÓ¦µÄSystem.map·ûºÅÁ´½Ó; (2)ÐÞ¸ÄbootloaderµÄÅäÖÃÎļþ;
(3)µ÷ÓÃmkinitrd³ÌÐò´´½¨Äں˵ÄinitrdÓ³Ïó. ¶ÔÓÚGRUB¶øÑÔ, ½«ÔÚ/boot/grub/grub.confÅäÖÃÎļþÔö¼ÓÈçÏÂÀàËƵÄÅäÖÃÐÐ:
title Red Hat Linux (2.***)
root(hd0, 1)
kernel /boot/vmlinuz-2.*** ro root=LABEL=/
initrd /boot/initrd-2.***.img
¿ÉÒԲ鿴grub.conf¿´ÕýÈ·Óë·ñ¡£
»¹¿ÉÒÔ£º
#ll /boot/vmlinuxz*
¿ÉÒÔ¿´¼ûоÉÄں˵ÄÉú³Éʱ¼ä£¬Èç¹ûʱ¼äÊÇÕýÈ·µÄ£¬ÄÇô˵Ã÷±àÒëÄں˵Ĺý³ÌÖеÄÈ·Éú³ÉÁËеÄÄںˡ£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. astronomy ÓÚ 2006-11-28 15:10:51·¢±í:

    :ha3nd

  2. astronomy ÓÚ 2006-11-28 15:10:34·¢±í:

    :0L

  3. lz307 ÓÚ 2006-11-28 10:35:45·¢±í:

    :ha3nd