Òª±àÒëÄںˣ¬ÐèÒªÒ»Ì×ÍêÕûµÄsyssrc°ü£¬ÕâÌ׶«¶«¿ÉÒÔͨ¹ýCVS»òFTP·½Ê½»ñµÃ¡£
Ҫͨ¹ýCVS·½Ê½ÏÂÔØ£¬ÔÚSHELLÉÏ´ò£º
export CVS_RSH="/usr/bin/ssh"
ÏëÓÃÆäËüµØ·½µÄ·þÎñÆ÷£¬Çë¿´ÍêÕûµÄCVS·þÎñÆ÷ÁÐ±í¡£
cd /usr && cvs checkout -z9 src/sys
ÏÂÔØÍêºó¾Í¿ÉÒÔ°ÑËü·Åµ½/usr/srcĿ¼À²¢½â¿ª£º
cp srcsys.tar.gz /usr/src ; tar -xzvf /usr/src/srcsys.tar.gz
¸ã¶¨ÁËÔ´´úÂ룬½ÓÏÂÀ´¾Í¿ÉÒÔÅäÖò¢±àÒëÄÚºËÁË¡£OpenBSDµÄÄÚºËÅäÖÃÎļþÒòΪ֧³Ö¶àƽ̨£¬ËùÒÔÏàӦƽ̨µÄÅäÖÃ
Îļþ¾Í´æ·ÅÔÚ/usr/src/sys/arch/$ARCH/conf/ÀÕâÀïµÄ$ARCH¾ÍÊÇÄãËùÓõÄƽ̨Ãû³Æ¡£ÎÒÃÇÒÔi386ΪÀý½éÉÜ
¶ÔÄÚºËÓÐÓÅ»¯×÷ÓõÄÑ¡Ïî¡£
O ´¦ÀíÆ÷¼°I/O²¿·ÖÓУº
option I686_CPU
Õâ¸öºÜ¼òµ¥£¬ÓëFreeBSDÒ»Ñù
#option GPL_MATH_EMULATE
±ð°ÑËü´ò¿ª³ý·ÇÄãµÄ»úÆ÷ÀϵÃÁ¬FPU¶¼Ã»ÓÐ
option DUMMY_NOPS
°Ñ¿ª»úÑӳٹصô
option UVM
¸ß¼¶ÐéÄâÄÚ´æϵͳ£¬ÔÚϵͳ½øÐн»»»Ê±ÌṩËÙ¶ÈËùÓÃ
option MFS
Õâ¸öÒ²ÓëFreeBSDº¬ÒåÒ»Ñù£¬ÓÃÓÚ½¨Á¢ÄÚ´æÅÌÒÔÌáÉýÊý¾Ý·ÃÎÊËÙ¶È
O ÍøÂ粿·ÖÓУº
option NMBCLUSTERS="8192"
ÓëFreeBSDº¬ÒåÒ»Ñù£¬ÌáÉý¸ßÁ÷Á¿Ê±µÄÍøÂç²Ù×÷ËٶȲ¢Ìá¸ßÄÚºËÎȶ¨ÐÔ¡£ÈçÁ÷Á¿µÍ¿ÉÓÃ1024»ò2048
ÁíÍ⣬°Ñ²»ÐèÒªµÄÍø¿¨É豸¶¼×¢Ê͵ô£¬ÕâÑù¿ÉÒÔ¼õСÄÚºËÈÝÁ¿ÌáÉýÆô¶¯Ëٶȡ£
O ´ÅÅÌÉ豸²¿·ÖÓУº
option BUFCACHEPERCENT=45
±£Áô45%µÄϵͳÄÚ´æ×÷ΪÎļþϵͳµÄ»º´æ£¬¹ËÃû˼Ò壬¸ù¾Ýʵ¼ÊϵͳÄÚ´æÊýÀ´È¡Öµ£¬ÍƼöÈ¡µÍһЩµÄÖµ
ÁíÍ⣬ÓëÍøÂ粿·ÖÒ»Ñù£¬°Ñ²»ÐèÒªµÄ´ÅÅÌÉ豸(scsi¡¢ide)¶¼×¢Ê͵ô¡£
ÅäÍêÁËÄںˣ¬ÒÀ´Î´ò£º
cd /usr/src/sys/arch/$ARCH/conf ; config yourkernel
cd ../compile/yourkernel ; make depend && make
cp /bsd /bsd-old ; cp bsd /bsd
ÖØÆôºó¾Í¿ÉÒÔÖ±½ÓÓøղűàÒëºÃµÄÐÂÄÚºËÁË£¬Èç¹ûËüÓÐÈκÎÎÊÌ⣬¿ÉÒÔÖØÆôºóÔÚboot>µÄÌáʾ·ûÉÏÊäÈë¸Õ²Å»»ÃûµÄ
¾ÉÄںˣ¬ÃüÁî¸ñʽΪ£º
boot> boot device:/kernelold
°Ñdevice»»³ÉÄã´æ·Å¾ÉÄں˵ÄÅÌÉ豸¼´¿É¡£Ë³±ãÌáһϣ¬Äã¿ÉÒÔÔÚÉÏÊöÃüÁîºó¼ÓÉÏÒ»¸ö-cÑ¡Ïî½øÈëUser Kernel
Config½çÃ棬ËüÌṩÓëFreeBSDÏÂÒ»ÑùµÄÅäÖù¦ÄÜ¡£