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

ǶÈëʽlinuxÉÕд(¶þ)—LinuxÄں˵IJüôºÍ±àÒë

Ò»¡¢Äں˵ĻñµÃ
¿ÉÒÔ´ÓÍøÉÏÏÂÔØÄÚºËÎļþ£¬http://www.kernel.org¡£Èç¹ûÊÇΪÁËÁ·Ï°£¬¾¡Á¿ÏÂÔØ£².4.xµÄÄںˡ£ÒòΪ2.6.xµÄÄں˱Ƚϴ󣬵±È»±àÒëÒ²ÐèÒª¸ü¶¼µÄʱ¼ä¡£
 
¶þ¡¢Äں˵ıàÒë
LinuxÄں˵ıàÒë²Ëµ¥Ö÷ÒªÓÐÈý¸ö°æ±¾£º
£±£©make config£º½øÈëÃüÁîÐУ¬¿ÉÒÔÒ»ÐÐÒ»ÐеÄÅäÖá£
£²£©make menuconfig£º¿ª·¢ÈËÔ±±È½ÏÊìϤµÄmenuconfig²Ëµ¥¡£
£³£©make xconfig£ºÔÚ2.4.XÒÔ¼°ÒÔÇ°°æ±¾ÖÐxconfig²Ëµ¥ÊÇ»ùÓÚTCL/TKµÄͼÐοâµÄ£®
 
ÎÒÃDzÉÓÃmenuconfig²Ëµ¥
±àÒëÄÚºËÐèÒªrootȨÏÞ£¬ÒÔϲÙ×÷¶¼¼Ù¶¨ÄãÊÇrootÓû§.ÏÈÔÚ¸ùĿ¼Ï½¨Á¢ÃûΪARM2410µÄĿ¼£®È»ºó¡¡
°ÑÄãÐèÒªÉý¼¶µÄÄں˿½µ½/usr/src/Ï£¨ÏÂÎÄÖÐÒÔ2.4.18µÄÄں˵Älinux-2.4.18.tar.gzΪÀý£©£¬ÃüÁîΪ
¡¡ #cp linux-2.4.18.tar.gz /usr/src
È»ºó½âѹ¸ÃÎļþ£¬ÃüÁîΪ£º
¡¡ #tar -zxvf linux-2.4.18.tar.gz
 
¡¡¡¡Èç¹ûÄãËùÏÂÔصÄÊÇ.bz2Îļþ£¬ÀýÈçlinux-2.4.0test8.tar.bz2£¬ÇëʹÓÃÏÂÃæµÄÃüÁî
¡¡¡¡#bzip2 -d linux-2.4.18.tar.bz2
¡¡¡¡#tar -xvf   linux-2.4.18.tar
 
ÏÂÃæÎÒÃÇ¿ªÊ¼±àÒ룺
µÚÒ»²½£ºÔÚÖÕ¶ËϽøÈëÄÚºËËùÔÚĿ¼ "/arm2410";
µÚ¶þ²½£º¼üÈëmake menuconfig,½øÈëÄÚºËÅäÖò˵¥£¬ÈçÏÂͼ£º
×¢Ò⣺
£±£©´øÓУ¢£­£­£¾£¢±íʾ¸ÃÑ¡Ïî°üº¬Ñ¡Ï
£²£©Ã¿¸öÑ¡ÏîÇ°ÃæÓÐ[ ]»ò< >£¬ÖÐÀ¨ºÅ±íʾ½öÓУ²ÖÖÑ¡Ôñ£¨*»ò¿Õ£©£¬¼âÀ¨ºÅ±íʾÓУ³ÖÖÑ¡Ôñ£¨M,*»ò¿Õ£©£¬°´¿Õ¸ñ¼ü¿ÉÏÔʾÕ⼸¸öÑ¡Ôñ£»
£³£©M±íʾÒÔÄ£¿é·½Ê½±àÒë½øÄںˣ¬ÔÚÄÚºËÆô¶¯ºó£¬ÐèÒªÊÖ¹¤Ö´ÐÐinsmodÃüÁî²ÅÄÜʹÓøÃÏîÇý¶¯£»*±íʾֱ½Ó±àÒë½øÄںˣ»¿Õ±íʾ²»±àÒë½øÄںˣ»
µÚÈý²½£º°´×Å×Ô¼ºµÄÐèÇó£¬ÅäÖÃÄںˣ®Ò»¹²ÓУ²£±Ï
µÚËIJ½£º¼üÈëmake cleanÃüÁɾ³ýÒÑÉú³ÉµÄÄ£¿éºÍÄ¿±êÎļþ£®
µÚÎå²½£º¼üÈëmake depÃüÁ±àÒë±äÁ¿ÒÀÀµ¹ØϵµÈ£»
µÚÁù²½£º¼üÈëmake zlmageÉú³É¾­Ñ¹ËõÒÔºóµÄÄÚºËÓ³ÏñÎļþzlmage;
µÚÆß²½£º¼üÈëmake modules±àÒëÄ£¿é£»
µÚ°Ë²½£º¼üÈëmake modules_install°²×°±àÒëÍê³ÉµÄÄ£¿é£»
ÄÚºËÓ³ÏñÎļþzlmage´æ·ÅÔÚ ./arch/arm/boot/Ŀ¼Ï£®


Ïà¹ØÎĵµ£º

ʵս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 Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

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

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

LinuxÏÂc¿ª·¢ Ö® Ïß³ÌͨÐÅ

1.Linux“Ï߳̔
     ½ø³ÌÓëÏß³ÌÖ®¼äÊÇÓÐÇø±ðµÄ£¬²»¹ýLinuxÄÚºËÖ»ÌṩÁËÇáÁ¿½ø³ÌµÄÖ§³Ö£¬Î´ÊµÏÖÏß³ÌÄ£ÐÍ¡£LinuxÊÇÒ»ÖÖ“¶à½ø³Ìµ¥Ï߳̔µÄ²Ù×÷ϵͳ¡£Linux±¾ÉíÖ»Óнø³ÌµÄ¸ÅÄ¶øÆäËùνµÄ“Ï߳̔±¾ÖÊÉÏÔÚÄÚºËÀïÈÔÈ»Êǽø³Ì¡£
     ´ó¼Ò ......

linux¼òµ¥³£ÓÃÃüÁî(Ò»)

ÒÔϾÙÀýÖУºÀ¶É«×ÖÌåΪÃüÁîÊäÈ룬ºìÉ«×ÖÌåΪÖÕ¶ËÊä³ö¡£
1.1     ²é¿´ÎļþºÍĿ¼(ls)
lsÃüÁîÊÇlinux×î³£ÓõÄÃüÁÓÃÀ´ÏÔʾÎļþ»òÕßĿ¼µÄÏà¹ØÐÅÏ¢¡£Ò»°ã»á´îÅäÒÔϲÎÊý³£Óãº
-a£ºÏÔʾȫ²¿Îļþ£¬ÓëÒþ²ØÎļþ(¿ªÍ·Îª.µÄÎļþ)Ò»ÆðÁгöÀ´¡£
-l£ºÁгö³¤Êý¾Ý´®£¬°üÀ¨ÎļþÊôÐÔ¡£
-t£º°´Ê±¼äÅÅÐò¡£
-h£º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ