´ÙÀ½ ÀÌÀü Â÷·Ê

4. ¼³Á¤Àº ¾î¶»°Ô Çϴ°¡?

¸ÕÀú ÇÊ¿äÇÑ °ÍµéÀ» ±¸ÇÑ´Ù: Àû´çÇÑ ¹öÀüÀÇ Ä¿³Î°ú ÃֽŠ¹öÀüÀÇ modules-utilities. ±×¸®°í modules-utilities¸¦ ÀνºÅçÇØ¾ß ÇÑ´Ù. ÀÌ ÀÛ¾÷Àº ¸Å¿ì °£´ÜÇÏ´Ù. ¼Ò½º¸¦ Ǭ ´ÙÀ½ make installÀ» ½ÇÇàÇÑ´Ù. ÀÌ°ÍÀº genksysm, insmod, lsmod, modprobe, depmod, kerneld µéÀ» ÄÄÆÄÀÏÇÏ¿© /sbin¿¡ ÀνºÅçÇÑ´Ù. ±×¸®°í »ç¿ëÀÚ°¡ ¸®´ª½º¸¦ ºÎÆÃÇÒ¶§ ÇÊ¿äÇÑ ÀÛ¾÷À» ÀÌ·ç¾îÁöµµ·Ï ½ºÅ¸Æ®¾÷ ½ºÅ©¸³Æ®¿¡ ÇÊ¿äÇÑ ³»¿ëÀ» Ãß°¡ÇÏ´Â °ÍÀÌ ÁÁ´Ù. ´ÙÀ½°ú °°Àº ³»¿ëÀ» /etc/rc.d/rc.SÆÄÀÏ (½½·¢¿þ¾îÀÇ °æ¿ì) À̳ª /etc/rc.d/rc.sysinit (µ¥ºñ¾È, ·¹µåÇÞ, Ä®µ¥¶ó¿Í °°Àº SysVinit¸¦ »ç¿ëÇÏ´Â °æ¿ì)¿¡ Ãß°¡ÇÑ´Ù.

        # Start kerneld - this should happen very early in the
        # boot process, certainly BEFORE you run fsck on filesystems
        # that might need to have disk drivers autoloaded
        if [ -x /sbin/kerneld ]
        then
                /sbin/kerneld
        fi
        # Your standard fsck commands go here
        # And you mount command to mount the root fs read-write
        # Update kernel-module dependencies file
        # Your root-fs MUST be mounted read-write by now
        if [ -x /sbin/depmod ]
        then
                /sbin/depmod -a
        fi
ù¹ø° ºÎºÐÀº kerneld ÀÚ½ÅÀ» ½ÇÇà½ÃÅ°´Â °ÍÀÌ´Ù. µÎ¹ø° ºÎºÐÀº ½ÃÀÛÇÒ¶§ 'depmod -a'¸¦ È£ÃâÇÑ´Ù. depmod ÇÁ·Î±×·¥Àº »ç¿ë °¡´ÉÇÑ ¸ðµç ¸ðµâÀÇ ¸®½ºÆ®¸¦ ¸¸µé°í ±×°Íµé °£ÀÇ ÀÇÁ¸¼ºÀ» ºÐ¼®ÇÏ¿© ÇÑ ¸ðµâÀÌ ·ÎµåµÇ±â Àü¿¡ ¾î¶² ¸ðµâÀÌ ·ÎµåµÇ¾î¾ß ÇÏ´ÂÁö ¾Ë°Ô ÇØÁØ´Ù.

ÁÖÀÇ : ÃÖ±Ù ¹öÀüÀÇ kerneld´Â GNU dbm ¶óÀ̺귯¸®, libgdbm°ú ¸µÅ©ÇÏ´Â °ÍÀ» ¿É¼ÇÀ¸·Î °®´Â´Ù. ¸¸ÀÏ module-utilites¸¦ ÄÄÆÄÀÏÇÒ¶§ ÀÌ ±â´ÉÀ» È°¼ºÈ­½ÃŲ °æ¿ì libgdbmÀÌ ¾øÀ¸¸é kerneld´Â µ¿ÀÛÇÏÁö ¾Ê´Â´Ù. ¿¹¸¦ µé¸é /usr°¡ ´Ù¸¥ ÆÄƼ¼Ç ¿¡ Á¸ÀçÇÏ°í /usrÀÌ ¸¶¿îÆ®µÇ±â Àü¿¡ kerneld°¡ µ¿ÀÛÇÏ´Â °æ¿ìÀÌ´Ù. ÀÌ·± °æ¿ì /usr/libÀÇ libgdbmÀ» /lib·Î ¿Å±â°Å³ª kerneld¸¦ Á¤ÀûÀ¸·Î ¸µÅ©ÇÒ °ÍÀ» ±ÇÀåÇÑ´Ù.

´ÙÀ½, Ä¿³Î ¼Ò½º¸¦ Ç®°í configure¸¦ ÇÏ°í Ä¿³ÎÀ» ¸¸µç´Ù. ¸¸ÀÏ ÀÌ·¯ÇÑ °úÁ¤À» ÀÌÀü¿¡ ÇÑ ÀûÀÌ ¾ø´Ù¸é Linux Ä¿³Î ¼Ò½ºÀÇ ·çÆ® µð·ºÅ丮¿¡ ÀÖ´Â README¸¦ ¹Ýµå½Ã ÀоîºÁ¾ß ÇÑ´Ù. make config¸¦ ÇÒ ¶§´Â ´ÙÀ½°ú °°Àº Áú¹®¿¡ ´ëÇØ °ü½ÉÀ» ±â¿ï¿©¾ß ÇÑ´Ù.

Enable loadable module support (CONFIG_MODULES) [Y/n/?] Y Loadable module support¸¦ ¼±ÅÃÇÏÁö ¾ÊÀ¸¸é kerneld°¡ ·ÎµåÇÒ ¸ðµâÀÌ ¾ø°Ô µÈ´Ù. ±×·¯¹Ç·Î Yes¸¦ ¼±ÅÃÇØ¾ß ÇÑ´Ù.

Kernel daemon support (CONFIG_KERNELD) [Y/n/?] Y ÀÌ°Í ¿ª½Ã ¹Ýµå½Ã ÇÊ¿äÇÑ °ÍÀÌ´Ù. ÀÌÁ¦´Â Ä¿³Î¿¡¼­ ¸ðµâ·Î ¼³Á¤ÇÒ ¼ö ÀÖ´Â ´Ù¾çÇÑ °ÍµéÀÌ Á¦½ÃµÉ °ÍÀÌ´Ù. ¿¹¸¦ µé¸é

Normal floppy disk support (CONFIG_BLK_DEV_FD) [M/n/y/?] ¿©±â¼­ MÀ» ¼±ÅÃÇϸé ÇØ´ç ±â´ÉÀÌ ¸ðµâ·Î ÄÄÆÄÀϵȴÙ. ÀϹÝÀûÀÎ ½Ã½ºÅÛÀ» ºÎÆ®ÇÒ¶§ ÇÊ¿äÇÑ µð¹ÙÀ̽º - Çϵåµð½ºÅ© µå¶óÀ̹ö, ·çÆ® ÆÄÀÏ ½Ã½ºÅÛÀ» À§ÇÑ µå¶óÀ̹ö¸¸ Ä¿³Î¿¡ Æ÷ÇÔÇÏ¸é µÈ´Ù. ³ª¸ÓÁö´Â ¸ðµå ¸ðµâ·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù.

'make config'¸¦ ³¡³»¸é 'make dep', 'make clean', 'make zImage' ȤÀº 'make zlilo', 'make modules' ±×¸®°í 'make modules_install'¸¦ Â÷·Ê·Î ½ÇÇàÇÑ´Ù. 'make zImage'´Â »õ·Î¿î Ä¿³Î À̹ÌÁö¸¦ arch/i386/boot/zImage µð·ºÅ丮¿¡ µÑ °ÍÀÌ´Ù. ÀÌ°ÍÀ» ºÎÆ® À̹ÌÁö¸¦ µÎ´Â °÷À̳ª LILO¿¡¼­ ¼³Ä¡ÇÏ´Â °÷¿¡ º¹»ç ÇÏ¸é µÈ´Ù.

Ä¿³ÎÀ» ¼³Á¤ÇÏ°í ºôµåÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ Á» ´ú ¾Ë°í ½ÍÀ¸¸é comp.os.linux.answers¿¡ ÁÖ±âÀûÀ¸·Î Æ÷½ºÆ®µÇ°í sunsite.unc.eduÀÇ /pub/Linux/docs/HOWTOÀÇ Kernel-HOWTO¸¦ Âü°íÇÑ´Ù.


<bf/kerneld ½ÃÇèÇØ º¸±â/
   ÀÌÁ¦ »õ·Î¿î Ä¿³Î·Î ¸®ºÎÆ®ÇÑ´Ù. ½Ã½ºÅÛÀÌ ºÎÆ®µÇ¸é 'ps -ax'¸¦ »ç¿ëÇÏ¿©
   ´ÙÀ½°ú °°Àº ³»¿ëÀÌ ÀÖ´Â Áö È®ÀÎÇØ º»´Ù.

    PID TTY STAT  TIME COMMAND
     59  ?  S     0:01 /sbin/kerneld

   kerneld¸¦ »ç¿ëÇؼ­ ÁÁÀº Á¡ ÇÑ°¡Áö´Â Çѹø »ç¿ëÀÚ°¡ Ä¿³ÎÀ» ¸¸µé°í µ¥¸óÀ»
   ¼³Ä¡ÇÑ ´ÙÀ½¿¡´Â ȯ°æ¼³Á¤Çϴµ¥ º°´Ù¸¥ ÀÛ¾÷ÀÌ ÇÊ¿äÇÏÁö ¾Ê´Â´Ù´Â °ÍÀÌ´Ù.
   ½ÃÇè»ï¾Æ ¸ðµâ·Î ºôµåÇÏ·Á°í ÇÏ´Â µå¶óÀ̹öÁß Çϳª¸¦ »ç¿ëÇØ º»´Ù. ¾Æ¸¶µµ
   Ãß°¡ ¼³Á¤ ¾øÀ̵µ Àß µ¿ÀÛÇÒ °ÍÀÌ´Ù.  Ç÷ÎÇÇ µå¶óÀ̹ö¸¦ ¸ðµâ·Î ºôµåÇÏ°í
   DOS Ç÷ÎÇÇ µð½ºÅ©¸¦ µå¶óÀ̺꿡 ³Ö¾ú´Ù.

   osiris:~ $ mdir a:
   Volume in drive A has no label
   Volume Serial Number is 2E2B-1102
   Directory for A:/
   binuti~1 gz       1942 02-14-1996  11:35a binutils-2.6.0.6-2.6.0.7.diff.gz
   libc-5~1 gz      24747 02-14-1996  11:35a libc-5.3.4-5.3.5.diff.gz
          2 file(s)        26689 bytes

   Ç÷ÎÇÇ µå¶óÀ̹ö°¡ µ¿ÀÛÇÑ´Ù. ÀÌ°ÍÀº ¸Å¹ø Ç÷ÎÇÇ µð½ºÅ©¸¦ »ç¿ëÇÒ ¶§¸¶´Ù
   kerneld¿¡ ÀÇÇØ ÀÚµ¿À¸·Î ·ÎµåµÈ´Ù.
   ½ÇÁ¦·Î Ç÷ÎÇÇ ¸ðµâÀÌ ·ÎµåµÇ¾ú´ÂÁö ¾Ë¾Æº¸±â À§ÇØ /sbin/lsmod¸¦ ½ÇÇàÇغ¸¸é
   ÇöÀç ·ÎµåµÈ ¸ðµâµéÀ» º¼ ¼ö ÀÖ´Ù.

   osiris:~ $ /sbin/lsmod
   Module:        #pages:  Used by:
   floppy            11    0 (autoclean)

   "(autoclean)"Àº ¸ðµâÀÌ ÀÏ ºÐÀÌ»ó »ç¿ëµÇÁö ¾ÊÀ¸¸é ÀÚµ¿ÀûÀ¸·Î kerneld¿¡
   ÀÇÇØ Á¦°ÅµÈ´Ù´Â °ÍÀ» ÀǹÌÇÑ´Ù. ±×·¯¹Ç·Î 11 ÆäÀÌÁö¸¸Å­ÀÇ ¸Þ¸ð¸®(ÇÑ
   ÆäÀÌÁö°¡ 4kBÀ̹ǷΠÃÑ 44kB)°¡ ¿ÀÁ÷ ³»°¡ Ç÷ÎÇÇ µå¶óÀ̺긦 »ç¿ëÇÒ¶§¸¸
   »ç¿ëµÈ´Ù´Â °ÍÀ» ÀǹÌÇÑ´Ù. ¸¸ÀÏ ³»°¡ ÀÏ ºÐÀÌ»ó Ç÷ÎÇǸ¦ »ç¿ëÇÏÁö ¾ÊÀ¸¸é
   Ç÷ÎÇÇ µå¶óÀÌºê ¸ðµâ¿¡ ÇÒ´çµÈ ¸Þ¸ð¸®´Â ÇØÁ¦µÈ´Ù. ÀÌ·¯ÇÑ ±â´ÉÀº »ç¿ëÀÚ
   ¾îÇø®ÄÉÀ̼ÇÀÌ ¸Þ¸ð¸® ºÎÁ·À¸·Î °í»ýÇÒ ¶§ ¸Å¿ì À¯¿ëÇÏ´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê