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

Linux²Ù×÷ϵͳÆô¶¯Á÷³ÌÓëGrubµÄÅäÖ÷½·¨

 ×÷Õߣºsixth
Ò»¡¢LinuxµÄÆô¶¯Á÷³Ì
 
1. ´ÓBIOSµ½KERNEL
BIOS×Լ죭>MBR(GRUB)£­>KERNEL£­>KERNEL×Ô½âѹ£­>Äں˳õʼ»¯£­>ÄÚºËÆô¶¯
2. ÄÚºËÆô¶¯£º´´½¨1££½ø³Ì²¢Ö´ÐУ¬ÓÉËü´´½¨Èô¸ÉÄÚºËỊ̈߳¨kernel thread£©£¬È»ºó×°Èë²¢Ö´ÐгÌÐò/sbin/init£¨±ä³ÉÒ»¸öÓû§½ø³Ì£©¡£´Ëºó£¬init¸ù¾Ý/etc/inittabÅäÖÃÎļþÀ´Ö´ÐÐÏàÓ¦µÄ½Å±¾½øÐÐϵͳ³õʼ»¯£¬ÈçÉèÖüüÅÌ¡¢×ÖÌ壬װÔØÄ£¿é£¬ÉèÖÃÍøÂçµÈ¡£
 
¶ÔÓÚRedhatÀ´Ëµ£¬Ö´ÐеÄ˳ÐòΪ£º
/etc/rc.d/rc.sysinit # ÓÉinitÖ´ÐеĵÚÒ»½Å±¾
/etc/rc.d/rc $RUNLEVEL # initÖ´ÐÐÖ¸¶¨ÔËÐ춱ð£¨$RUNLEVELΪȱʡµÄÔËÐÐģʽ£©µÄ¸÷½Å±¾£»
/etc/rc.d/rc.local #ÔËÐÐģʽ2¡¢3¡¢5ʱ»áÔËÐеĽű¾
/sbin/mingetty£¨»ògetty£© # µÈ´ýÓû§µÇ¼
 
/etc/inittabÖÐÖ¸¶¨ÁËϵͳµÄÔËÐ춱ð£¨RUNLEVEL£©£¬init¸ù¾ÝÔËÐ춱ðÆô¶¯Ïà¹ØµÄ·þÎñ£¨Ò»Ð©ºǫ́½ø³Ì£©£¬ÊµÏÖ²»Í¬µÄ¹¦ÄÜ¡£
 
RUNLEVELֵΪ:0£­6
 
0£ºhalt£¬ 1£ºµ¥Óû§£¬2£º¶àÓû§£¬3£º¶àÓû§²¢Æô¶¯NFS·þÎñ
4£º±£Áô£¬5£ºÔËÐÐxdm£¨X window£©ÒÔͼÐνçÃ淽ʽµÇ¼
6£ºreboot
 
3./etc/inittabÎļþ
 
/etc/inittabµÄÎļþÄÚÈÝÈçÏ£º
 
# É趨ϵͳ¿ª»úÔ¤ÉèµÄRUNLEVEL£º
id:3:initdefault:
 
# ¿ªÊ¼½øÐÐRUNLEVELµÄ·þÎñÆô¶¯Ç°£¬Ê¹ÓÃÀ´Õì²âÓë³õʼ»¯ÏµÍ³»·¾³µÄÉ趨Îļþ£º
si::sysinit:/etc/rc.d/rc.sysinit
 
# 7 ¸ö²»Í¬ run level µÄ£¬ÐèÒªÆô¶¯µÄ·þÎñµÄ scripts ·ÅÖ÷¾¶£º
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
 
# ÊÇ·ñÔÊÐí°´Ï [ctrl]+[alt]+[del] ¾ÍÖØпª»úµÄÉ趨ÏîÄ¿£º
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
 
# ±¾»ú¶ËÖն˻úÆô¶¯µÄ¸öÊý£º
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
 
# ÔÚ X Window (RUNLEVEL 5) »·¾³ÏµÄÆô¶¯ script É趨ÏîÄ¿£º
 
x:5:once:/etc/X11/prefdm -nodaemon
 
Õâ¸öÎļþµÄÓï·¨ÊÇÕâÑùµÄ£º
 
±êʶ·û£º¼¶±ð£ºinit µÄ¶¯×÷ÐÐΪ:Ö¸ÁîÏî


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

LinuxÍø¹Ü±Ê¼Ç£¨£±£µ£©£ºÓëLinuxÏà¹ØµÄ½Ó¿Ú²âÊÔ

  ΪÁËÍ»³ö½²½âµÄ·½±ãÐÔ£¬ÎÒ°ÑÒÔÇ°¹¤×÷ÖÐÕä²ØµÄһЩʵÑé¹ý³Ì¹±Ï׸ø´ó¼Ò¡££¨Î´¾­ÔÊÐí£¬ÇëÎðתÔØ£© Ò»£®ÊµÑéÄ¿µÄ 1. Á˽âLinux²Ù×÷ϵͳµÄÆô¶¯ÓëµÇ¼·½·¨ 2. ÕÆÎÕ³£ÓÃRed Hat LinuxÃüÁîµÄʹÓ÷½·¨£¬ÕÆÎÕͼÐÎÓû§½çÃæϵĻù±¾²Ù×÷ 3. Á˽âLinuxÃüÁîÖвÎÊýÑ¡ÏîµÄÓ÷¨ºÍ×÷Óà 4. ÊìϤ²Ù×÷ϵͳµÄÃüÁî½Ó¿Ú¡¢Í¼ÐÎ ......

linuxÈëÃÅ×ܽá

ϵͳ±ÀÀ£ÁËÒ»´Î£¬ºÜ¶àÎļþ¶¼¶ªÁË£¬ÐҺöªµÄÎļþ²»ÊǺÜÖØÒª¡£µÃÁËÕâ´Î½Ìѵ£¬ÒÔºóÒ»¶¨ÒªÇÚд²©¿Í£¬ÎÞÂÛ¶«Î÷¶àô¼¦Ã«ËâƤ£¬Ò»µ©ÄãÓùýÁËÈ»ºóÍü¼ÇÁËÈ»ºóijһÌìÓÖÐèÒªÓõÄʱºò£¬ÏëÆðÀ´×Ô¼ºÔø¾­»á¹ý¶øÏÖÔÚºÍÐÂÊÖÎÞÒ죬ÄÇÖÖÐÄÇé±ðÌáÓжàÓôÃÆÁË¡£
Õýʽתµ½linuxÓÐÁ½¸ö¶àÔÂÁË£¬ÓÃlinuxµÄÔ­Òò³ýÁËÃâ·ÑÒÔÍ⣬×îÖØÒªµÄ¾ÍÊÇlinuxÖÐÓÐÌ«¶ ......

linuxºê¶¨Òårequest_mem_region()

 
»ùÓÚI/O RegionµÄ²Ù×÷º¯Êý__XXX_region()£¬LinuxÔÚÍ·Îļþinclude/linux/ioport.hÖж¨ÒåÁËÈý¸ö¶ÔI/OÄÚ´æ×ÊÔ´½øÐвÙ×÷µÄºê£º
¡¡¡¡¢Ùrequest_mem_region()ºê£¬ÇëÇó·ÖÅäÖ¸¶¨µÄI/OÄÚ´æ×ÊÔ´¡£
¡¡¡¡¢Úcheck_ mem_region()ºê£¬¼ì²éÖ¸¶¨µÄI/OÄÚ´æ×ÊÔ´ÊÇ·ñÒѱ»Õ¼Óá£
¡¡¡¡¢Ûrelease_ mem_region()ºê£¬ÊÍ·ÅÖ¸¶¨µÄI/OÄÚ´æ×ÊÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ