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

Linux bootloader ±àд·½·¨

¼¶±ð£º ³õ¼¶
·¶Ïþ¾æ (xiaoju_f@263.net), ÁªÏë(±±¾©)ÓÐÏÞ¹«Ë¾Èí¼þÉè¼ÆÖÐÐÄǶÈëʽÑз¢´¦¿ª·¢¹¤³Ìʦ, ÁªÏë(±±¾©)ÓÐÏÞ¹«Ë¾Èí¼þÉè¼ÆÖÐÐÄ
2003 Äê 8 ÔÂ 11 ÈÕ
¶ÔÓÚÒÆÖ² linux µ½ÆäËü¿ª·¢°åµÄÈËÀ´Ëµ£¬±àд boot loader ÊÇÒ»¸ö²»¿É±ÜÃâµÄ¹ý³Ì¡£¶ÔÓÚѧϰlinuxµÄÈËÀ´½²£¬±àд bootloader Ò²ÊÇÒ»¸öºÜÓÐÌôÕ½ÐԵŤ×÷¡£±¾ÎÄͨ¹ý¶Ô linuxÒýµ¼Ð­Òé½øÐзÖÎö£¬Ïêϸ²ûÊöÁËÈçºÎ±àдһ¸ö¿ÉÒÔÔÚ i386 »úÆ÷ÉÏÒýµ¼ 2.4.20Äں˵Ļù±¾µÄbootloader¡£
1.¸ÅÊö
linuxÔËÐÐÔÚ±£»¤Ä£Ê½Ï£¬µ«Êǵ±»úÆ÷Æô¶¯¸´Î»µÄʱºòÈ´´¦ÓÚʵģʽÏ¡£ËùÒÔдbootloader×öµÄ¹¤×÷Ò²ÊÇÔÚʵģʽ֮ϵġ£
linuxµÄÄÚºËÓжàÖÖ¸ñʽ£¬ÀÏʽµÄzImageºÍÐÂÐ͵ÄbzImage¡£ËüÃÇÖ®¼ä×î´óµÄ²î±ðÊǶÔÓÚÄÚºËÌå»ý´óСµÄÏÞÖÆ¡£ÓÉÓÚzImageÄÚºËÐèÒª·ÅÔÚʵģʽ1MBµÄÄÚ´æÖ®ÄÚ£¬ËùÒÔÆäÌå»ýÊܵ½ÁËÏÞÖÆ¡£Ä¿Ç°²ÉÓõÄÄں˸ñʽ´ó¶àΪbzImage£¬ÕâÖÖ¸ñʽûÓÐ1MBÄÚ´æÏÞÖÆ¡£±¾ÎÄÒÔϲ¿·ÖÖ÷ÒªÒÔbzImageΪÀý½øÐзÖÎö¡£
»ØÒ³Ê×
2.bzImage¸ñʽÄں˵Ľṹ
bzImageÄں˴ÓÇ°Ïòºó·ÖΪ3¸ö²¿·Ö£¬Ç°512×Ö½Ú±»³ÆΪbootsect£¬Õâ¾ÍÊÇÈíÅÌÒýµ¼linuxʱÓõ½µÄbootloader£¬Èç¹û²»´ÓÈíÅÌÒýµ¼£¬Õⲿ·Ö¾ÍûÓÐÓã¬ÆäÖд洢ÁËһЩ±àÒëʱÉú³ÉµÄÄÚºËÆô¶¯Ñ¡ÏîµÄĬÈÏÖµ¡£´Ó512¸ö×Ö½Ú¿ªÊ¼µÄ512*n¸ö×Ö½Ú³ÆΪsetup²¿·Ö£¬ÕâÊÇlinuxÄں˵Äʵģʽ²¿·Ö£¬Õⲿ·ÖÔÚʵģʽÏÂÔËÐУ¬Ö÷Òª¹¦ÄÜÊÇΪ±£»¤Ä£Ê½µÄlinuxÄÚºËÆô¶¯×¼±¸»·¾³¡£Õâ¸ö²¿·Ö×îºó»áÇл»½øÈë±£»¤Ä£Ê½£¬Ìøתµ½±£»¤Ä£Ê½µÄÄÚºËÖ´ÐС£×îºóµÄ²¿·Ö¾ÍÊDZ£»¤Ä£Ê½µÄÄںˣ¬Ò²¾ÍÊÇÕæÕýÒâÒåÉϵÄlinuxÄںˡ£ÆäÖÐnµÄ´óС¿ÉÒÔ´Óbootsectºó°ë²¿µÃµ½£¬ÏêϸµØÖ·¿ÉÒÔ²ÎÔÄlinux boot protocol¡£
»ØÒ³Ê×
3.Òýµ¼¹ý³Ì¸ÅÊö
µÚÒ»²½£¬´ò¿ª±ùÏäÃÅ£»µÚ¶þ²½°Ñ´óÏó·Åµ½±ùÏäÀï……²»ÒªÐ¦£¬¹ý³Ì¾ÍÊÇÕâô¼òµ¥¡£Ê×ÏÈÐèÒª°ÑlinuxÄں˵Äsetup²¿·Ö¿½±´µ½9020H:0¿ªÊ¼µÄµØÖ·£¬È»ºó°Ñ±£»¤Ä£Ê½Äں˿½±´µ½1MB¿ªÊ¼µÄµØÖ·£¬È»ºó¸ù¾ÝLinux Boot Protocol 2.03µÄÄÚÈÝÉ趨²ÎÊýÇøµÄÄÚÈÝ£¬»ùµØÖ·¾ÍÊÇ9000H£º0£¬×îºóʹÓÃÒ»Ìõljmp $0x9020,$0Ìøתµ½setup¶Î£¬Ê£ÏµÄÊÂÇé¾ÍÊÇlinux×Ô¼ºµÄÁË^_^,¹ûÈ»¼òµ¥°É£¡
»ØÒ³Ê×
4.THE LINUX/I386 BOOT PROTOCOL
Õâ¸ö¾ÍÊÇÎÒÃÇÒýµ¼linuxËùʹÓõÄЭÒ飬ËüµÄλÖÃÔÚ£ºDocumetation/i386/boot.txtÖС£ÀïÃæÏêϸµÄдÁËÒýµ¼linuxËùÐèÒªÖªµÀµÄÒ»ÇÐ֪ʶ£¬¶ÔÓÚÆäËüÌåϵ½á¹¹µÄCPU£¬Ò²Ò»¶¨´æÔÚ×ÅÀàËƵĶ«¶«£¬·ÂÕÕ±¾Îĵķ½·¨¾Í¿ÉÒÔÁË¡£
»ØÒ³Ê×
5.ϸ½ÚÒ»£º»ù±¾Òýµ¼²ÎÊý
µ±È»ÎÒÃDz»Ö¸¶¨ÈκβÎÊýlinuxÄÚºËÒ²¿ÉÒÔÆô¶¯£¬µ«ÊÇÕâÑùÓ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ÔÚLinuxÉϴJava¿ª·¢»·¾³

ÏÖÔÚ×¼±¸µÄÏîÄ¿£¨Ò½ÁÆ·½Ã棩——
Java6
¿ò¼Ü£ºStruts1.0.2
Êý¾Ý¿â£ºMySQL5
WEB·þÎñÆ÷£ºTomcat6
¿ª·¢»·¾³£ºEclipse3.5
Ó¦Ó÷þÎñÆ÷£ºRed Hat Enterprise Edition
¿ª·¢Æ½Ì¨£ºCentOS 5.4
1.MySQLÊý¾Ý¿âÎÒÖ±½ÓÓÓyum -y install mysql-server
”À´°²×°£¬²Î¿¼£ºhttp://www.centospub.com/mak ......

LinuxÐźżò½é

LinuxÐźżò½é ¡¡
1) SIGHUP ±¾ÐźÅÔÚÓû§ÖÕ¶ËÁ¬½Ó(Õý³£»ò·ÇÕý³£)½áÊøʱ·¢³ö, ͨ³£ÊÇÔÚÖն˵ĿØÖƽø³Ì½áÊøʱ, ֪ͨͬһsessionÄڵĸ÷¸ö×÷Òµ, ÕâʱËüÃÇÓë¿ØÖÆÖն˲»ÔÙ¹ØÁª. ¡¡¡¡
2) SIGINT ³ÌÐòÖÕÖ¹(interrupt)ÐźÅ, ÔÚÓû§¼üÈëINTR×Ö·û(ͨ³£ÊÇCtrl-C)ʱ·¢³ö ¡¡¡¡
3) SIGQUIT ºÍSIGINTÀàËÆ, µ«ÓÉQUIT×Ö·û(ͨ³£ÊÇCtrl-\ ......

LinuxÉÏjdkºÍtomcatµÄ°²×°

µÚÒ»£º
  ÏÂÔØ°²×°Îļþ£º
jdk1.6: wget  http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u17-linux-x64-rpm.bin?BundledLineItemUUID=MAhIBe.nJasAAAEl91kuXXad&OrderID=MwxIBe.nEvEAAAEl7FkuXXad&ProductID=RPVIBe.onOYAAAEk8edn5G0y ......

LINUXÆÚÄ©¸´Ï° ³ÌÐòÉè¼ÆÈëÃÅ

Ò»¡¢GCC (×î×î³£¼û:gcc    hello.c   –o    hello) ¢Ù³£ÓÃÑ¡Ïî -c:½ö¶ÔÔ´Îļþ½øÐбàÒë
-o:¶ÔÉú³ÉµÄ´úÂë½øÐÐÓÅ»¯£¬ÓÐ0£¬1£¬2£¬3ËĸöµÈ¼¶£¬Ä¬ÈÏΪ2
-g:¼ÓÈëµ÷ÊÔÐÅÏ¢
-I dir:±àÒëÔ´ÎļþÊÇÔö¼ÓÒ»¸öËÑË÷¿âÎļþµÄĿ¼
-w:½ûÖ¹ËùÓо¯¸æ
-W warning:ÔÊÐí ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ