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

ǶÈëʽLinuxµÄÎļþϵͳ

 LinuxÆô¶¯Ê±£¬µÚÒ»¸ö±ØÐë¹ÒÔصÄÊǸùÎļþϵͳ£»Èôϵͳ²»ÄÜ´ÓÖ¸¶¨É豸ÉϹÒÔظùÎļþϵͳ£¬Ôòϵͳ»á³ö´í¶øÍ˳öÆô¶¯¡£Ò»¸öϵͳÖпÉÒÔͬʱ´æÔÚ²»Í¬µÄÎļþϵͳ£¬²»Í¬µÄÎļþϵͳÀàÐÍÓв»Í¬µÄÌص㣬Òò¶ø¸ù¾Ý´æ´¢É豸µÄÓ²¼þÌØÐÔ¡¢ÏµÍ³ÐèÇóµÈÓв»Í¬µÄÓ¦Óó¡ºÏ¡£ÔÚǶÈëʽLinuxÓ¦ÓÃÖУ¬Ö÷ÒªµÄ´æ´¢É豸ΪRAM(DRAM, SDRAM)ºÍROM(³£²ÉÓÃFLASH´æ´¢Æ÷)£¬³£ÓõĻùÓÚ´æ´¢É豸µÄÎļþϵͳÀàÐÍ°üÀ¨£ºjffs2, yaffs, cramfs, romfs, ramdisk, ramfs/tmpfsµÈ¡£
 LinuxϵÄÎļþϵͳ½á¹¹ÈçÏ£º
1.Ramdisk
     RamdiskÊǽ«Ò»²¿·Ö¹Ì¶¨´óСµÄÄÚ´æµ±×÷·ÖÇøÀ´Ê¹Óá£Ëü²¢·ÇÒ»¸öʵ¼ÊµÄÎļþϵͳ£¬¶øÊÇÒ»ÖÖ½«Êµ¼ÊµÄÎļþϵͳװÈëÄÚ´æµÄ»úÖÆ£¬²¢ÇÒ¿ÉÒÔ×÷Ϊ¸ùÎļþϵͳ¡£½«Ò»Ð©¾­³£±»·ÃÎʶøÓÖ²»»á¸ü¸ÄµÄÎļþ(ÈçÖ»¶ÁµÄ¸ùÎļþϵͳ)ͨ¹ýRamdisk·ÅÔÚÄÚ´æÖУ¬¿ÉÒÔÃ÷ÏÔµØÌá¸ßϵͳµÄÐÔÄÜ¡£
ÔÚLinuxµÄÆô¶¯½×¶Î£¬initrdÌṩÁËÒ»Ì×»úÖÆ£¬¿ÉÒÔ½«ÄÚºËÓ³ÏñºÍ¸ùÎļþϵͳһÆðÔØÈëÄÚ´æ¡£
2.Ramfs/tmpfs
     RamfsÊÇLinus Torvalds¿ª·¢µÄÒ»ÖÖ»ùÓÚÄÚ´æµÄÎļþϵͳ£¬¹¤×÷ÓÚÐéÄâÎļþϵͳ(VFS)²ã£¬²»Äܸñʽ»¯£¬¿ÉÒÔ´´½¨¶à¸ö£¬ÔÚ´´½¨Ê±¿ÉÒÔÖ¸¶¨Æä×î´óÄÜʹÓõÄÄÚ´æ´óС¡£(ʵ¼ÊÉÏ£¬VFS±¾ÖÊÉÏ¿É¿´³ÉÒ»ÖÖÄÚ´æÎļþϵͳ£¬ËüͳһÁËÎļþÔÚÄÚºËÖеıíʾ·½Ê½£¬²¢¶Ô´ÅÅÌÎļþϵͳ½øÐлº³å¡£)
     Ramfs/tmpfsÎļþϵͳ°ÑËùÓеÄÎļþ¶¼·ÅÔÚRAMÖУ¬ËùÒÔ¶Á/д²Ù×÷·¢ÉúÔÚRAMÖУ¬¿ÉÒÔÓÃramfs/tmpfsÀ´´æ´¢Ò»Ð©ÁÙʱÐÔ»ò¾­³£ÒªÐ޸ĵÄÊý¾Ý£¬ÀýÈç/tmpºÍ/varĿ¼£¬ÕâÑù¼È±ÜÃâÁ˶ÔFlash´æ´¢Æ÷µÄ¶ÁдËðºÄ£¬Ò²Ìá¸ßÁËÊý¾Ý¶ÁдËٶȡ£
     Ramfs/tmpfsÏà¶ÔÓÚ´«Í³µÄRamdiskµÄ²»Í¬Ö®´¦Ö÷ÒªÔÚÓÚ£º²»Äܸñʽ»¯£¬Îļþϵͳ´óС¿ÉËæËùº¬ÎļþÄÚÈÝ´óС±ä»¯¡£TmpfsµÄÒ»¸öȱµãÊǵ±ÏµÍ³ÖØÐÂÒýµ¼Ê±»á¶ªÊ§ËùÓÐÊý¾Ý¡£
3.Cramfs
ÔÚǶÈëʽµÄ»·¾³Ö®Ï£¬ÄÚ´æºÍÍâ´æ×ÊÔ´¶¼ÐèÒª½ÚԼʹÓá£Èç¹ûʹÓÃRAMDISK·½Ê½À´Ê¹ÓÃÎļþϵͳ£¬ÄÇôÔÚϵͳÔËÐÐÖ®ºó£¬Ê×ÏÈÒª°ÑÍâ´æ(Flash)ÉϵÄÓ³ÏñÎļþ½âѹËõµ½ÄÚ´æÖУ¬¹¹ÔìÆðRAMDISK»·¾³£¬²Å¿ÉÒÔ¿ªÊ¼ÔËÐгÌÐò¡£µ«ÊÇËüÒ²ÓкÜÖÂÃüµÄÈõµã¡£ÔÚÕý³£Çé¿öÏ£¬Í¬ÑùµÄ´úÂë²»½öÔÚÍâ´æÖÐÕ¼¾ÝÁË¿Õ¼ä(ÒÔѹËõºóµÄÐÎʽ´æÔÚ)£¬¶øÇÒ»¹ÔÚÄÚ´æÖÐÕ¼ÓÃÁ˸ü´óµÄ¿Õ¼ä(ÒÔ½âѹËõÖ®ºóµÄÐÎʽ´æÔÚ)£¬ÕâÎ¥±³ÁËǶÈëʽ»·¾³Ï¾¡Á¿½ÚÊ¡×ÊÔ´µÄÒªÇó¡£
ʹÓà cramfs¾ÍÊÇÒ»ÖÖ½â¾öÕâ¸öÎÊÌâµÄ·½Ê½¡£cramfsÊÇÒ»¸öѹËõʽµÄÎļþϵͳ£¬Ëü²¢²»ÐèÒªÒ»´ÎÐԵؽ«ÎļþϵͳÖеÄËùÓÐÄÚÈݶ¼


Ïà¹ØÎĵµ£º

ʵս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±à³ÌʵÀý

ÀýÒ»£º·¢ËÍ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ѧϰ±Ê¼Ç

 Ò»±ßѧϰubuntu,Ò»±ß·¢ÏÖÎÊÌ⣬Ŀǰ·¢ÏÖµÄÎÊÌâÓÐÒÔϼ¸¸ö£¬²¢³É¹¦½â¾ö¡£
        Ê×ÏÈ£¬´ò¿ªfirefox,flash²»ÄÜÕýÈ·ÏÔʾ£¬°²×°adobe  flash  ×îвå¼þ¾Í¿ÉÒÔ½â¾ö£¬ÆäËûflash²å¼þЧ¹û²»Ì«ºÃ¡£ºóÀ´´ò¿ªQQÅ©³¡µÄflash£¬ÖÐÎÄÏÔʾ¿Õ¸ñ£¬½â¾ö·½·¨£¬´ò¿ªÖնˣ¬ÊäÈëÒÔÏÂÃüÁ ......

Linux jffs2 ʹÓÃ×ܽá

1.ÔÚLinuxÆô¶¯½Å±¾ÖÐÖÆ×÷jffs2
2.ÔÚLinuxÖÕ¶ËÏÂÖÆ×÷jffs2
3.±¸×¢
1.ÔÚLinuxÆô¶¯½Å±¾ÖÐÖÆ×÷jffs2
 ¾ßÌå²Ù×÷²½Ö裺
 sysinitÖÐ:
 
echo “Make jffs2 filesystem:”
erase /dev/mtd5
cd /tmp
echo “test” > test.txt
mkfs.jffs2 –d /tmp > /dev/mtdblock5
&nbs ......

[ת]Linux½¨Á¢Á´½Ó½â¾ö¿Õ¼ä²»¹»µÄÎÊÌâ


×÷Õß: ÈýÊ®¶øÁ¢
ʱ¼ä£º2009Äê11ÔÂ03ÈÕ 9:52:27
Çë×ðÖØÔ­´´×÷Æ·¡£×ªÔØÇë±£³ÖÎÄÕÂÍêÕûÐÔ,²¢ÒÔ³¬Á´½ÓÐÎʽעÃ÷ԭʼ×÷Õß“inthirties£¨ÈýÊ®¶øÁ¢£©”ºÍ³ö´¦”http://blog.csdn.net/inthirties/archive/2009/11/03/4761783.aspx”,ÉîÈëÌÖÂÛ¿ÉÒÔÁªÏµinthirties@gmail.com¡£
 ½ñÌìÀ´µ½¹«Ë¾£¬ÓÐС»ï× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ