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

ǶÈëʽLinuxϵͳÖеĿìËÙÆô¶¯¼¼ÊõÑо¿


1 ǶÈëʽLinuxϵͳÆô¶¯Ê±Ðò
Ŀǰ£¬Ç¶ÈëʽϵͳµÄÓ²¼þƽ̨ºÍÓ¦Ó÷½ÏòÇø±ðºÜ´ó£¬µ«×ÜÌåÆô¶¯Á÷³ÌÒ»Öµġ£ÕâÀïµÄϵͳÆô¶¯ÊÇÖ¸´ÓÓû§Ö´ÐÐÉϵç/¸´Î»²Ù×÷£¬µ½ÏµÍ³¿ªÊ¼ÌṩÓû§¿É½ÓÊյķþÎñˮƽËùÐèÒªµÄ¹ý³Ì¡£µäÐ͵ÄÉϵç/¸´Î»Ê±ÐòÈç±í1ËùÁС£
2 Linux¿ìËÙÆô¶¯·½·¨
Ŀǰ£¬Ò»Ð©LinuxµÄ·¢Ðа汾ÒѾ­¶ÔÆô¶¯ËٶȽøÐÐÁËÓÅ»¯¡£Èç¹ûÀûÓñê×¼Linux½øÐпª·¢£¬ÔòÆô¶¯ËٶȵÄÌá¸ßÖ÷ÒªÊÇͨ¹ýÄÚºËÅäÖú͸÷ÖÖ²¹¶¡°üÀ´ÊµÏֵġ£ÏÂÃæ·ÖÎö¿ìËÙÆô¶¯µÄһЩ¹Ø¼ü¼¼Êõ¡£
±í1 ǶÈëʽLinuxϵͳÆô¶¯Ê±Ðò
2.1 FirmwareºÍBootloader½×¶Î
Ä¿±ê°åÒ»µ©È·¶¨£¬FirmwareÔËÐеÄʱ¼ä¾ÍÎÞ·¨¸Ä±äÁË£¬FlashºÍRAMµÄ¶ÁдËÙ¶ÈÒ²¾ÍËæÖ®È·¶¨ÁË¡£µ«
Èç¹û¸´Î»Ê±Äܹ»ÈƹýFirmwareºÍBootloader£¬¼´ÔÊÐíÔËÐÐÖеÄÄں˼ÓÔØÒÔ¼°ÔËÐÐÁíÒ»¸öÄںˣ¬¿ÉÒÔËõ¶ÌÆô¶¯µÄʱ¼ä¡£µäÐ͵ÄʵÏÖÓÐKexec£¬ËüÓÐ2¸ö×é¼þ£¬¼´Óû§¿Õ¼ä×é¼þkexectoolsºÍÄں˲¹¶¡¡£ÁíÍâÒ»ÖÖ°ì·¨ÊÇÔÚÄÚºËÃüÁîÐÐÖмÓÈëreboot=softÊý£¬Í¬Ñù¿ÉÒÔÌø¹ýFirmware£¬µ«ÊÇȱµãÔÚÓÚÎÞ·¨´ÓÓû§¿Õ¼äµ÷Óá£
¶ÔÓÚÕý³£Æô¶¯£¬¿ÉÒÔÑ¡ÔñËٶȱȽϿìµÄBootloader£¬²¢¶ÔÄں˽øÐÐСÐÍ»¯´¦Àí£»»¹¿ÉÒÔʹÓøßËÙµÄÓ³Ïñ¸´ÖƼ¼Êõ£¨ÈçDMA2RAM£©£¬´Ó¶øËõ¶Ì¸´ÖƵÄʱ¼ä¡£ÎªÁËËõ¶Ì½âѹÏûºÄµÄʱ¼ä£¬¿ÉѰÇó±È½Ï¸ßЧµÄѹËõËã·¨¡£µ«Ò»°ãÇé¿öÏ£¬Ñ¹Ëõ±ÈÔ½¸ß£¬Ëã·¨Ô½¸´ÔÓ£¬½âѹËٶȾÍÔ½Âý£¬´Ó¶øÔì³É¸´ÖÆÊ±¼ä£¨ÓëѹËõ±È³É·´±È£©ºÍ½âѹʱ¼ä£¨Ò»°ãÓëѹËõ±È³ÉÕý±È£©Ö®¼äµÄì¶Ü¡£
2.2 Äں˽׶Î
Äں˳õʼ»¯Ê±Òª¶ÔRealTime Clock £¨RTC£©½øÐÐͬ²½¡£´Ë¹ý³ÌÒªÕ¼ÓÃ1sµÄʱ¼ä£¬¿ÉÈ¥µôÒÔ½ÚԼʱ¼ä£¬µ«ÕâÑùCPU»áÓëÕýÈ·µÄʱ¼äÓÐ1sµÄÆ«²î£¬Èç¹û¹Ø»úʱCPUʱÖÓÓÖÒª±£´æÔÚRTCÖУ¬Æ«²î¾Í»á²»¶ÏÀÛ»ý¡£µ«¶ÔÓÚʹÓÃÍⲿʱÖÓÔ´½øÐÐͬ²½µÄϵͳ£¬Ôò¿É°²È«µØÌø¹ýÕâ¸ö½×¶Î¡£
Preset LPJ¿ÉÒÔÓÃÀ´Ëõ¶Ìÿ´ÎÆô¶¯Ê±µ÷ÓÃcalibrate_delay£¨£©À´Ð£×¼loops_per_jiffyÏûºÄµÄʱ¼ä¡£Õâ¸öʱ¼ä¿ªÏúÓëCPUƵÂÊÎ޹أ¬ÔÚµäÐ͵ÄǶÈëʽӲ¼þ»·¾³Ï»áÏûºÄ300ms×óÓÒ¡£LPJÖµ¶ÔÓڹ̶¨Ó²¼þƽ̨Ӧ¸ÃÊÇÒ»Öµģ¬¿ÉÒÔÖ»¼ÆËãÒ»´Î£¬ÔÚºóÐøµÄÆô¶¯ÖоͿÉÒÔÔÚÆô¶¯²ÎÊýÖÐÇ¿ÖÆÖ¸¶¨LPJÖµ£¬¶øÌø¹ýʵ¼ÊµÄ¼ÆËã¹ý³Ì¡£¾ßÌå·½·¨ÊÇ£ºÔÚÕý³£Æô¶¯ºó¼Ç¼ÏÂÄÚºËÆô¶¯ÐÅÏ¢ÖеÄ"Calibrating Delay"ÊýÖµ£¬ÔÚÆô¶¯²ÎÊýÖÐÒÔ"lpj=xxxxxx"µÄÐÎÊ½Ç¿ÖÆÖ¸¶¨¡£
Æô¶¯¹ý³ÌĬÈÏ´ò¿ª¿ØÖÆÌ¨Êä³öÆô¶¯ÏûÏ¢£¬µ«ÊÇ¿ØÖÆÌ¨ÓÈÆäÊÇ»ùÓÚÖ¡»º³åµÄ¿ØÖÆÌ¨»á¼õÂýÆô¶¯ËÙ¶È¡£Òò´ËÔÚǶÈëʽLinux²úÆ·ÖУ¬½«Æô¶¯¹ý³ÌÖеĿØÖÆÌ¨ÉèΪ¾²Ä¬×´Ì¬£¬·½·¨ÊÇÔÚÄÚºËÆô¶¯²ÎÊýÖмÓÈë"quiet"¡£


Ïà¹ØÎĵµ£º

ʵս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 Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

Linux³£ÓÃÃüÁî

 
linux ³£ÓÃÃüÁî
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ls: ÏÔʾĿ¼ÖеÄÎļþÓëĿ¼£¬ ......

³õѧLinuxÄÚºË

    ¶ÔÓÚÒ»¸ö³õѧLinuxµÄÐÂÊÖÀ´Ëµ£¬¸Õ¿ªÊ¼×îÈÃÎÒÃÔ»óµÄÊÇÄں˵Ť×÷ģʽ£¬ÒÔΪÓû§¿Õ¼äµÄģʽ——Èç¶à½ø/Ïß³ÌÒ²ÊÊÓÃÓÚÄںˣ¬µ«ÕâÑù¾Í²úÉúÁËÒ»¸öã£ÂÛ£¬Óû§¿Õ¼äµÄ½ø³Ìµ÷¶ÈÊÇÓÉÄÚºËÍê³ÉµÄ£¬ÄÇôÄں˿ռäµÄ½ø³Ìµ÷¶ÈÊÇÓÉË­Íê³ÉµÄ£¿Äª·ÇÄں˿ÉÒÔÖ±½Óµ÷¶È×Ô¼º²»³É£¿
    ºÝKÁ˼¸ÌìÊéºó£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ