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

LINUXÄں˾«¼ò

Linux×ÔÉí¾ß±¸Ò»ÕûÌ×¹¤¾ßÁ´£¬ÈÝÒ××ÔÐн¨Á¢Ç¶ÈëʽϵͳµÄ¿ª·¢»·¾³ºÍ½»²æÔËÐл·¾³£¬²¢ÇÒ¿ÉÒÔ¿çԽǶÈëʽϵͳ¿ª·¢ÖеķÂÕ湤¾ß£¨ICE£©µÄÕÏ°­¡£Äں˵ÄÍêÈ«¿ª·ÅʹÈËÃÇ¿ÉÒÔ×Ô¼ºÉè¼ÆºÍ¿ª·¢³öÕæÕýµÄӲʵʱϵͳ£¬ÈíʵʱϵͳÔÚLinuxÖÐÒ²ÈÝÒ׵õ½ÊµÏÖ¡£Ç¿´óµÄÍøÂçÖ§³ÖʹµÃ¿ÉÒÔÀûÓÃLinuxµÄÍøÂçЭÒéÕ»½«Æ俪·¢³ÉΪǶÈëʽµÄTCP/IPÍøÂçЭÒéÕ»¡£
¡¡¡¡LinuxÌṩÁËÍê³ÉǶÈ빦ÄܵĻù±¾Äں˺ÍËùÐèÒªµÄËùÓÐÓû§½çÃ棬ËüÊǶàÃæµÄ¡£ËüÄÜ´¦ÀíǶÈëʽÈÎÎñºÍÓû§½çÃæ¡£
¡¡¡¡Ò»¸öСÐ͵ÄǶÈëʽLinuxϵͳֻÐèÒªÏÂÃæÈý¸ö»ù±¾ÔªËØ£º
¡¡¡¡* Òýµ¼¹¤¾ß
¡¡¡¡* Linux΢Äںˣ¬ÓÉÄÚ´æ¹ÜÀí¡¢½ø³Ì¹ÜÀíºÍÊÂÎñ´¦Àí¹¹³É
¡¡¡¡* ³õʼ»¯½ø³Ì
¡¡¡¡Èç¹ûÒªÈÃËüÄܸɵãʲôÇÒ¼ÌÐø±£³ÖСÐÍ»¯£¬»¹µÃ¼ÓÉÏ£º
¡¡¡¡* Ó²¼þÇý¶¯³ÌÐò
¡¡¡¡* ÌṩËùÐ蹦ÄܵÄÒ»¸ö»ò¸ü¶àÓ¦ÓóÌÐò¡£
¡¡¡¡ÔÙÔö¼Ó¹¦ÄÜ£¬»òÐíÐèÒªÕâЩ£º
¡¡¡¡* Ò»¸öÎļþϵͳ£¨Ò²ÐíÔÚROM»òRAM£©ÖÐ
¡¡¡¡* TCP/IPÍøÂç¶ÑÕ»
ÏÂÃæÎÒÃǾʹӾ«¼òÄںˡ¢ÏµÍ³Æô¶¯¡¢Çý¶¯³ÌÐò½«¡¢X-Window»»³ÉMicroWindowsËĸö²½Öè½éÉÜǶÈëʽLinuxµÄʵ¼Ê¿ª·¢¡£
¾«¼òÄÚºË
¡¡¡¡¹¹ÔìÄں˵ij£ÓÃÃüÁî°üÀ¨£ºmake config¡¢dep¡¢clean¡¢mrproper¡¢zImage¡¢bzImage¡¢modules¡¢modules_install¡£ÃüÁî˵Ã÷ÂÔ¡£
ÏÖÔÚ¾Ù¸öÀý×Ó˵Ã÷һϣº
¡¡¡¡ÎÒʹÓõÄÊÇ MandrakeÄÚ¸½µÄ 2.2.15¡£ÎÒûÓÐÐÞ¸ÄÈκÎÒ»ÐгÌÐòÂ룬ÍêÈ«Ö»¿¿ÐÞ¸Ä×é̬µµµÃµ½ÕâЩÊý¾Ý¡£
¡¡¡¡Ê×ÏÈ£¬Ê¹Óà make config °ÑËùÓпÉÒÔÄõôµÄÑ¡ÏÄõá£
¡¡¡¡²»Òª floppy£»²»ÒªSMP¡¢MTRR£»²»Òª Networking¡¢SCSI£»°ÑËùÓÐµÄ block device ÒƳý£¬Ö»ÁôÏ old IDE device£»°ÑËùÓÐµÄ character device ÒƳý£»°ÑËùÓÐµÄ filesystem ÒƳý£¬Ö»ÁôÏ minix£»²»Òª sound Ö§Ô®¡£ÏàÐÅÎÒ£¬ÎÒ¼º¾­°ÑËùÓеÄÑ¡ÏÒƳýÁË¡£ÕâÑù×öÖ®ºó£¬Îҵõ½ÁËÒ»¸ö 188K µÄºËÐÄ¡£
»¹²»¹»Ð¡Âð? OK£¬ÔÙ¼ÓÉÏÒ»ÕУ¬Çë°ÑÏÂÁÐÁ½¸öµµ°¸ÖÐµÄ -O3,-O2 Óà -Os È¡´ú¡£
¡¡¡¡./Makefile
¡¡¡¡./arch/i386/kernel/
¡¡¡¡Makefile
¡¡¡¡ÕâÑùÒ»À´£¬Õû¸öºËÐıäСÁË 9K£¬³ÉΪ 179K¡£
²»¹ýÕâ¸öºËÐÄ¿ÖźÜÄÑ·¢»Ó Linux µÄ¹¦ÄÜ£¬Òò´ËÎÒ¾ö¶¨°ÑÍøÂç¼Ó»ØÈ¥¡£°ÑGeneralÖÐµÄ network support ¼Ó»ØÈ¥£¬ÖØбàÒ룬ºËÐıä³É 189 K¡£10K¾Í¼ÓÉϸö TCP/IP stack£¬ËƺõÊǺÜÉÏËãµÄÉúÒâ¡£
ÓÐstackûÓÐdriverÒ²ÊÇÍ÷È»£¬ËùÒÔÎÒ°Ñ embedded board³£ÓõÄRTL8139µÄdriver¼Ó»ØÈ¥£¬195K¡£
¡¡¡¡Èç¹ûÄãÐèÒª DOS µµ°¸ÏµÍ³£¬ÄÇ´óС³ÉΪ 213K¡£Èç¹û minix Óà ext2 »»´ú£¬Ôò´óС³É³¤ÖÁ 222K¡£


Ïà¹ØÎĵµ£º

ʵս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´¦ÀíÍøÂçÁ÷Á¿Êý¾Ý

ÍøÂçѹÁ¦²âÊÔ£¬ÐèÒª´¦ÀíԭʼÊý¾Ý£¬½«Ô­Ê¼µÄByte/s ´¦ÀíΪMbps£¬²¢Í¨¹ýÖ±¹ÛÇúÏßͼ±íչʾ³öÀ´¡£
 
1.ͳ¼ÆÍø¿¨Á÷Á¿
sar -n DEV 1 100 > net
 
µÃµ½Íø¿¨Á÷Á¿£¬Ô­Ê¼Êý¾ÝÈçÏ£º
10:32:41        IFACE   rxpck/s   txpck/s   rxbyt/s  ......

a shortcut for linux( from linux journal )

if you come from the world of Windows, you undoubtedly understand the concept of a shortcut. In the Linux world, shortcuts do exist, but they're generally referred to as symbolic links, or symlinks. They are so named because, like shortcuts, a symlink is really just a symbolic placeholder or link to ......

linuxÖÐviÏÔʾÖÐÎÄÂÒÂëµÄÎÊÌâ


ÓÉÓÚÔÚwindowsÏÂĬÈÏÊÇgb±àÂ룬¶øÎÒµÄvimĬÈÏÊÇutf-8£¨geditĬÈÏÒ²ÊÇutf-8£©£¬ËùÒÔ´ò¿ª»á³ÉÂÒÂë¡£ÐÞ¸ÄÁËÒ»ÏÂÅäÖÃÎļþ£¬Ê¹viÖ§³Ögb±àÂë¾ÍºÃÁË¡£
$vi ~/.vimrc
let &termencoding=&encoding
set fileencodings=utf-8,gbk
$:wq
Ôٴδò¿ªvi£¬ÏÔʾ¾ÍÕý³£ÁË¡£
vimÖб༭²»Í¬±àÂëµÄÎļþʱÐèҪעÒâµÄһЩµØ·½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ