Mr. ProcessµÄÒ»Éú£LinuxÄں˵ÄÉç»áÊÓ½Ç (2)Æô¶¯
ÆäʵÕâ²ÅÓ¦¸ÃÊÇÕâһϵÁÐÎÄÕµĵÚÒ»½Ú£¬ÒòΪÕâƪÎÄÕ½²µÄÊÇÅ̹ſªÌìµØµÄÊ¡£»°ËµMr.
ProcessÊÇÒ»¸öÏÖ´úÈË£¬µ«ÊÇ£¬Ö»ÒªÊÇÈË£¬×ܸÃÓиö×æÏÈ¡£ÈËÃÇ×ÜÏëÖªµÀ×Ô¼º´ÓÄÄÀ´£¬È»ºó²Å¿ÉÒÔ¹ÀÃþËãÒ»ÏÂ×Ô¼º½«È¥ÏòºÎ·½¡£ËùÒÔÔÛÒ²ÒªÁ˽âÒ»ÏÂ
LinuxµÄÊÀ½çÀïÈËÀàµÄÆðÔ´¡£
ͼ1£º´ÓÉϵ絽BIOS
°´ÏµçÔ´¿ª¹ØµÄÄǸöÕæʵµÄÈ˾ÍÊÇLinuxÊÀ½çÀïµÄÉϵۣ¬Ëû´´ÔìÁËLinuxÊÀ½çµÄÒ»ÇС£µ±Ëû°´Ï»úÏäÉϵĵçÔ´¿ª¹Øʱ£¬Ö÷°å¿ªÊ¼¹©µç£¬CPUÉϵÄ
Reset
Pin±»À¸ß£¬Õâ»áÒýÆðCPUµÄһϵÁж¯×÷£¬ÕâЩ¶¯×÷ÊÇоƬÉè¼Æʱ¾Í¾ö¶¨µÄ¡£CPUÖеÄһЩ¼Ä´æÆ÷±»ÖÃΪ¹Ì¶¨µÄÖµ£¬ÒòΪÕâЩ¼Ä´æÆ÷¿ÉÄÜÔÚÆô¶¯µÄ¹ý³ÌÖÐҪʹ
Ó㬱ÈÈçCS£¨´úÂë¶Î¼Ä´æÆ÷£©ºÍEIP£¨Ö¸ÕëÖ¸Áî¼Ä´æÆ÷£©¡£ÕâÒ»²½Íê³ÉÖ®ºó£¬CPU¾Í¿É¿ªÖ´ÐеØַΪ0xfffffff0ÀïµÄROMÖеijÌÐò¡£Õâ¶Î³ÌÐò¾Í
ÊÇBIOS(Basic Input Output System)¡£
BIOSÍê³ÉÏÂÃæµÄ¹¦ÄÜ£º
1.POST£¨Power-On Self Test£©£º¹ËÃû˼Ãû£¬¾ÍÊDzé²éÓÐʲôÉ豸£¬ÕâЩÉ豸ÊDz»ÊÇÕý³£¡£ÒªÊÇCPUÓÐAdvanced
Configuration and Power Interface(ACPI
)µÄÖ§³Ö£¬Ò²ÔÚÕâ¸öʱºò½øÐС£ACPIÊÇÓÃÀ´¶ÔµçÔ´½øÐйÜÀíµÄ£¬ÓÃÀ´½ÚµçÖ®ÀàµÄ¡£
2.³õʼ»¯É豸£ºÈ·±£Ã»ÓÐIRQºÍIO³åÍ»¡£
3.Ñ°ÕÒOS/Bootloader¡£ÕâÒ»²½ºóÃæµãÔÙϸ˵
ÎÒÃÇÔÚBIOSµÄÉèÖò˵¥ÀïÄܹ»ÉèÖôӺδ¦Æô¶¯£¬±ÈÈçÈíÅÌ£¬Ó²ÅÌ£¬¹âÇý…BIOS»á°´ÎÒÃÇÉ趨µÄ˳ÐòËÑË÷OS¡£
4.°ÑBootloader¸´ÖƵ½RAMÀµØַΪ0×00007c00£©£¬È»ºóÄǸöµØÖ·¿ªÊ¼Ö´ÐС£
ʲôÊÇBootloader
£¿
ÏÖÔÚ£¬ÎÒÃÇÖ»Òª¹ØÐĵÄÊÇ£ºbootloader
»áÕÒµ½OS
£¬°ÑOS
ÄÚºËCOPY
µ½RAM
ÖС£
ͼ2£ºboot loaderµÄ¼ÓÔØ
ÈçÉÏͼËùʾ£¬ÔÚÓ²Å̵ĵÚÒ»¸ösector£¬ÓÐÒ»¸ö·ÖÇø±í£¨¼Ç¼ÁËÄÄЩ·ÖÇøÉÏÓвÙ×÷ϵͳ£©ºÍÒ»¸öС°æµÄBootloader¡£µ±Õâ¸öBIOS±»ÉèÖÃΪ
´ÓÕâÀïÆô¶¯Ê±£¬Õâ¸öС°æµÄbootloader±»¸´ÖƵ½RAMµÄ0×00007c00¡£È»ºóËü»á°Ñ×Ô¼ºÓÖÒƶ¯µ½0×00096a00¡£ÔÚÕâÖ®ºó£¬ËüÔÙ°ÑÁí
Ò»¶ÎBootloader´ÓÓ²ÅÌÉϸ´ÖƵ½0×00096c00£¬È»ºó´ÓÄÇÀ↑ʼִÐС£·Ö×÷Á½¶ÎµÄÔÒòÊÇÒòΪÏÖÔÚµÄbootloaderÌ«´óÁË£¬ÔÚMBRÉÏ
´æ²»ÍêÄÇô¶à¡£
Bootloader»á°ÑOSµÄÄÚºËÓ³Ïñ¸´ÖƵ½RAMÖС£
BootloaderµÄ¹¤×÷
1. µ÷ÓÃBIOSÒÔÏÔʾ“Loading Image”µÄÏûÏ¢¡£
2. µ÷ÓÃBIOS£¬°ÑÄÚºËÓ³ÏñµÄÇ°512×Ö½Ú¸´ÖƵ½0×00090000£¬setup()º¯ÊýÔÚ0×00090200¡£
3. µ÷ÓÃBIOS£¬°ÑʣϵÄÄÚºËÓ³Ïñ¼ÓÔص½0×00010000£¨Ð¡ÄÚºËzImage£©»ò0×00100000£¨´óÄÚºËbzImage£©
4. Ìøµ½
Ïà¹ØÎĵµ£º
¸ãÁËÈýÌìµÄOpenCVÖÕÓÚ°ÑÕâ¸öÀà¿â¼ÓÉÏÈ¥ÁË¡£Ô±¾ÊÇʹÓÃRed Hat Linux 9£¬µ«ÊÇÇ¿ÁÒ²»ÍƼö£¬ÒòΪ»ù±¾ÉϺܶàºÜ¶àµÄÈí¼þ¶¼ÒªÖØÐÂÉý¼¶¸üС£gcc±ØÐëÉý¼¶µ½4.x£¬ÔògmpºÍmpfrÒ²Òª¸üУ¬makeÒ²Òªµ½3.8°æ±¾£¬²¢ÇÒglibcÒ²±ØÐëÔÚ2.6°æ±¾¡£±àÒëgccʵÔÚÊÇÌ«Í´¿àÁË£¬ÎÞ±ÈÎޱȵÄÍ´¿à£¬ºÄʱ3¸ö¶àhours£¬»¹ÊÇÀ´Á˸öerror£¨glibc±ØÐëÉý¼¶£©¡£±à ......
1.Ubuntu
ËüµÄÒâ˼ÿһλGeekÓ¦¸Ã¶¼ÖªµÀ£¬ÕâÊÇÒ»¸ö¹Å·ÇÖÞÓïµ¥´Ê£¬´ú±í“ÈËÐÔ”»òÕß“ÎҵĴæÔÚÊÇÒòΪ´ó¼ÒµÄ´æÔÚ”¡£
2.PCLinuxOS
PC + Linux + Operating System£¬Óû§½çÃæºÜÏñWindows¡£
3.openSUSE
ÊÇNovellºÍAMD×ÊÖúµÄSUSEÉçÇøÏîÄ¿£¬SUSEÈ¡µÂÓïµ¥´ÊÊ××Öĸ“Software- und System-Entwicklun ......
PCIÊÇÍâΧÉ豸»¥ÁªµÄ¼ò³Æ(Peripheral Component
Interconnect)µÄ¼ò³Æ£¬×÷ΪһÖÖͨÓõÄ×ÜÏß½Ó¿Ú±ê×¼£¬ËûÔÚ¼ÆËã»úϵͳÖеõ½Á˹㷺µÄʹÓá£PCIµÄËÙ¶ÈÄܹ»´ïµ½132M/s¡£ÔÚÕâÀï¼òµ¥µÄ½é
ÉÜһϠlinux ÏÂPCIÇý¶¯µÄʵÏÖ¡£
ÔÚ±àдһ¸öPCIÇý¶¯µÄʱºòÎÒÃÇÏȵÃÈ·¶¨ÏµÍ³ÖÐÊÇ·ñÓÐÎÒÃǵÄÉ豸¡£ÎÒÃÇ¿ÉÒÔͨ¹ýlspci
²é¿´PCIÉ豸¡£
[roo ......
×î½ü¸Ð½Ó´¥perl£¬¸Ð¾õºÜ²»´í£¬´¦ÀíÎı¾·Ç³£·½±ã¡£Ç°½×¶ÎÓÃcȥͳ¼ÆһЩÎı¾£¬ÀÛµÄÒªËÀ£¬¶øÇÒ³ÌÐòÖл¹¾³£³öbug£»¶øÓÃperlÔò²»Í¬£¬Ëü±ÜÃâµÄ¸´ÔÓµÄÊý¾Ý½á¹¹£¬ÕâÑù³ö´íµÄ¸ÅÂʾͺÜСÁË£¬¶øÇÒ±àд´úÂë¶ÌС¾«º·¡£Ç°Á½Ì콫perlÄõ½linuxÉÏÔËÐУ¬ËäÈ»Ìí¼ÓÁË#!/usr/local/bin/perl£¬µ«»¹ÊÇÌáʾÕÒ²»µ½½âÊÍÆ÷£ºbad interpreter¡£ÓôÃÆѽ¡ ......
linux UART´®¿ÚÇý¶¯¿ª·¢Îĵµ
ʱ¼ä:2010-01-09 14:24:55À´Ô´:ÍøÂç ×÷Õß:δ֪ µã»÷:482´Î
ÄÚÈݼò½é: ½éÉÜÁËLinuxϵĴ®¿ÚÇý¶¯µÄÉè¼Æ²ã´Î¼°½Ó¿Ú, ²¢Ö¸³ö´®¿ÚÓëTTYÖÕ¶ËÖ®¼äµÄ¹ØÁª²ã´Î(´®¿Ú¿É×÷TTYÖÕ¶ËʹÓÃ), ÒÔ¼°LinuxϵÄÖжϴ¦Àí»úÖÆ/ÖжϹ²Ïí»úÖÆ, »¹Óд®¿Ú»º³å»úÖƵ±ÖÐÉæ¼°µÄÈíÖжϻúÖÆ; ÆäÖ ......