ÅäÖÃlinuxÄÚºËdzÎö
Ëæ×Å Linux ²Ù×÷ϵͳµÄ¹ã·ºÓ¦Óã¬ÌرðÊÇ Linux ÔÚǶÈëʽÁìÓòµÄ·¢Õ¹£¬Ô½À´Ô½¶àµÄÈË¿ªÊ¼Í¶Éíµ½ Linux Äں˼¶µÄ¿ª·¢ÖС£Ãæ¶ÔÈÕÒæÅÓ´óµÄ Linux ÄÚºËÔ´´úÂ룬¿ª·¢ÕßÔÚÍê³É×Ô¼ºµÄÄں˴úÂëºó£¬¶¼½«ÃæÁÙ×ÅͬÑùµÄÎÊÌ⣬¼´ÈçºÎ½«Ô´´úÂëÈÚÈëµ½ Linux ÄÚºËÖУ¬Ôö¼ÓÏàÓ¦µÄ Linux ÅäÖÃÑ¡Ï²¢×îÖÕ±»±àÒë½ø Linux Äںˡ£Õâ¾ÍÐèÒªÁ˽â Linux µÄÄÚºËÅäÖÃϵͳ¡£
ÖÚËùÖÜÖª£¬Linux ÄÚºËÊÇÓÉ·Ö²¼ÔÚÈ«ÇòµÄ Linux °®ºÃÕß¹²Í¬¿ª·¢µÄ£¬Linux ÄÚºËÿÌ춼ÃæÁÙ×ÅÐí¶àеı仯¡£µ«ÊÇ£¬Linux Äں˵Ä×éÖ¯²¢Ã»ÓгöÏÖ»ìÂÒµÄÏÖÏ󣬷´¶øÏԵ÷dz£µÄ¼ò½à£¬¶øÇÒ¾ßÓкܺõÄÀ©Õ¹ÐÔ£¬¿ª·¢ÈËÔ±¿ÉÒԺܷ½±ãµÄÏò Linux ÄÚºËÖÐÔö¼ÓеÄÄÚÈÝ¡£ÔÒòÖ®Ò»¾ÍÊÇ Linux ²ÉÓÃÁËÄ£¿é»¯µÄÄÚºËÅäÖÃϵͳ£¬´Ó¶ø±£Ö¤ÁËÄں˵ÄÀ©Õ¹ÐÔ¡£
±¾ÎÄÊ×ÏÈ·ÖÎöÁË Linux ÄÚºËÖеÄÅäÖÃϵͳ½á¹¹£¬È»ºó£¬½âÊÍÁË Makefile ºÍÅäÖÃÎļþµÄ¸ñʽÒÔ¼°ÅäÖÃÓï¾äµÄº¬Ò壬×îºó£¬Í¨¹ýÒ»¸ö¼òµ¥µÄÀý×Ó--TEST Driver£¬¾ßÌå˵Ã÷ÈçºÎ½«×ÔÐпª·¢µÄ´úÂë¼ÓÈëµ½ Linux ÄÚºËÖС£ÔÚÏÂÃæµÄÎÄÕÂÖУ¬²»¿ÉÄܽâÊÍËùÓеŦÄܺÍÃüÁֻ¶ÔÄÇЩ³£ÓõĽøÐнâÊÍ£¬ÖÁÓÚÄÇЩûÓÐÌÖÂÛµ½µÄ£¬Çë¶ÁÕ߲ο¼ºóÃæµÄ²Î¿¼ÎÄÏס£
1£® ÅäÖÃϵͳµÄ»ù±¾½á¹¹
LinuxÄں˵ÄÅäÖÃϵͳÓÉÈý¸ö²¿·Ö×é³É£¬·Ö±ðÊÇ£º
Makefile£º·Ö²¼ÔÚ Linux ÄÚºËÔ´´úÂëÖÐµÄ Makefile£¬¶¨Òå Linux Äں˵ıàÒë¹æÔò£»
ÅäÖÃÎļþ£¨config.in£©£º¸øÓû§ÌṩÅäÖÃÑ¡ÔñµÄ¹¦ÄÜ£»
ÅäÖù¤¾ß£º°üÀ¨ÅäÖÃÃüÁî½âÊÍÆ÷£¨¶ÔÅäÖýű¾ÖÐʹÓõÄÅäÖÃÃüÁî½øÐнâÊÍ£©ºÍÅäÖÃÓû§½çÃ棨Ìṩ»ùÓÚ×Ö·û½çÃæ¡¢»ùÓÚ Ncurses ͼÐνçÃæÒÔ¼°»ùÓÚ Xwindows ͼÐνçÃæµÄÓû§ÅäÖýçÃ棬¸÷×Ô¶ÔÓ¦ÓÚ Make config¡¢Make menuconfig ºÍ make xconfig£©¡£
ÕâЩÅäÖù¤¾ß¶¼ÊÇʹÓýű¾ÓïÑÔ£¬Èç Tcl/TK¡¢Perl ±àдµÄ£¨Ò²°üº¬Ò»Ð©Óà C ±àдµÄ´úÂ룩¡£±¾ÎIJ¢²»ÊǶÔÅäÖÃϵͳ±¾Éí½øÐзÖÎö£¬¶øÊǽéÉÜÈçºÎʹÓÃÅäÖÃϵͳ¡£ËùÒÔ£¬³ý·ÇÊÇÅäÖÃϵͳµÄά»¤Õߣ¬Ò»°ãµÄÄں˿ª·¢ÕßÎÞÐëÁ˽âËüÃǵÄÔÀí£¬Ö»ÐèÒªÖªµÀÈçºÎ±àд Makefile ºÍÅäÖÃÎļþ¾Í¿ÉÒÔ¡£ËùÒÔ£¬ÔÚ±¾ÎÄÖУ¬ÎÒÃÇÖ»¶Ô Makefile ºÍÅäÖÃÎļþ½øÐÐÌÖÂÛ¡£ÁíÍ⣬·²ÊÇÉæ¼°µ½Óë¾ßÌå CPU Ìåϵ½á¹¹Ïà¹ØµÄÄÚÈÝ£¬ÎÒÃǶ¼ÒÔ ARM ΪÀý£¬ÕâÑù²»½ö¿ÉÒÔ½«ÌÖÂÛµÄÎÊÌâÃ÷È·»¯£¬¶øÇÒ¶ÔÄÚÈݱ¾Éí²»²úÉúÓ°Ïì¡£
»ØÒ³Ê×
2£® Makefile
2.1 Makefile ¸ÅÊö
Makefile µÄ×÷ÓÃÊǸù¾ÝÅäÖõÄÇé¿ö£¬¹¹Ôì³öÐèÒª±àÒëµÄÔ´ÎļþÁÐ±í£¬È»ºó·Ö±ð±àÒ룬²¢°ÑÄ¿±ê´úÂëÁ´½Óµ½Ò»Æð£¬×îÖÕÐÎ³É Linux Äں˶þ½øÖÆÎļþ¡£
ÓÉÓÚ Linux ÄÚºËÔ´´úÂëÊÇ°´ÕÕÊ÷Ðνṹ×
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
µÚËĽ² Ŀ¼ £¨video07,08,09,10£© Ç¿ÖÆλÓëðÏÕλ£ºÕë¶Ôu,g,o·Ö±ðÓÐset uid,set gid,¼°sticky¡£
set uid: chmod u+s DirName
set gid: chmod g+s DirName
sticky: chmod o+t DirName
ÀýÈç:ls –l /bin/ping ʹÓÃÁËset uid,±£Ö¤ÈκÎÓû§Ö´ÐÐpingÃüÁîʱ¶¼ÊÇÒÔrootÓû§Éí·Ý. ......
ÔÚlinux ÖУ¬ÊäÈëviʱºò£¬Æäʵ¾ÍÊÇÔÚµ÷ÓÃvimÁË;
ubuntuÖУ¬vi´ò¿ªÒ»¸öº¬ÖÐÎĵÄÎļþ£¬Èç.fcitx/configÎļþ£¬Ä¬ÈÏÏÔʾÂÒÂ룬½â¾ö·½·¨£º
1)¶ÔËùÓÐÓû§¶¼ÓÐЧ,½â¾öϵͳÖÐËùÓÃÓû§µÄviÖÐÎÄÂÒÂëÎÊÌâ
sudo /etc/vim/vimrc.tiny »ò/etc/vimrc
¼ÓÈëÈçÏÂÄÚÈÝ£º
#Ìṩһ¸öʵ¼ùÖо ......
ʲôÊÇ yum£¿
yum ÊÇ yellowdog updater modified µÄËõд¡£yellowdog ÊÇÒ»¸ö Linux µÄ distribution£¬RH ½«ÕâÖÖÉý¼¶¼¼ÊõÀûÓõ½×Ô¼ºµÄ distribution ÐγÉÁËÏÖÔÚµÄ yum£¬¸Ð¾õÉÏ yum ºÍ apt µÄÔÀíÀàËÆ£¬µ«ÊÇ apt ÊDZàÒë´úÂ룬ִÐÐЧÂÊÔ¶¸ßÓÚʹÓà python д³ÉµÄ yum¡£ÕâÊÇ yum µÄÖ÷Ò³¡£
yum µÄÀíÄîÊÇʹÓÃÒ»¸öÖÐÐÄ²Ö ......
Óà GDB µ÷ÊÔ³ÌÐò
GDB ¸ÅÊö
————
GDB ÊÇ GNU ¿ªÔ´×éÖ¯·¢²¼µÄÒ»¸öÇ¿´óµÄ UNIX ϵijÌÐòµ÷ÊÔ¹¤¾ß¡£»òÐí£¬¸÷λ±È½Ïϲ»¶ÄÇÖÖͼÐνçÃ淽ʽµÄ£¬Ïñ VC ¡¢ BCB µÈ IDE µÄµ÷ÊÔ£¬µ«Èç¹ûÄãÊÇÔÚ UNIX ƽ̨ÏÂ×öÈí¼þ£¬Äã»á·¢ÏÖ GDB Õâ¸öµ÷ÊÔ¹¤¾ßÓÐ±È VC ¡¢ BCB µÄͼÐλ¯µ÷ÊÔÆ÷¸üÇ¿´óµÄ¹¦ÄÜ¡£Ëùν ¡° ......