Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux 0.11 ÄÚºËѧϰ bootsect.s£¬ ÍòÀﳤÕ÷µÚÒ»²½

ºÇºÇ£¬ÖÕÓÚ½«linux 0.11 ÏÂÃæµÄbootÎļþ¼ÐϵÄÈý¸öÎļþ¶ÁÍ꣬ÏÂÃæÊÇÏà¹Ø×¢ÊÍ£¬Ã»Óлã±à»ù´¡µÄÈËÒ²ÊÇ¿ÉÒÔ¶ÁµÄ¡£·Ï»°ÉÙ˵£¬ÏÂÃæ¾ÍÊÇlinuxµÄÔ´ÂëÁË¡£
²Î¿¼×ÊÁÏ LinuxÄÚºËÍêȫעÊÍ.pdf
            ÍøÉÏÏà¹Ø×ÊÁÏ
!ʱ¼ä  : 2010-1-14
!¹¤×÷ : ÔĶÁlinux 0.11 Ô´ÂëÖеÄbootsect.s
!×ÜÌålinuxÆô¶¯¹ý³ÌÈçÏÂ:
!
!µ±PCµÃµçÔ´´ò¿ªÖ®ºó£¬80x86½á¹¹µÄCPU½«×Ô¶¯½øÈëʵʱģʽ£¬²¢ÇÒ´Ó0xFFFF0¿ªÊ¼×Ô¶¯Ö´ÐгÌÐò´úÂ룬Õâ¸öµØַͨ³£ÊÇ
!ROM-BIOSµÄµØÖ·¡£PC»úµÄBIOS½«Ö´ÐÐϵͳµÄ¼ì²â£¬²¢ÇÒÔÚÎïÀíµØÖ·µÄ0´¦¿ªÊ¼³õʼ»¯ÖжÏÏòÁ¿¡£´Ëºó£¬Ëü½«¿ÉÆô¶¯É豸µÄµÚÒ»
!ÉÈÇø(512×Ö½Ú)¶ÁÈëÄÚ´æµÄ¾ø¶ÔµØÖ·0x7c00´¦£¬²¢ÇÒÌøתµ½Õâ¸öµØ·½¡£Æô¶¯É豸ͨ³£ÊÇÈíÅÌ»òÕßÊÇÓ²ÅÌ¡£ÕâÀïµÄÐðÊöÊǺܼòµ¥
!µÄ£¬µ«ÊÇÕâÒѾ­×ã¹»Àí½âÄں˵ijõʼ»¯µÄ¹¤×÷¹ý³Ì¡£
!
!linuxµÄ0x9000ÓÉBIOS¶ÁÈëµ½ÄÚ´æµÄ¾ø¶ÔµØÖ·0x7c00(31k)´¦£¬µ±Ëü±»
!Ö´ÐÐʱ¾Í»á°Ñ×Ô¼ºÒƶ¯µ½¾ø¶ÔµØÖ·0x90000´¦£¬²¢°ÑÆô¶¯É豸Öкó2kb×Ö½Ú´úÂë(boot/setup.s)¶ÁÈëµ½ÄÚ´æ0x90200´¦£¬¶øÄں˵Ä
!ÆäËû²¿·ÖÔò±»¶ÁÈëµ½´ÓµØÖ·0x10000µÄ¿ªÊ¼´¦¡£ÔÚϵͳµÄ¼ÓÔØÆÚ¼äÏÔʾÐÅÏ¢?Loading...",È»ºó½«¿ØÖÆȨ´«µÝ¸øboot/setup.sÖÐ
!µÄ´úÂë.ÕâÊÇÁíÒ»¸öʵʱģʽ»ã±à³ÌÐò¡£
!
!ϵͳÆô¶¯²¿·Öʶ±ðÖ÷»úµÄijЩÌØÐÔÒÔ¼°vga¿¨µÄÀàÐÍ¡£Èç¹ûÐèÒª£¬Ëü»áÒªÇóÓû§Îª¿ØÖÆ̨ѡÔñÏÔʾģʽ¡£È»ºóÕû¸öϵͳ´ÓµØÖ·
!0x10000ÒÆÖÁ0x0000´¦£¬½øÈë±£»¤Ä£Ê½²¡ÌøתÖÁϵͳµÄÓàϲ¿·Ö¡£´ËʱËùÓеÄ32λÔËÐз½Ê½µÄÉèÖÃÆô¶¯±»Íê³É:idt,gdt,ldt±»
!¼ÓÔØ£¬´¦ÀíÆ÷ºÍЭ´¦ÀíÆ÷ҲȷÈÏ£¬·ÖÒ³µÄ¹¤×÷Ò²ÉèÖúÃÁË¡£×îÖÕ½«µ÷ÓÃinit/main.cÖеÄmain³ÌÐò¡£ÉÏÊöµÄ²Ù×÷µÄÔ´´úÂëÊÇÔÚ
!boot/head.sÖеġ£Õâ¿ÉÄÜÊÇÕû¸öÄÚºËÖÐ×îÓо÷ÇϵĴúÂëÁË¡£×¢ÒâÈç¹ûÔÚÉÏÊöÈκÎÒ»²½ÖгöÏÖÁËÒ»²½´íÎó¡£¼ÆËã»ú¾Í»áËÀËø¡£ÔÚ
!²Ù×÷ϵͳ»¹Ã»ÓÐÍêÈ«ÔËת֮ǰÊÇ´¦Àí²»ÁË´íÎóµÄ¡£
!
!
!bootsec.sÎļþ˵Ã÷ÈçÏÂ:
!bootsec.s´úÂëÊÇ´ÅÅ̵ÄÒýµ¼¿é³ÌÐò£¬×¤ÁôÔÚ´ÅÅ̵ĵÚÒ»ÉÈÇø¡£ÔÚPC»ú¼Óµçrom bios×Ô¼ìÖ®ºó£¬Òýµ¼ÉÈÇøÓÉbios¼ÓÔص½ÄÚ´æ0x7c00
!´¦£¬È»ºó½«×Ô¼ºÒƶ¯µ½ÄÚ´æ0x90000´¦¡£¸Ã³ÌÐòµÄÖ÷Òª×÷ÓÃÊÇÊ×ÏȽ«setupÄ£¿é´Ó´ÅÅ̼ÓÔص½ÄÚ´æÖУ¬½ô½Ó×ÅbootsectµÄºóÃæλÖÃ
!(0x90200),È»ºóÀûÓÃbiosÖжÏ0x13ÖжÏÈ¥´ÅÅ̲ÎÊý±íÖе±Ç°Òýµ¼Å̵IJÎÊý£¬È»ºóÔÚÆÁÄ»ÉÏÏÔʾ"Loading system..."×Ö·û´®¡£ÔÙÕß
!½«systemÄ£¿é´Ó´ÅÅÌÉϼÓÔص½ÄÚ´æ0x10000¿ªÊ¼µÄµØ·½¡£ËæºóÈ·¶¨¸ùÎļþÏ


Ïà¹ØÎĵµ£º

linux /proc/loadavg Îļþ½éÉܼ°Ó¦ÓÃ

¸ÃÎļþÖеÄËùÓÐÖµ¶¼ÊÇ´ÓϵͳÆô¶¯¿ªÊ¼ÀۼƵ½µ±Ç°Ê±¿Ì¡£¸ÃÎļþÖ»¸ø³öÁËËùÓÐCPUµÄ¼¯ºÏÐÅÏ¢£¬²»Äܸóöÿ¸öCPUµÄÐÅÏ¢¡£
[root@localhost ~]# cat /proc/loadavg
4.61 4.36 4.15 9/84 5662
ÿ¸öÖµµÄº¬ÒåΪ£º
²ÎÊý ½âÊÍ
lavg_1 (4.61) 1-·ÖÖÓƽ¾ù¸ºÔØ
lavg_5 (4.36) 5-·ÖÖÓƽ¾ù¸ºÔØ
lavg_15(4.15) 15-·ÖÖÓƽ¾ù¸ºÔØ
nr_run ......

linuxÏ°²×°jdk²¢ÅäÖ÷¾¶

linuxÏ°²×°ÅäÖ÷½·¨£º
µ½java.sun.comÏÂÔØ£ºj2sdk-1_4_2_04-linux-i586.bin.
±£´æµ½/mnt/Ï£¬È»ºósuÇл»µ½rootÓû§£¬
cd /usr/local/
chmod +x j2sdk-1_4_2_04-linux-i586.bin
È»ºó°´ÕÕÌáʾ£¬Ò»Â·¿Õ¸ñ»òÊÇÊäÈëaccept»òÕ߻سµÖ®ºó£¬°²×°Íê³É¡£
È»ºó
cd /usr/local/
ln -s j2sdk1.4.2_04 java
»·¾³±äÁ¿ÅäÖ ......

Linuxϵͳ¹ÜÀíʵ¼ù(12)£ºSyslogϵͳÈÕÖ¾ÅäÖÃ

    Linux±£´æÁËϵͳÖÐËù·¢ÉúʼþµÄÏêϸ¼Ç¼£¬ÕâЩ¼Ç¼³Æ×÷ÈÕÖ¾Îļþ»òÏûÏ¢Îļþ¡£¿ÉÒÔ²éÔÄÈÕÖ¾ÎļþÀ´È·¶¨ÏµÍ³µ±Ç°×´Ì¬£¬¹Û²ìÈëÇÖÕß×Ù¼££¬Ñ°ÕÒijÌض¨³ÌÐò(»òʼþ)Ïà¹ØµÄÊý¾Ý¡£syslogdÓëklogd(¼à¿ØlinuxÄÚºËÌá½»µÄÏûÏ¢)ÊØ»¤½ø³Ì¸ºÔð¼Ç¼£¬·¢ËÍϵͳ»ò¹¤¾ß²úÉúµÄÐÅÏ¢£¬¶þÕßµÄÅäÖÃÎļþ¶¼ÊÇ/etc/syslog.conf¡£µ±ÏµÍ ......

Linuxѧϰ±Ê¼ÇÁãÁãÎå

1. ÎļþϵͳµÄ¶¨Òå
Èý¸ö·½Ã棺
ijÖÖÎļþ¸ñʽ¡¢ÒÔijÖÖ¸ñʽ´æ´¢µÄÉ豸¡¢Ä³ÖÖ¹ÜÀíÎļþµÄ»úÖÆ¡£
2. VFSÓëÎļþϵͳ
VFSÊÇÐéÄâÎļþϵͳµÄËõд¡£²»Í¬µÄÎļþϵͳÓв»Í¬µÄ¸ñʽ¡¢¹ÜÀí»úÖƺÍʵÏÖ¡£VFSÔòÊǸ÷ÖÖÎļþϵͳ±ØÐë×ñÊصÄAPI¹æ·¶¡£
3. ½ø³ÌÓëÎļþϵͳ
task_structÖÐÓÐÁ½¸öÖ¸Õ룬һ¸öÖ¸Ïòfs_struct£¬¼Ç¼ÁËÎļþϵͳÏà¹ØµÄÊ ......

linux³£ÓÃsvnÃüÁî

1¡¢½«Îļþcheckoutµ½±¾µØĿ¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
        2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn addtest.php(Ìí¼Ótest.php)
svn add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓеÄphpÎļþ)
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ