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

Linux USB gadgetÉ豸Çý¶¯½âÎö£¨2£© Çý¶¯µ÷ÊÔ

      ±¾ÎÄÖ÷Òª°ÑÔÚʵÏÖ“linuxÄ£ÄâUÅ̹¦ÄÜ”¹ý³ÌÖеÄһЩµ÷ÊÔ¹ý³Ì¼Ç¼ÏÂÀ´£¬²¢¼ÓÒÔ½âÎö¡£
Ò»¡¢±³¾°ÖªÊ¶
    1¡¢USB Mass StorageÀà¹æ·¶¸ÅÊö

       USB ×éÖ¯ÔÚuniversal Serial Bus Mass Storage Class
Spaceification 1.1°æ±¾Öж¨ÒåÁ˺£Á¿´æ´¢É豸ÀࣨMass Storage Class£©µÄ¹æ·¶£¬Õâ¸öÀà¹æ·¶°üÀ¨Ëĸö
        ¶ÀÁ¢µÄ×ÓÀà¹æ·¶£¬¼´£º
       1. USB Mass Storage Class Control/Bulk/Interrupt (CBI)
Transport
       2.USB Mass Storage Class Bulk-Only Transport
       3.USB Mass Storage Class ATA Command Block
       4.USB Mass Storage Class UFI Command Specification
       Ç°Á½¸ö×ӹ淶¶¨ÒåÁËÊý¾Ý/ÃüÁî/״̬ÔÚUSB ÉϵĴ«Êä·½·¨¡£Bulk- Only ´«Êä¹æ·¶½ö½öʹÓÃBulk
¶Ëµã´«ËÍÊý¾Ý/ÃüÁî/״̬£¬CBI ´«Êä¹æ·¶ÔòʹÓÃControl/Bulk/Interrupt
ÈýÖÖÀàÐ͵Ķ˵ã½øÐÐÊý¾Ý/ÃüÁî/״̬´«ËÍ¡£ºóÁ½¸ö×ӹ淶Ôò¶¨ÒåÁË´æ´¢½éÖʵIJÙ×÷ÃüÁî¡£ATA ÃüÁî¹æ·¶ÓÃÓÚÓ²ÅÌ£¬UFI ÃüÁî¹æ·¶ÊÇÕë¶ÔUSB
Òƶ¯´æ´¢¡£
       Microsoft Windows ÖÐÌṩ¶ÔMass Storage ЭÒéµÄÖ§³Ö£¬Òò´ËUSB Òƶ¯É豸ֻÐèÒª×ñÑ­
Mass Storage ЭÒéÀ´×éÖ¯Êý¾ÝºÍ´¦ÀíÃüÁ¼´¿ÉʵÏÖÓëPC »ú½»»»Êý¾Ý¡£¶øFlash µÄ´æ´¢µ¥Ôª×éÖ¯ÐÎʽ²ÉÓÃFAT16
Îļþϵͳ£¬ÕâÑù£¬¾Í¿ÉÒÔÖ±½ÓÔÚWindowsµÄä¯ÀÀÆ÷ÖÐͨ¹ý¿ÉÒƶ¯´ÅÅÌÀ´½»»»Êý¾ÝÁË£¬Windows ¸ºÔð¶ÔFAT16 ÎļþϵͳµÄ¹ÜÀí£¬USB
É豸²»ÐèÒª¸ÉÔ¤FAT16 Îļþϵͳ²Ù×÷µÄ¾ßÌåϸ½Ú¡£
       USB£¨Host£©Î¨Ò»Í¨¹ýÃèÊö·ûÁ˽âÉ豸µÄÓйØÐÅÏ¢£¬¸ù¾ÝÕâЩÐÅÏ¢£¬½¨Á¢ÆðͨÐÅ£¬ÔÚÕâ
ЩÃèÊö·ûÖУ¬¹æ¶¨ÁËÉ豸ËùʹÓõÄЭÒé¡¢¶ËµãÇé¿öµÈ¡£Òò´Ë£¬ÕýÈ·µØÌṩÃèÊö·û£¬ÊÇUSB
É豸Õý³£¹¤×÷µÄÏȾöÌõ¼þ¡£
       Linux-2.6.26ÄÚºËÖÐÔÚÀûÓÃUSB
gadgetÇý¶¯ÊµÏÖÄ£ÄâUÅÌʱÖ÷ÒªÉæ¼°µ½file_storage.c¡¢s3c2410_udc.cµÈÇý


Ïà¹ØÎĵµ£º

linux ´®¿Ú±à³Ì

ÔÚǶÈëʽLinuxÖУ¬´®¿ÚÊÇÒ»¸ö×ÖÉ豸£¬·ÃÎʾßÌåµÄ´®Ðж˿ڵıà³ÌÓë¶Á£¯Ð´ÎļþµÄ²Ù×÷ÀàËÆ£¬Ö»Ðè´ò¿ªÏàÓ¦µÄÉ豸Îļþ¼´¿É²Ù×÷¡£´®¿Ú±à³ÌÌØÊâÔÚÓÚ´®¿ÚͨÐÅʱÏà¹Ø²ÎÊýÓëÊôÐÔµÄÉèÖá£Ç¶ÈëʽLinuxµÄ´®¿Ú±à³ÌʱӦעÒ⣬ÈôÔÚ¸ùÎļþÖÐûÓд®¿ÚÉ豸Îļþ£¬Ó¦Ê¹ÓÃmknodÃüÁî´´½¨£¬ÕâÕâÀï¼ÙÉè´®¿ÚÉ豸ÊÇ/dev/ttyS0£¬½éÉÜһϴ®¿ÚµÄ±à³Ì¹ý³Ì¡ ......

Ubuntu LinuxÏ嵀 Opera °²×°

ÏêÇéÇë·ÃÎÊ£ºhttp://deb.opera.com/
Opera
¹Ù·½Ô´£º
×îеİ汾:
deb http://deb.opera.com/opera/ unstable non-free
»òÕßÑ¡ÔñÎȶ¨µÄ°æ±¾£º
deb http://deb.opera.com/opera/ stable non-free
£¨ÐÞ¸Äsources.listÎļþÖÐÔ´µÄÁÐ±í£¬Ìí¼ÓOpera Ô´£©ÃüÁ
sudo gedit /etc/apt/sources.list
£¨±¸·Ýµ±Ç°µÄÔ´ÁÐ±í£© ......

LinuxÏ°²×°ÅäÖà jdk1.6 tomcat6 Apache2.2 jk mod1.2

±¾ÎÄת×Ô http://zhzhiqun2005.javaeye.com/blog/462799
LinuxÏ°²×°ÅäÖà Jdk1.6+Tomcat6+Apache2.2.x+jk_mod1.2 Ïê½â



LinuxÏ°²×°ÅäÖà Jdk1.6+Tomcat6+Apache2.2.x+jk_mod1.2 Ïê½â
±¾ÆªÒÔRedhat AS5£¬ÄÚºËΪLinux 2.6.18-8.el5 ΪÀý£¬ÆäÖÐRedhat/FedoraϵÁлù±¾Ò»Ö£¬ÆäËûLinux»òÕß° ......

LinuxÏÂsamba·þÎñÆ÷µÄ¼ÜÉè

×î½üÔÚѧϰlinux ½ñÌì°Ñ¼ÜÉèlinux samba·þÎñÆ÷µÄ·½·¨Ð´³öÀ´ »¶Ó­´ó¼ÒÌÖÂÛºÍÖ¸µã
±¾»úÊÇÐéÄâ»úºÍwinxp½øÐвâÊÔ£¬ÐéÄâ»úµØÖ·ÊÇ192.168.1.144 Ö÷»úµØÖ·ÊÇ192.168.1.10.Á½ÕßÊÇ¿ÉÒÔ»¥Í¨µÄ¡£
Ê×ÏÈÎÒÃÇÏÈ×ölinuxϵÄÅäÖÃ
Ò». Ê×ÏÈҪȷ¶¨linuxÊÇ·ñ°²×°ÁËsmb
[root@localhost zy]#rpm -qa | grep samba
samba-2.2.5-10
samba-s ......

LINUXϵÄһЩ¼ÒѹËõ°²×°ÃüÁî

ÔÚfedoraϽâѹ.debÎļþ(û°²×°dpkg):
ar p filename.deb data.tar.gz | tar zxvf -
ÆäËüѹËõÎļþµÄ½âѹ
#tar xv file.a
#uncompress file.Z
#gunzip file.gz
#bunzip2 file.bz2
#tar xvZf file.tar.Z 
#compress -dc file.tar.Z | tar xvf -
#tar xvzf file.tar.gz 
#gzip -dc file.tar.gz | tar ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ