һƪ¼ò»¯µÄLinuxÆô¶¯¹ý³Ì˵Ã÷
Æô¶¯µÚÒ»²½££¼ÓÔØBIOS
µ±Äã´ò¿ª¼ÆËã»úµçÔ´£¬¼ÆËã»ú»áÊ×ÏȼÓÔØBIOSÐÅÏ¢£¬BIOSÐÅÏ¢ÊÇÈç´ËµÄÖØÒª£¬ÒÔÖÁÓÚ¼ÆËã»ú±ØÐëÔÚ×ʼ¾ÍÕÒµ½Ëü¡£ÕâÊÇÒòΪBIOSÖаüº¬ÁËCPUµÄÏà¹ØÐÅÏ¢¡¢É豸Æô¶¯Ë³ÐòÐÅÏ¢¡¢Ó²ÅÌÐÅÏ¢¡¢ÄÚ´æÐÅÏ¢¡¢Ê±ÖÓÐÅÏ¢¡¢PnPÌØÐԵȵȡ£ÔÚ´ËÖ®ºó£¬¼ÆËã»úÐÄÀï¾ÍÓÐÆ×ÁË£¬ÖªµÀÓ¦¸ÃÈ¥¶ÁÈ¡ÄĸöÓ²¼þÉ豸ÁË¡£
Æô¶¯µÚ¶þ²½££¶ÁÈ¡MBR
ÖÚËùÖÜÖª£¬Ó²ÅÌÉϵÚ0´ÅµÀµÚÒ»¸öÉÈÇø±»³ÆΪMBR£¬Ò²¾ÍÊÇMaster Boot Record£¬¼´Ö÷Òýµ¼¼Ç¼£¬ËüµÄ´óСÊÇ512×Ö½Ú£¬±ð¿´µØ·½²»´ó£¬¿ÉÀïÃæÈ´´æ·ÅÁËÔ¤Æô¶¯ÐÅÏ¢¡¢·ÖÇø±íÐÅÏ¢¡£
ϵͳÕÒµ½BIOSËùÖ¸¶¨µÄÓ²Å̵ÄMBRºó£¬¾Í»á½«Æ临ÖƵ½0×7c00µØÖ·ËùÔÚµÄÎïÀíÄÚ´æÖС£Æäʵ±»¸´ÖƵ½ÎïÀíÄÚ´æµÄÄÚÈݾÍÊÇBoot Loader£¬¶ø¾ßÌåµ½ÄãµÄµçÄÔ£¬ÄǾÍÊÇlilo»òÕßgrubÁË¡£
Æô¶¯µÚÈý²½££Boot Loader
Boot Loader ¾ÍÊÇÔÚ²Ù×÷ϵͳÄÚºËÔËÐÐ֮ǰÔËÐеÄÒ»¶ÎС³ÌÐò¡£Í¨¹ýÕâ¶ÎС³ÌÐò£¬ÎÒÃÇ¿ÉÒÔ³õʼ»¯Ó²¼þÉ豸¡¢½¨Á¢ÄÚ´æ¿Õ¼äµÄÓ³Éäͼ£¬´Ó¶ø½«ÏµÍ³µÄÈíÓ²¼þ»·¾³´øµ½Ò»¸öºÏÊʵÄ״̬£¬ÒÔ±ãΪ×îÖÕµ÷ÓòÙ×÷ϵͳÄÚºË×öºÃÒ»ÇÐ×¼±¸¡£
Boot LoaderÓÐÈô¸ÉÖÖ£¬ÆäÖÐGrub¡¢LiloºÍspfdiskÊdz£¼ûµÄLoader¡£
ÎÒÃÇÒÔGrubΪÀýÀ´½²½â°É£¬±Ï¾¹ÓÃliloºÍspfdiskµÄÈ˲¢²»¶à¡£
ϵͳ¶ÁÈ¡ÄÚ´æÖеÄgrubÅäÖÃÐÅÏ¢£¨Ò»°ãΪmenu.lst»ògrub.lst£©£¬²¢ÒÀÕÕ´ËÅäÖÃÐÅÏ¢À´Æô¶¯²»Í¬µÄ²Ù×÷ϵͳ¡£
Æô¶¯µÚËIJ½££¼ÓÔØÄÚºË
¸ù¾ÝgrubÉ趨µÄÄÚºËÓ³ÏñËùÔÚ·¾¶£¬ÏµÍ³¶ÁÈ¡ÄÚ´æÓ³Ïñ£¬²¢½øÐнâѹËõ²Ù×÷¡£´Ëʱ£¬ÆÁĻһ°ã»áÊä³ö“Uncompressing Linux”µÄÌáʾ¡£µ±½âѹËõÄÚºËÍê³Éºó£¬ÆÁÄ»Êä³ö“OK, booting the kernel”¡£
ϵͳ½«½âѹºóµÄÄں˷ÅÖÃÔÚÄÚ´æÖ®ÖУ¬²¢µ÷ÓÃstart_kernel()º¯ÊýÀ´Æô¶¯Ò»ÏµÁеijõʼ»¯º¯Êý²¢³õʼ»¯¸÷ÖÖÉ豸£¬Íê³ÉLinuxºËÐÄ»·¾³µÄ½¨Á¢¡£ÖÁ´Ë£¬LinuxÄÚºËÒѾ½¨Á¢ÆðÀ´ÁË£¬»ùÓÚLinuxµÄ³ÌÐòÓ¦¸Ã¿ÉÒÔÕý³£ÔËÐÐÁË¡£
Æô¶¯µÚÎå²½££Óû§²ãinitÒÀ¾ÝinittabÎļþÀ´É趨ÔËÐеȼ¶
Äں˱»¼ÓÔغ󣬵ÚÒ»¸öÔËÐеijÌÐò±ãÊÇ/sbin/init£¬¸ÃÎļþ»á¶ÁÈ¡/etc/inittabÎļþ£¬²¢ÒÀ¾Ý´ËÎļþÀ´½øÐгõʼ»¯¹¤×÷¡£
Æäʵ/etc/inittabÎļþ×îÖ÷ÒªµÄ×÷ÓþÍÊÇÉ趨LinuxµÄÔËÐеȼ¶£¬ÆäÉ趨ÐÎʽÊÇ“£ºid:5:initdefault:”£¬Õâ¾Í±íÃ÷LinuxÐèÒªÔËÐÐÔڵȼ¶5ÉÏ¡£LinuxµÄÔËÐеȼ¶É趨ÈçÏ£º
0£º¹Ø»ú
1£ºµ¥Óû§Ä£Ê½
2£ºÎÞÍøÂçÖ§³ÖµÄ¶àÓû§Ä£Ê½
3£ºÓÐÍøÂçÖ§³ÖµÄ¶àÓû§Ä£Ê½
4£º±£Áô£¬Î´Ê¹ÓÃ
5£ºÓÐÍøÂçÖ§³ÖÓÐX-WindowÖ§³ÖµÄ¶àÓû§Ä£Ê½
6£ºÖØÐÂÒýµ¼ÏµÍ³£¬¼´ÖØÆô
¹ØÓÚ/etc/inittabÎļþµ
Ïà¹ØÎĵµ£º
À´Ô´£ºcnbeta ×÷Õߣºcnbeta 2008-10-31 ³ö´¦£ºpcdog.com
ÎÒ²»ÖªµÀΪʲô“Ö»ÓÐ0.10068£¥µÄLinuxÄں˿ª·¢ÕßÁìнˮ”ÕâÖÖÏ¡ÀïºýÍ¿µÄÏë·¨Á÷´«²»Ï¢,µ«ËüȷʵÔÚÁ÷´«.ËùÒÔ,ÎÒÖ»ÏëÒ»ÀÍÓÀÒݵØ˵,¾Í¾ø´ó²¿·Ö¶øÑÔ,LinuxÊÇÓÉһЩÖ÷ÒªµÄÃÀ¹ú¹«Ë¾¹ÍÓõÄÈí¼þ¹¤³Ìʦ ......
½ñÌìÓÖѧÁË»·¾³±äÁ¿µÄÉèÖ㬸ÐÊܱȽÏÉîһЩ£¬Ê×ÏÈ°ÑÎÒ´ÓÍøÉÏ¿´µ½µÄÖªµÀºÍ´ó¼Ò·ÖÏíһϡ£
»·¾³±äÁ¿ÊǺÍShell½ôÃÜÏà¹ØµÄ£¬Óû§µÇ ¼ϵͳºó¾ÍÆô¶¯ÁËÒ»¸öShell¡£¶ÔÓÚLinuxÀ´ËµÒ»°ãÊÇbash£¬µ«Ò²¿ÉÒÔÖØÐÂÉ趨»òÇл»µ½ÆäËüµÄ Shell¡£¶ÔÓÚUNIX£¬¿ÉÄÜÊÇCShelll¡£»·¾³±äÁ¿ÊÇͨ¹ýShellÃüÁîÀ´ÉèÖõģ¬ÉèÖúõĻ·¾³±äÁ¿ÓÖ¿ÉÒÔ±»ËùÓе±Ç° ......
LinuxÉ豸Çý¶¯³ÌÐòѧϰ±Ê¼ÇϵÁÐÎÄÕÂÔ×÷ÕßÊÇ£ºTekkaman Ninja£¬Ëû²©¿ÍµØÖ·£º
http://blog.chinaunix.net/u1/34474/showart_404278.html
ÔÚ´ËÏòTekkaman Ninja±íʾ¸Ðл£¬Ð´³öÕâôºÃµÄÎÄÕ£¬Ê¹ÎÒÉÙ×ßÁ˺ܶàÍä·¡£
½ñÌì½øÈ롶LinuxÉ豸Çý¶¯³ÌÐò£¨µÚ3°æ£©¡·µÚÁùÕ¸߼¶×Ö·ûÇý¶¯³ÌÐò²Ù×÷µÄѧϰ¡£
Ò»¡¢ioctl
´ó²¿·ÖÉ豸³ýÁ˶Á ......
ÔÚѧϰÓйØI/O×ÜÏßµÄÄÚÈÝʱ£¬×îºÃÏÈ¿´¿´Ïà¹ØµÄ֪ʶ£º´ÓPC×ÜÏßµ½ARMµÄÄÚ²¿×ÜÏß
I/O ¶Ë¿ÚºÍ I/O ÄÚ´æ
ÿÖÖÍâÉ趼ÊÇͨ¹ý¶Áд¼Ä´æÆ÷À´½øÐпØÖÆ¡£
ÔÚÓ²¼þ²ã£¬ÄÚ´æÇøºÍ I/O ÇøÓòûÓиÅÄîÉϵÄÇø±ð: ËüÃǶ¼ÊÇͨ¹ýÏòÔÚµØÖ·×ÜÏߺͿØÖÆ×ÜÏß·¢³öµçƽÐźÅÀ´½øÐзÃÎÊ£¬ÔÙͨ¹ýÊý¾Ý×ÜÏ߶ÁдÊý¾Ý¡£
ÒòΪÍâÉèÒªÓëI\O×ÜÏßÆ¥Å䣬¶ø´ó²¿·ÖÁ ......