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

linux ƽ̨ӦÓóÌÐòÔõôÑùͨ¹ýUSB¿ØÖÆ

£¨1£©Óû§Ä£Ê½USB
      usbfsÐéÄâÎļþϵͳÔÊÐí´ÓÓû§¿Õ¼äÒÔԭʼ·½Ê½·ÃÎÊUSBÉ豸¡£usbfsͨ³£¹ÒÔØÔÚ/proc/bus/usb/ÉÏ£¬usbfsÊ÷°üº¬ÁËϵͳÖÐÓëÿ¸öUSB¿ØÖÆÆ÷£¨»ò×ÜÏߣ©¶ÔÓ¦µÄĿ¼£¬Ã¿¸öĿ¼ÒÀ´Î°üº¬ÁËÓë¸Ã×ÜÏßÉϵÄUSBÉ豸Ïà¶ÔÓ¦µÄ½áµã¡£
      ΪÁ˸üºÃµØÀí½âusbfs£¬ÎÒÃÇ¿´Ò»Ï°üº¬Ó¢ÌضûICH4ÄÏÇÅоƬ×éµÄϵͳ¡£USB¿ØÖÆÆ÷ÊÇPCϵͳÖÐÄÏÇÅоƬ×éµÄ1²¿·Ö¡£ICH4Ö§³Ö1¸öUSB EHCI£¨¸ßËÙUSB 2.0£©¿ØÖÆÆ÷ºÍ3¸öUSB UHCI¿ØÖÆÆ÷£¬ÎÒÃdzÆEHCI¿ØÖÆÆ÷Ϊbus1£¬3¸öUHCI¿ØÖÆÆ÷·Ö±ðΪbus2¡¢bus3ºÍbus4¡£ÏÖÔÚ¼ÙÉèϵͳֻÓÐ2¸öÎïÀíUSB¶Ë¿Ú£¬ËüÃÇÓëbus3 ÏàÓ¦µÄUHCI¿ØÖÆÆ÷Á¬½Ó¡£
      ÎÒÃǽ«Ò»¸öÈ«ËÙÄ῵ÊýÂëÏà»úºÍ¸ßËÙÏ£½ÝUSB 2.0Ó²ÅÌÁ¬½Óµ½ÏµÍ³ÉϵÄ2¸öUSB¡£ÏÈ¿´Ò»ÏÂ/proc/bus/usb/devices£¬ÕÒµ½Ïà¹ØÈë¿Ú£º
bash> ls –lR /proc/bus/usb/devices
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=04b0 ProdID=0205 Rev= 1.00
S: Manufacturer=NIKON
S: Product=NIKON DSC E5200
S: SerialNumber=2507597
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 12 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bc2 ProdID=0501 Rev= 0.01
S: Manufacturer=Seagate
S: Product=USB Mass Storage
S: SerialNumber=000000062459
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
£¨2£©libusb¡£Óë²åÈëÉ豸ÏàÓ¦µÄusbfsÎļþ°üº¬ÁËÏà¹ØµÄUSBÉ豸¼°ÅäÖÃÃèÊö·û¡£ÔÚÇ°ÃæµÄÀý×ÓÖУ¬¶ÁÈ¡/proc/bus/usb/003/003
¿É»ñµÃÏà»úµÄÃèÊö·ûÐÅÏ¢£¬¶ÁÈ¡/proc/bus/usb/001/007¿É»ñµÃÓ²ÅÌÃèÊö·ûÐÅÏ¢¡£µ«¹ÜÀíusbfsÎļþ²¢²»ÊÇÄÇô¼òµ¥µÄ£¬ÒòΪÉ豸ÎļþÃûÔÚÉ豸°Î³öºóÐèÒªÖØÐÂʹÓ᣽â¾ö°ì·¨ÊÇÓÃlibusb¿â£¬Ëü·âװʹÓÃusbfs¡£Ê¹ÓÃlibusb¶ø²»Ö±½Ó²Ù×÷usbfs£¬»¹ÓÐÒ»¸öºÃ´¦£ºÖ»Òª²Ù×÷


Ïà¹ØÎĵµ£º

LinuxÖа²×°Resin3ÊÖ¼Ç

°²×°²½Ö裺
Ø  °²×°resinÇ°ÏÈÒª±£Ö¤°²×°ÁËJDK£¬¿ÉÒÔÓÃÃüÁî²é¿´ÊÇ·ñ°²×°ÁËJDK£º
[root@wxr webapps]# java -versions
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
 
Ø  ÏÂÔØRes ......

ÈçºÎ¿ªÆô¹Ø±Õlinux·À»ðǽ

ÈçºÎ¿ªÆô¹Ø±Õlinux·À»ðǽ
 
 
¡¡¡¡ÖØÆôºóÉúЧ
¡¡¡¡¿ªÆô£ºchkconfig iptables on
¡¡¡¡¹Ø±Õ£ºchkconfig iptables off
¡¡¡¡¼´Ê±ÉúЧ£¬ÖØÆôºóʧЧ
¡¡¡¡¿ªÆô£ºservice iptables start
¡¡¡¡¹Ø±Õ£ºservice iptables stop
¡¡¡¡»ò
¡¡¡¡¹Ø±Õ£º /etc/rc.d/init.d/iptables stop
¡¡¡¡Æô¶¯£º /etc/rc.d/init.d/ip ......

LinuxÐźÅÁ¿ ¹²ÏíÄÚ´æºÍÏûÏ¢¶ÓÁÐ

LinuxÐźÅÁ¿ ¹²ÏíÄÚ´æºÍÏûÏ¢¶ÓÁÐ
1. ÐźÅÁ¿
ʹÓÃÐźÅÁ¿¿ÉÒÔʵÏÖ½ø³Ì¼äͬ²½¡£Ö÷Òªº¯Êý¶¨Ò壺
#include <sys/sem.h>
int semctl(int sem_id, int sem_num, int command, …);
int semget(key_t key, int num_sems, int sem_flags);
int semop(int sem_id, struct sembuf *sem_ops, size_t num_sem_ops);
& ......

LinuxÎļþ²Ù×÷ƪ

1.н¨Îļþ
   Ö¸Áî:¢Ù> ÎļþÃû
          ¢Útouch ÎļþÃû
2.ɾ³ýÎļþ
   Ö¸Áî:rm
   ²ÎÊý:-d  Ö±½Ó°ÑÓûɾ³ýµÄĿ¼µÄÓ²Á¬½ÓÊý¾Ýɾ³É0,ɾ³ýĿ¼
           -f   Ç ......

linuxÇý¶¯Ö® ledÇý¶¯

Á·ÊÖ, µÚÒ»¸ö×Ö·ûÇý¶¯.
ÓÃÄ£¿é¼ÓÔØ·½·¨
»ªÇåÔ¶¼û<ǶÈëʽlinuxÉ豸Çý¶¯¿ª·¢Ïê½â>µÄ´úÂëÄÃÀ´¸ÄµÄ.  
±àÒë¹ý³Ì·¢Ïֺܶà´íÎó.
×îºó·¢ÏÖ Õâ±¾Êé´øµÄÇý¶¯´úÂ붼ÊÇ»ùÓÚlinux2.4µÄ...Ä¿Ç°ÎÒÓõÄlinux2.6, ´úÂ벿·ÖÐèÒª×öÐÞ¸Ä.
Îҵİå×ÓÊÇ ÓÑÉÆÖ®±ÛµÄ 2410.  vmware+ubuntu  nfs½»²æ±àÒë
Ê×ÏÈ
lin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ