Linux USB gadgetÉ豸Çý¶¯½âÎö
Ò»¡¢±³¾°ÖªÊ¶
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µÈÇý¶¯Îļþ£¨ÕâЩÎļþµÄ¾ßÌå½á¹¹£¬½«ÔÚÏÂһƪÎÄÕÂÖÐÃèÊö£©¡£´ËʱÎÒÃÇÏëÏÈ´ÓÕâЩ´úÂëÖÐÕÒµ½USBÃèÊöÃèÊö·û£¬´ÓÖÐÈ·¶¨Ê¹ÓõĴ洢Àà¹æ·¶£¬´Ó¶øÈ·¶¨ÐÒ顣ȷ¶¨Í¨Ñ¶ÐÒéÊÇÎÒÃǵ÷ÊԵĻù´¡¡£
´æ´¢Àà¹æ·¶ÊÇÓɽӿÚÃèÊö·û¾ö¶¨µÄ¡£½Ó¿ÚÃèÊö·û¸÷ÏîµÄ¶¨ÒåÒåÈçÏ£º
&n
Ïà¹ØÎĵµ£º
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
/boot/grub/menu.lst &n ......
Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¸ù¾ÝѧϰWindwosµÄ¾ÑéÍùÍùÓÐһЩãȻµÄ¸Ð¾õ£º²»Öª´ÓºÎ´¦¿ªÊ¼Ñ§Æð¡£ÕâÀï½éÉÜѧϰLinuxµÄһЩ½¨Òé¡£
Ò»¡¢´Ó»ù´¡¿ªÊ¼£º³£³£ÓÐЩÅóÓÑÔÚLinuxÂÛ̳ÎÊһЩÎÊÌ⣬²»¹ý£¬ÆäÖдó¶àÊýµÄÎÊÌⶼÊǺܻù´¡µÄ¡£ÀýÈ磺ΪʲôÎÒʹÓÃÒ»¸öÃüÁîµÄʱºò£¬ÏµÍ³¸æËßÎÒÕÒ²»µ½¸ÃĿ¼£¬ÎÒÒªÈçºÎÏÞÖÆʹÓÃÕß ......
Grubfordos Òýµ¼linuxµÄ·½·¨
·½·¨Ò»
Errorcheck off
Configfile /menu.lst
Configfile /boot/grub/menu.lst
Configfile /grub/menu.lst
Find –set-root –ignore-floppies –ignore-cd /menu.lst
Configfile /menu.lst
Find –set-root –ignore-floppies –ignore-cd /root/grub/m ......
http://news.csdn.net/a/20091229/216149.html
Techradar£ºLinuxÑݱäµÄ15¸öÖØ´óÀï³Ì±®
2009-12-29 15:50 | 273´ÎÔĶÁ | À´Ô´£º»ª¾ü×ÊѶ ¡¾ÒÑÓÐ0ÌõÆÀÂÛ¡¿·¢±íÆÀÂÛ
¹Ø¼ü´Ê£ºLinux | ¸ÐлcarlkxiafhwfhwµÄÌṩ | ÊÕ²ØÕâƪÐÂÎÅ
¾Ý¹úÍâýÌ屨µÀ£¬½üÈÕ£¬×ÊѶÍøÕ¾TechradarÁоÙÁ˽üÊ®ÄêÀ´LinuxÏ ......
¹¦ÄÜ˵Ã÷£ºÁгöÄ¿Ç°Óë¹ýÈ¥µÇÈëϵͳµÄÓû§Ïà¹ØÐÅÏ¢¡£
¡¡¡¡Óï¡¡¡¡·¨£ºlast [-adRx][-f <¼Ç¼Îļþ>][-n <ÏÔʾÁÐÊý>][ÕʺÅÃû³Æ...][Öն˻ú±àºÅ...]
¡¡¡¡²¹³ä˵Ã÷£ºµ¥¶ÀÖ´ÐÐlastÖ¸ÁËü»á¶ÁȡλÓÚ/var/logĿ¼Ï£¬Ãû³ÆΪwtmpµÄÎļþ£¬²¢°Ñ¸Ã¸øÎļþµÄÄÚÈݼǼµÄµÇÈëϵͳµÄÓû§Ãûµ¥È«²¿ÏÔʾ³öÀ´¡£
¡¡¡¡²Î¡¡¡¡Êý£º
......