LinuxµÄÒýµ¼Æô¶¯³ÌÐò
ÀëÉÏһƪÈÕÖ¾ºÜ³¤Ê±¼äÁË£¬Öм䵱ȻÊÇÒòΪ¹ýÄ꣬ÊÂÇéºÜ¶à£¬Êéû¿´¶àÉÙ£¬ÏÖÔÚÓÐʱ¼äÁË£¬ÔÙ·¢Ò»Æª±Ê¼Ç´æµµ£¬ÊǹØÓÚϵͳÆô¶¯¹ý³ÌµÄ£º
Ò»ÇдӼӵ翪ʼ¡£¼ÓµçÒÔºó£¬ËùÓеļĴæÆ÷Çå0£¬Ö»ÓÐCS¼Ä´æÆ÷Ϊȫ1£¬ÓÚÊÇÖ¸ÕëÖ¸ÏòÁË0xffff:0, Õâ¸öµØÖ·ÊÇ ROM-BIOSµØÖ·£¬ ÔÚ´Ë·ÅÖúͳÌÐò¿ªÊ¼×öµÄÊÂÇéÊÇÖ´ÐÐһЩϵͳ¼ì²â£¬²¢ÔÚÎïÀíµØÖ·0´¦¿ªÊ¼³õʼ»¯ÖжÏÏòÁ¿£¬Õâ¸öʱºò³õʼ»¯µÄÖжÏÏòÁ¿£¬¾ÍÊÇÔÚÉÏһƪÈÕÖ¾ÖдòÓ¡“Hello”µÄÄǸöÖжϣ¬Ò²ÊÇÒÔºóÒª±»²Ù×÷ϵͳ¸²¸ÇµÄÖжÏÏòÁ¿¡£È»ºó£¬½«¿ÉÆô¶¯É豸µÄ0ÉÈÇø¼ÓÔص½ÄÚ´æ0x7c00´¦£¬²¢Ìøתµ½Õâ¸ö³ÌÐò¿ªÊ¼Ö´ÐС£
·Åµ½0x7c00´¦µÄ³ÌÐò¾ÍÊÇÄÚºËÖÐµÄ /boot/bootsect.s, ËüÓÉBIOS¶ÁÈëºóÂíÉÏÕÆÎÕÁËCPUµÄ¿ØÖÆȨ£¬´ËʱËü×öµÄµÚÒ»¼þʾÍÊÇ°Ñ×Ô¼ºÒƶ¯ µ½0x90000´¦£¬£¨ÖÁÓÚÕâ¸öÎÊÌâÎÒ²»ÖªµÀÊÇΪʲô£¬ÓÐÈË˵ÊÇΪÁËÏòϼæÈÝ£¬µ«ÎÒ»¹ÕÒ²»µ½Ö¤¾Ý£©È»ºó°ÑÆô¶¯É豸Öкó2kµÄ×Ö½Ú´úÂ룬Ҳ¾ÍÊÇ boot/setup.s¶ÁÈëµ½ÄÚ´æ0x90200´¦£¬È»ºóÓÃBIOSÖжÏÈ¡µ±Ç°Æô¶¯Òýµ¼Å̵IJÎÊý£¬Í¬Ê±ÔÚÆÁÄ»ÉÏÏÔʾ“loading”£¬
¶øÆäËûµÄsystemÄ£¿é£¬°üÀ¨head.s, Ò²ÔÚ´Ëʱ¼ÓÔص½ÄÚ´æµÄ0x10000´¦¡£µ½´ËΪֹ£¬Æô¶¯Ä£¿éµÄÈý¸öÎļþ bootsect.s, ,setup.s, head.sºÍsystemÄ£¿é¶¼ÒѾ½øÈëÄÚ´æÁË£¬Ö»ÊÇËûÃǵÄλÖû¹²»¶Ô£¬½ÓÏÂÀ´Òªµ÷ÕûÒ»ÏÂλÖ㬲¢×öÏÂÒ»²½µÄ¹¤×÷¡£ÏÂÒ»²½µÄ¹¤×÷ÊÇÔÚsetup³ÌÐòÖÐÖ´Ðеģ¬´Ëʱbootsect³ÌÐòÒѾÍê³ÉÁË×Ô¼ºµÄÀúʷʹÃü£¬²¢ÔÚ²»¾ÃµÄ½«À´±»¸²¸Çµô¡£
ÏÂÀ´½øÈësetup£¬ ÔÚÕâ¸ö³ÌÐòÖУ¬Ê×ÏÈÀûÓÃROM-BIOSÖж϶Á»úÆ÷ϵͳÊý¾Ý£¬²¢°ÑÕâЩÊý¾Ý±£´æµ½0x90000µÄλÖã¬ÏÈÇ°ÄÇÕ½¹¦×¿Öø¶ø¿ÉÁ¯µÄbootsect³ÌÐò¾ÍÕâÑùÎÞÇéµØ±»¸²¸ÇµôÁË¡£È»ºó£¬setup³ÌÐò»á°ÑsystemÄ£¿éÏòÏÂÒƶ¯£¬ÓÉÔÀ´µÄ0x10000Òƶ¯µ½Äڴ濪ʼµÄ0x0000´¦£¬ÏÖÔÚÏÈǰʹÓõÄbiosÖжÏÒ²±»ÎÞÇéµÄ¸²¸ÇµôÁË¡£½Ó׿ÓÔØÖжÏÃèÊö·û±í¼Ä´æÆ÷ºÍÈ«ÊéÃèÊö·û±í¼Ä´æÆ÷£¬¿ªÆôA20µØÖ·×ÜÏߣ¬ ÖØÐÂÉèÖÃÖжϿØÖÆоƬ£¬ ½«Ó²¼þÖжϺÅÖØÐÂÉèÖ㬠×îºóÉèÖÃCPU¿ØÖƼĴæÆ÷ CR0£¬ ´Ó¶ø½øÈë32λ±£»¤Ä£Ê½£¬²¢Ìøתµ½head.s ÖС£
½ÓÏÂÀ´ÊÇhead.s ³ÌÐò¡£¼ÓÔظ÷¸öÊý¾Ý¼Ä´æÆ÷£¬ ÖØÐÂÉèÖÃÖжÏÃèÊö·û±íIDT£¬ Ò»¹²256ÏʹËùÓеÄÏָÏòÒ»¸öÖ»±¨¸æ´íÎóµÄÑÆÖжÏ×Ó³ÌÐò ignore_int, È»ºóÓÖÖØÐÂÉèÖÃÈ«¾ÖÃèÊö·û±ígdt, ½Ó׿ì²âA20ÊÇ·ñ¿ªÆô£¬ ÉèÖùÜÀíÄÚ´æµÄ·ÖÒ³»úÖÆ£¬ תȥִÐÐ /init/main.c ÖÐµÄ main³ÌÐò¡£
ÒÔÉϾÍÊÇLinuxÆô¶¯µÄ´óÖ¹ý³Ì¡£¿´ÕÔ¾¼µÄÊéÉÏ»¹½²µ½ÁËÒ»µã£¬Ò²ÊÇÉÏһƪÈÕÖ¾ÁôϵÄÒ»¸ö¹Ø×Ó£¬Èç¹ûÊÇÓ²ÅÌÆô¶¯µÄ»°£¬»
Ïà¹ØÎĵµ£º
LinuxÄÚºËÇÀռʵÏÖ»úÖÆ·ÖÎö
¡¾ÕªÒª¡¿±¾ÎÄÏê½âÁËLinuxÄÚºËÇÀռʵÏÖ»úÖÆ¡£Ê×ÏȽéÉÜÁËÄÚºËÇÀÕ¼ºÍÓû§ÇÀÕ¼µÄ¸ÅÄîºÍÇø±ð£¬½Ó×Å·ÖÎöÁ˲»¿ÉÇÀÕ¼Äں˵ÄÌص㼰ʵʱϵͳÖÐʵÏÖÄÚºËÇÀÕ¼µÄ±ØÒªÐÔ¡£È»ºó·ÖÎöÁ˽ûÖ¹ÄÚºËÇÀÕ¼µÄÇé¿öºÍÄÚºËÇÀÕ¼µÄʱ»ú£¬×îºó½éÉÜÁËʵÏÖÇÀÕ¼ÄÚºËËù×öµÄ¸Ä¶¯ÒÔ¼°ºÎʱÐèÒªÖØе÷¶È¡£
¡¾¹Ø¼ü×Ö¡¿ÄÚºËÇÀÕ¼£¬Óû§ÇÀ ......
ÔÎĵØÖ· http://hi.baidu.com/369464812/blog/item/8d738ff50bc74269ddc474e7.html
[תÔØ]¡¶GNU/Linux±à³ÌÖ¸ÄÏ¡·
1¡¢¿ª·¢»·¾³¼°¿ª·¢¹¤¾ß
GDBµÄʹÓÃ
http://www.linuxsir.org/bbs/showthread.php?t=171156
Eclipse IDE
http://www.linuxsir.org/bbs/showthread.php?t=145249
autotools ʹÓÃ
http: ......
Èí¼þ°²×°ÃüÁî
1. tar
tar ÃüÁîµÄ»ù±¾Ó÷¨Îª£º
tar [Ñ¡Ïî] ÎļþÃû
³£ÓõÄÑ¡Ïî°üÀ¨
-c ´´½¨Ò»¸öеĵµ°¸Îļþ
-t ²é¿´µµ°¸ÎļþµÄÄÚÈÝ
-x ·Ö½âµµ°¸ÎļþµÄÄÚÈÝ
-f Ö¸¶¨µµ°¸ÎļþµÄÃû³Æ
-v ÏÔʾ¹ý³ÌÐÅÏ¢
-z ²ÉÓÃѹËõ·½Ê½
¾ÙÀý
1 tar -czf oracle.tar.gz /u01/app/oracle /etc/oratab /home/oracl ......
ÉùÃ÷£º´Ëµ÷²é½á¹ûÈçÓдíÎ󣬾´ÇëÖ¸Õý¡£Ð»Ð»^_^
LinuxÏÂÎļþ¶ÔÓ¦µÄÊôÐÔ
struct stat {
mode_t st_mode; //Îļþ¶ÔÓ¦µÄģʽ£¬Îļþ¡¢Ä¿Â¼µÈ
ino_t ......