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

linuxÆô¶¯¹ý³ÌdzÎö(1)


ûÓÐÔĶÁ¹ýÔ´Âë֮ǰ,¶Ô²Ù×÷ϵͳ×ÜÊDZ§ÓÐÉñÃظÐ,×ÜÊÇÈÏΪ²Ù×÷ϵͳÊǺܰÂÃîµÄ¶«Î÷. Æäʵ,¶ÔÓÚÒ»¸öÓÐÒ»¶¨±à³Ì»ù´¡ºÍϵͳ֪ʶµÄ³ÌÐòÔ±,²Ù×÷ϵͳ²¢²»ÊÇ¿ÉÍû¶ø²»¿É¼°µÄ¶«Î÷. ²Ù×÷ϵͳµÄ×îÖÕÄ¿±êÖ»ÊÇÔÚÓ¦ÓóÌÐò²ãÃæÓëÓ²¼þ²ãÃæÖ®¼ä×öµÄÒ»²ãЭµ÷,¿ÉÄÜÕâ¸ö¶¨ÒåÓÐЩƬÃæ,µ«±¾×ÅÕâÑùµÄ˼Ïë¶Á´úÂëÓ¦¸Ã»áÇáËÉÒ»µã.
ÓÉÓÚ·¢Õ¹µ½ÏÖÔÚ,LINUXÒѾ­¿ÉÒÔÖ§³Ö¸÷ÖÖƽ̨,±¾ÎĽ²Ö÷ÒªÕë¶ÔÒ»¸ö"¹ÅÀÏ"µÄ°æ±¾--0.11--½øÐÐÌÖÂÛ,ÕâÒ²ÊÇÕÔ¾¼²©Ê¿ÔÚ"linuxÄÚºËÍêȫעÊÍ"Ò»ÊéÖÐ×öʹÓõİ汾,ÓÉÓÚ±¾ÈËÒ²ÊdzõѧÕß,²»¸ÒÍý×Ô¶Ô2.6ÄÚºË×÷³ö¶¨ÂÛ. ÎÒ½«ÔÚÒÔÏ·ÖÎöµÄ¹ý³ÌÖÐż¶û¼ÓÈëһЩ×Ô¼º¶Ô2.6µÄÀí½â.
linuxµÄÆô¶¯¹ý³ÌÖ÷ÒªÉæ¼°µ½Èý¸öÔ´Îļþ: bootsect.s head.s setup.s
ÔÚ0.11°æ±¾ÖÐ,ÕâÈý¸öÎļþ¾ùλÓÚlinux/boot/Ŀ¼ÏÂ,¶øÔÚ×îа汾ÖÐ,ÒòΪ֧³ÖµÄƽ̨µÄ¶àÑùÐÔ,ÎÒÃÇ¿ÉÒÔÔÚlinux/arch/i386/ÏÂÕÒµ½ËüÃÇ.
i386Ìåϵ½á¹¹µÄÆô¶¯¹ý³Ì´óÖÂÊÇÕâÑùµÄ:»úÆ÷Ê×ÏȽøÈëʵģʽ,È»ºó´ÓµØÖ·0xFFFF0´¦¿ªÊ¼Ö´ÐÐ,Ò»°ãÕâ¸öµØÖ·ÊÇÔÚBIOSÖÐ,ÓÚÊÇBIOS³ÌÐò»á¶Ô»úÆ÷×öһЩ×Լ칤×÷. ÔÚ´ËÖ®ºó,Ò»°ã´Ó´ÅÅÌÆô¶¯µÄ»úÆ÷»á´Ó¿ÉÆô¶¯É豸µÄµÚÒ»ÉÈÇøÖаÑÆô¶¯³ÌÐò¶ÁÈëÄÚ´æ0x07C00λÖÃ,²¢ÇÒÌøתµ½¸Ã´¦¼ÌÐøÖ´ÐÐ.ÕâÀïËù˵µ½µÄ´Ó´ÅÅ̶ÁÈëµÄµÚÒ»ÉÈÇøÄÚÈÝ,Æäʵ¾ÍÊÇbootsect.s¾­¹ý»ã±àÒÔºóµÄ¶þ½øÖÆÂë,Ò²¾ÍÊÇ˵,ÔÚ²Ù×÷ϵͳÒâÒåÉÏϵͳÊÇ´Óbootsect.s¿ªÊ¼µÄ. ÔÚ¹Û¿´bootsect.sÔ´Âë֮ǰ,ÈÃÎÒÃÇÏÈ¿´¿´²Ù×÷ϵͳµÃµ½ÔËÐлú»áÒÔºóÊÇÈçºÎ°²ÅÅÒ»ÇеÄ:
Linus¶Ôbootsect.s±»ÔØÈëµÄλÖò»Ì«ÂúÒâ,ÊÂʵÉÏÕâµÄÈ·²»ÊǸöÁ¼ºÃµÄλÖÃ.0x07C00ÊÇÒ»¸öÏ൱µÍµÄλÖÃ,LinusÆÚÍû²Ù×÷ϵͳµÄÕæÕýÄں˲¿·Ö¿ÉÒÔ´Ó0x00000Æðʼ,²¢ÇÒÕ¼¾ÝÕû¸öÄÚ´æÇøÓòµÄ×îµÍλÖÃ. bootµÄ³ÌÐòÄÚÈÝÖ»»áÔÚ»úÆ÷Æô¶¯µÄʱºò±»ÔËÐÐÒ»´Î,ÒÔºó»ù±¾¾ÍûÓÐÓÃÁË. ¶øÏÖÔÚ,bootsect.sλÓÚ0x07C00µÄλÖÃÉÏ,ÏÔÈ»ÒѾ­"µ²×¡"Á˲Ù×÷ϵͳµÄ"·". ÒªÖªµÀ,¼´Ê¹ÊÇ0.11°æ±¾µÄlinux,Äں˵ij¤¶È(ÕâÀïÓ¦¸Ã¸ü׼ȷµÄ³Æ֮ΪsystemÄ£¿é,¶ø²»ÊǹãÒåÉϵÄlinuxÄÚºË. Õâ¸ö¸ÅÄîÔÚÏÂÇÒÌøתµ½ÄÇÀïÖ´ÐÐ.ÎÄÖн²Êö.)Ò²´ïµ½ÁË0x3000, ¶øÔÚ2.6ÖÐ,¸üÊÇ´ïµ½ÁË0x7F00Ö®¶à. ÓÚÊÇ,ºÜ×ÔÈ»µÄ,ÎÒÃÇÊ×ÏÈÒª×öµÄ¹¤×÷¾ÍÊÇ°Ñbootsect.sµÄλÖÃŲ¿ª,Ųµ½¸ü¸ßµÄµØÖ·ÉÏÈ¥,²¢Ìøתµ½ÄÇÀïÖ´ÐÐ.
×öÍêǨÒÆÖ®ºó,bootsect.sÐèÒª×öµÄµÚ¶þ¼þÊÂÇé¾ÍÊÇÒª°ÑºóÐø´úÂëload½øÀ´. Õⲿ·Ö´úÂë¾ÍÊÇsetup.s,ËüµÄ¶þ½øÖƱàÂëÓ¦¸Ã´æ·ÅÔÚÆô¶¯É豸µÄµÚ¶þ¸öÉÈÇø,³¤¶ÈΪ4¸öÉÈÇø. loadÕâ¶Î³ÌÐò²¢Ã»ÓÐÏëÏóÖеÄÄÇôÀ§ÄÑ,³ÌÐòͨ¹ýint 0x13À´Íê³ÉµÄ. setup.s½«±»·ÅÔÚ½ô½ÓÔÚbootsect.sµÄ


Ïà¹ØÎĵµ£º

LINUXÍøÂçÅäÖÃÎļþ


ÔÚ
linux
ϵͳÖУ¬
TCP/IP
ÍøÂçÊÇͨ¹ýÈô¸É¸öÎı¾Îļþ½øÐÐÅäÖõģ¬ÐèÒª±à¼­ÕâЩÎļþÀ´Íê³ÉÁªÍø¹¤×÷¡£ÏµÍ³ÖÐÖØÒªµÄÓйØÍøÂçÅäÖÃÎļþΪ£º
 
¡ô
/etc/sysconfig/network
¡ô
/etc/HOSTNAME
¡ô
/etc/hosts
¡ô
/etc/services
¡ô
/etc/host.conf
¡ô
/etc/nsswitch.conf
¡ô
/etc/resolv.conf
¡ô
/etc/r ......

Linux shell½Å±¾µÄ×Ö·û´®½ØÈ¡

Linux µÄ×Ö·û´®½ØÈ¡ºÜÓÐÓá£ÓаËÖÖ·½·¨¡£
¼ÙÉèÓбäÁ¿ var=http://www.hao.com/123.htm
.
.
Ò» # ºÅ½ØÈ¡£¬É¾³ý×ó±ß×Ö·û£¬±£ÁôÓÒ±ß×Ö·û¡£
echo ${var#*//}
ÆäÖÐ var ÊDZäÁ¿Ãû£¬# ºÅÊÇÔËËã·û£¬*// ±íʾ´Ó×ó±ß¿ªÊ¼É¾³ýµÚÒ»¸ö // ºÅ¼°×ó±ßµÄËùÓÐ×Ö·û
¼´É¾³ý http://
½á¹ûÊÇ £ºwww.hao.com/123.htm
   .
.
¶ ......

LINUX RTAIÖÐ.runinfoÎļþÏê½â£¨Ó¢ÎÄ£©


Description of the "runinfo" format
-----------------------------------
Purpose of the "runinfo" files
------------------------------
"runinfo" files found in the source tree allow the "rtai-load" script
(see rtai-core/scripts/rtai-load) to retrieve the information it needs
to execute a RTAI ......

Linux ÌØÊâÎļþ£¨1£©——É豸Îļþ

Ò»¡¢É豸Îļþ
¡¡¡¡LinuxϵÄ/dev Ŀ¼ÖÐÓдóÁ¿µÄÉ豸Îļþ¡£Ö÷ÒªÊÇ¿éÉ豸ÎļþºÍ×Ö·ûÉ豸Îļþ¡£¡¡¡¡¿éÉ豸Îļþ¡¡¡¡ÔÚ¹ýÈ¥£¬ÔÚÌí¼ÓдÅÅ̺ó£¬ÍùÍùÐèÒªÊÖ¶¯Ôö¼Ó¿éÉ豸Îļþ¡£ÏÖÔÚͨ³£ÎÒÃDz»ÐèÒªÊÖ¶¯Ôö¼Ó¿éÉ豸Îļþ£¬ÔËÐÐÒ»ÏÂservice kudzu start £¬ÏµÍ³¾Í»á×Ô¶¯ÎªÄúÅäÖÃÏàÓ¦µÄÉ豸¡£¿éÉ豸µÄÖ÷ÒªÌصãÊÇ¿ÉÒÔËæ»ú¶Áд£¬¶ø×î³£¼ûµ ......

LinuxÌØÊâÎļþ£¨2£©——Á´½ÓÎļþ

µÚ¶þÕ Á´½ÓÎļþ
¡¡¡¡Á´½ÓÎļþÓеãÀàËÆÓÚWindows µÄËùν¿ì½Ý·½Ê½£¬µ«²¢²»ÍêÈ«Ò»Ñù¡£Á´½ÓÓÐÁ½ÖÖ·½Ê½£¬ÈíÁ´½ÓºÍÓ²Á´½Ó¡£
¡¡¡¡ÈíÁ´½ÓÎļþ
¡¡¡¡ÈíÁ´½ÓÓֽзûºÅÁ´½Ó£¬Õâ¸öÎļþ°üº¬ÁËÁíÒ»¸öÎļþµÄ·¾¶Ãû¡£¿ÉÒÔÊÇÈÎÒâÎļþ»òĿ¼£¬¿ÉÒÔÁ´½Ó²»Í¬ÎļþϵͳµÄÎļþ¡£Á´½ÓÎļþÉõÖÁ¿ÉÒÔÁ´½Ó²»´æÔÚµÄÎļþ£¬Õâ¾Í²úÉúÒ»°ã³Æ֮Ϊ"¶ÏÁ´"µÄÎÊÌ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ