ARM Linux¸ùÎļþϵͳ£¨Root Filesystem£©µÄÖÆ×÷
ARM Linux¸ùÎļþϵͳ£¨Root Filesystem£©µÄÖÆ×÷
2008Äê01ÔÂ06ÈÕ ÐÇÆÚÈÕ 22:28
http://xianzilu.spaces.live.com/blog/fakehandlerpage.aspx?wa=wsignin1.0
http://xianzilu.spaces.live.com/blog/cns!4201FDC93932DDAF!290.entry
¹ØÓÚ¸ùÎļþϵͳµÄÖÆ×÷£¬ÍøÂçÉÏÓкܶàÎÄÕ£¬´ó¶àÊý¶¼Ö»½²µ½½¨¼¸¸öĿ¼£¬È»ºóÓÃBusybox×ö¸öShell£¬Óкܶà¹Ø¼üµÄ¶«Î÷ûÓÐ˵¡£¾¹ýºÜ³¤Ê±¼äµÄÃþÅÀ¹ö´ò£¬ÎÒÖÕÓÚÄܹ»°×ÊÖÆð¼Ò½¨Á¢Ò»¸ö¸ùÎļþϵͳÁË¡£ÆäʵÎÒÒ²²»¶®µÃÔÀí£¬Ö»ÊǸæËß´ó¼ÒÎÒµÄ×÷·¨£¬ÆäÖÐÒ²²»ÃâÓдíÎ󣬻¶Ó´ó¼ÒÖ¸Õý¡£
Ê×ÏȽéÉܸùÎļþϵͳµÄ×é³É£ºÄ¿Â¼¡¢Shell¡¢¿â¡¢½Å±¾£¬Ò»¸ö¸öÀ´¡£
Ŀ¼
¸ùÎļþϵͳҪ°üº¬ÕâЩ±ØÐëÓеÄĿ¼£º/dev¡¢/bin¡¢/usr¡¢/sbin¡¢/lib¡¢/etc¡¢/proc¡¢/sys
/devÊÇdevfs£¨É豸Îļþϵͳ£©»òÕßudevµÄ¹ÒÔÚµãËùÔÚ¡£ÔÚʹÓÃdevfsµÄÄÚºËÀïÈç¹ûûÓÐ/dev£¬¸ù±¾¼û²»µ½ShellÆô¶¯µÄÐÅÏ¢£¬ÒòΪÄÚºËÕÒ²»µ½/dev/console£»ÔÚʹÓÃudevµÄϵͳÀҲÊÂÏÈÐèÒªÔÚ/devϽ¨Á¢consoleºÍnullÕâÁ½¸ö½Úµã¡£¹ØÓÚdevfsºÍudevµÄÇø±ð£¬ÍøÉϺܶàÎÄÕÂ˵¡£µ±È»Èç¹ûÄãµÄÄÚºËÒѾ²»Ö§³ÖdevfsÁË£¨2.6.12ÒԺ󣩣¬¿ÉÒÔʹÓô¿´¿µÄ¾²Ì¬½Úµã¡£Ò²¾ÍÊÇÓÃmknodÈ˹¤Éú³É¡£
/bin¡¢/usr/bin¡¢/usr/sbin¡¢/sbinÊDZàÒëBusyboxÕâ¸öShellʱºò¾ÍÓеģ¬ÓÃÓÚ´æ·Å¶þ½øÖÆ¿ÉÖ´ÐÐÎļþ£¬¾Í²»¶à½âÊÍÁË¡£
/libÓÃÓÚ´æ·Å¶¯Ì¬Á´½Ó¿â¡£ÍøÉϺܶàÎÄÕ¶¼Ëµ¾²Ì¬±àÒëBusybox£¬¿ÉÒÔÊ¡È¥½¨¿âµÄÂé·³¹ý³Ì¡£ÕâÑù×öÖ»ÄÜÈÃBusyboxÆô¶¯£¬ÎÒÃÇ×Ô¼ºÐ´µÄ£¬»òÕßÊDZàÒëµÄÈí¼þ°ü»¹ÊÇÐèÒª¶¯Ì¬¿âµÄ¡£³ý·ÇÈ«²¿¾²Ì¬±àÒ룬Äã¿ÉÒÔÊÔÊÔ£¬Ò»¸öHello world¾ÍÒª¼¸°Ùk¡£¹ØÓÚ¿âµÄÄÚÈݺóÃæ×Ðϸ˵¡£
/etcÊÇÓÃÀ´´æ·Å³õʼ»¯½Å±¾ºÍÆäËûÅäÖÃÎļþµÄ¡£¹ØÓÚ³õʼ»¯½Å±¾µÄÄÚÈݺóÃæ×Ðϸ˵¡£
/procÊÇÓÃÀ´¹ÒÔØ´æ·ÅϵͳÐÅÏ¢ÐéÄâÎļþϵͳ——“procÎļþϵͳ”£¬“procÎļþϵͳ”ÔÚÄÚºËÀïÃæ¿ÉÒÔÑ¡¡£Èç¹ûûÓГprocÎļþϵͳ”£¬ºÜ¶àShell×Ô¼ºµÄÃüÁî¾ÍûÓа취ÔËÐУ¬±ÈÈçifconfig¡£“procÎļþϵͳ”²»Ïñdevfs¿ÉÒÔ×Ô¶¯¹ÒÔØ£¬ËüÐèҪʹÓóõʼ»¯½Å±¾¹ÒÔØ¡£ÁíÍ⣬udevÒ²ÐèÒª“procÎļþϵͳ”µÄÖ§³Ö¡£
/sysÓÃÓÚ¹ÒÔØ“sysfsÎļþϵͳ”£¬“sysfsÎļþϵͳ”ÔÚÄÚºËÀïÃæ¿ÉÒÔÑ¡¡£Ä¿Ç°ÎÒÈÏΪËü¾ÍÊǸøudevÌṩ֧³ÖµÄ£¬ºÇºÇ¡£“sysfsÎļþϵͳ”Ò²ÐèҪʹÓóõʼ»¯½Å±¾¹ÒÔØ¡£
ÁíÍ⻹¿ÉÒÔÓÐ/tmp¡¢/mnt¡¢/swp¡¢/varÕâÑùµÄ²»ÊÇǶÈëʽϵͳ±ØÐëµÄĿ¼£¬ÔÚ˵ÍêShellµÄÖÆ×÷Ö®ºó£¬ÎÒ
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
¸ßÊÖ½ø½× LinuxϵͳÏÂMTD/CFIÇý¶¯½éÉÜ
2007-06-16 04:00×÷Õߣº³ö´¦£ºÂÛ̳ÕûÀíÔðÈα༣ºÔÒ°
¡¡¡¡Ä³Ð©IntelµÄFLASHоƬ£¨ÈçStrataFlashϵÁУ©Ö§³Ö¶à·ÖÇø£¬Ò²¾ÍÊǸ÷¸ö·ÖÇø¿ÉÒÔͬʱ½øÐвÙ×÷¡£Ó¦¸Ã˵ÕâÊDz»´íµÄÌØÐÔ£¬µ«ÊÇÒ²»á´øÀ´Ð©ÎÊÌâ¡£¼ÇµÃµ±³õÒÆÖ²Linux-2.4.21£¬¹ÒJFFS2ÎļþϵͳµÄʱºò£¬¾³£»á±¨Ò»Ð©"Magic bitm ......
Èý¡¢makeÊÇÈçºÎ¹¤×÷µÄ
ÔÚĬÈϵķ½Ê½Ï£¬Ò²¾ÍÊÇÎÒÃÇÖ»ÊäÈëmakeÃüÁî¡£ÄÇô£¬
1¡¢make»áÔÚµ±Ç°Ä¿Â¼ÏÂÕÒÃû×ֽГMakefile”»ò“makefile”µÄÎļþ¡£
2¡¢Èç¹ûÕÒµ½£¬Ëü»áÕÒÎļþÖеĵÚÒ»¸öÄ¿±êÎļþ£¨target£©£¬ÔÚÉÏÃæµÄÀý×ÓÖУ¬Ëû»áÕÒµ½“edit”Õâ¸öÎļþ£¬²¢°ÑÕâ¸öÎļþ×÷Ϊ×îÖÕµÄÄ¿±êÎļþ ......
ÔÚfcdµÄÏîÄ¿ÖУ¬Ê¹ÓÃvim×÷Ϊide¡£ÄÇôcscope¿ÉÒÔ°ïÖúvimÀ©Õ¹ÀàËÆÓÚº¯Êý¡¢¶ÔÏóµÄ²éÕÒ¡¢½»²æÒýÓòéѯµÈ¹¦ÄÜ¡£
ÃüÁîÐÐΪ£º
cscope -Rbkq
Éú³Éµ±Ç°Ä¿Â¼ÏÂcscope.outÎļþÐÅÏ¢£¬±£´æ׎»²æÒýÓõÄÐÅÏ¢¡£
vimÖУ¬cscoupʹÓãº
cs add cscope.out
È»ºó²éÕÒ£º
cs find s Òª²éÕÒµÄÃû³Æ
ÆäÖÐs´¦¿ÉÒÔÊÇ£º
......
linuxÖÐselect()º¯Êý·ÖÎö
SelectÔÚSocket±à³ÌÖл¹ÊDZȽÏÖØÒªµÄ£¬¿ÉÊǶÔÓÚ³õѧSocketµÄÈËÀ´Ëµ¶¼²»Ì«°®ÓÃSelectд³ÌÐò£¬ËûÃÇÖ»ÊÇÏ°¹ßдÖîÈçconnect¡¢accept¡¢recv»òrecvfromÕâÑùµÄ×èÈû³ÌÐò£¨Ëùν×èÈû·½Ê½block£¬¹ËÃû˼Ò壬¾ÍÊǽø³Ì»òÊÇÏß³ÌÖ´Ðе½ÕâЩº¯Êýʱ±ØÐëµÈ´ýij¸öʼþµÄ·¢Éú£¬Èç¹ûʼþûÓз¢Éú£¬½ø³Ì»òÏ߳̾ͱ»×èÈû£¬º ......