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

һƪ²»´íµÄ½éÉÜlinuxÏÂusbÇý¶¯µÄÎÄÕÂ

תÔØ×Ô http://www.builder.com.cn/2007/1015/556732.shtml
Linux»·¾³ÏÂUSBµÄÔ­Àí¡¢Çý¶¯ºÍÅäÖÃ
¿ª·¢ÕßÔÚÏß Builder.com.cn
¸üÐÂʱ¼ä:2007-10-15
×÷Õߣº±±¾©ÖпƺìÆìÈí¼þ¼¼ÊõÓÐÏÞ¹«Ë¾ ǶÈëʽ¹¤³Ìʦ Áº¹ú¾ü
À´Ô´:CSDN
±¾ÎĹؼü´Ê£º Linux
USB

×÷ÕßΪ±±¾©ÖпƺìÆìÈí¼þ¼¼ÊõÓÐÏÞ¹«Ë¾ ǶÈëʽ¹¤³Ìʦ Áº¹ú¾ü
Ëæ×ÅÉú»îˮƽµÄÌá¸ß£¬ÈËÃǶÔUSBÉ豸µÄʹÓÃÒ²Ô½À´Ô½¶à£¬¼øÓÚLinuxÔÚÓ²¼þÅäÖÃÉÏÉв»ÄÜÈ«²¿¼´²å¼´Óã¬Òò´Ë¹ØÓÚLinuxÈçºÎÅäÖúÍʹÓ㬳ÉΪÀ§ÈÅÎÒÃǵÄÒ»´óÎÊÌâ¡£
ʲôÊÇ
USB
£¿
USBÊÇÓ¢ÎÄUniversal Serial
BusµÄËõд£¬ÒâΪͨÓô®ÐÐ×ÜÏß¡£USB×î³õÊÇΪÁËÌæ´úÐí¶à²»Í¬µÄµÍËÙ×ÜÏߣ¨°üÀ¨²¢ÐС¢´®ÐкͼüÅÌÁ¬½Ó£©¶øÉè¼ÆµÄ£¬ËüÒÔµ¥Ò»ÀàÐ͵Ä×ÜÏßÁ¬½Ó¸÷ÖÖ²»Í¬µÄÀàÐÍ
µÄÉ豸¡£USBµÄ·¢Õ¹ÒѾ­³¬Ô½ÁËÕâЩµÍËÙµÄÁ¬½Ó·½Ê½£¬ËüÏÖÔÚ¿ÉÒÔÖ§³Ö¼¸ºõËùÓпÉÒÔÁ¬½Óµ½PCÉϵÄÉ豸¡£×îеÄUSB¹æ·¶ÐÞ¶©ÁËÀíÂÛÉϸߴï480MbpsµÄ
¸ßËÙÁ¬½Ó¡£LinuxÄÚºËÖ§³ÖÁ½ÖÖÖ÷ÒªÀàÐ͵ÄUSBÇý¶¯³ÌÐò£ºËÞÖ÷ϵͳÉϵÄÇý¶¯³ÌÐòºÍÉ豸ÉϵÄÇý¶¯³ÌÐò£¬´ÓËÞÖ÷µÄ¹ÛµãÀ´¿´£¨Ò»¸öÆÕͨµÄËÞÖ÷Ò²¾ÍÊÇÒ»¸öPC
»ú£©£¬ËÞÖ÷ϵͳµÄUSBÉ豸Çý¶¯³ÌÐò¿ØÖƲåÈëÆäÖеÄUSBÉ豸£¬¶øUSBÉ豸µÄÇý¶¯³ÌÐò¿ØÖƸÃÉ豸ÈçºÎ×÷Ϊһ¸öUSBÉ豸ºÍÖ÷»úͨÐÅ¡£
USB
µÄ¾ßÌå¹¹³É
ÔÚ¶¯ÊÖдUSBÇý¶¯³ÌÐòÕâÇ°£¬ÈÃÎÒÃÇÏÈ¿´¿´Ð´µÄUSBÇý¶¯³ÌÐòÔÚÄÚºËÖеĽṹ£¬ÈçÏÂͼ£º
USBÇý¶¯³ÌÐò´æÔÚÓÚ²»Í¬µÄÄÚºË×ÓϵͳºÍUSBÓ²¼þ¿ØÖÆÆ÷Ö®¼ä£¬USBºËÐÄΪUSBÇý¶¯³ÌÐòÌṩÁËÒ»¸öÓÃÓÚ·ÃÎʺͿØÖÆUSBÓ²¼þµÄ½Ó¿Ú£¬¶ø²»±Ø¿¼ÂÇ
ϵͳµ±Ç°´æÔڵĸ÷ÖÖ²»Í¬ÀàÐ͵ÄUSBÓ²¼þ¿ØÖÆÆ÷¡£USBÊÇÒ»¸ö·Ç³£¸´ÔÓµÄÉ豸£¬linuxÄÚºËΪÎÒÃÇÌṩÁËÒ»¸ö³ÆΪUSBµÄºËÐĵÄ×ÓϵͳÀ´´¦Àí´ó²¿·ÖµÄ¸´
ÔÓÐÔ£¬USBÉ豸°üÀ¨ÅäÖÃ(configuration)¡¢½Ó¿Ú£¨interface£©ºÍ¶Ëµã(endpoint)£¬USBÉ豸°ó¶¨µ½½Ó¿ÚÉÏ£¬¶ø²»ÊÇÕû¸ö
USBÉ豸¡£ÈçÏÂͼËùʾ£º
USBͨÐÅ×î»ù±¾µÄÐÎʽÊÇͨ¹ý¶Ëµã£¨USB¶Ëµã·ÖÖжϡ¢ÅúÁ¿¡¢µÈʱ¡¢¿ØÖÆËÄÖÖ£¬Ã¿ÖÖÓÃ;²»Í¬£©£¬USB¶ËµãÖ»ÄÜÍùÒ»¸ö·½Ïò´«ËÍÊý¾Ý£¬´ÓÖ÷»úµ½É豸»ò
Õß´ÓÉ豸µ½Ö÷»ú£¬¶Ëµã¿ÉÒÔ¿´×÷Êǵ¥ÏòµÄ¹ÜµÀ£¨pipe£©¡£ËùÒÔÎÒÃÇ¿ÉÒÔÕâÑùÈÏΪ£ºÉ豸ͨ³£¾ßÓÐÒ»¸ö»òÕ߸ü¶àµÄÅäÖã¬ÅäÖþ­³£¾ßÓÐÒ»¸ö»òÕ߸ü¶àµÄ½Ó¿Ú£¬½Ó¿Ú
ͨ³£¾ßÓÐÒ»¸ö»òÕ߸ü¶àµÄÉèÖ㬽ӿÚûÓлò¾ßÓÐÒ»¸öÒÔÉϵĶ˵㡣Çý¶¯³ÌÐò°ÑÇý¶¯³ÌÐò¶ÔÏó×¢²áµ½USB×ÓϵͳÖУ¬ÉÔºóÔÙʹÓÃÖÆÔìÉ̺ÍÉ豸±êʶÀ´ÅжÏÊÇ·ñÒѾ­°²
×°ÁËÓ²¼þ¡£USBºËÐÄʹÓÃÒ»¸öÁÐ±í£¨ÊÇÒ»¸ö°üº¬ÖÆÔìÉÌIDºÍÉ豸ºÅIDµÄÒ»¸ö½á¹¹Ì壩À´Åж϶Ô


Ïà¹ØÎĵµ£º

linux ÏÂwhich¡¢whereis¡¢locate¡¢findÇø±ð

µ±ÎÒÃÇÐèҪij¸öÎļþ»òĿ¼ʱ£¬¶øÓÖ²»ÖªµÀ¸ÃÎļþ·ÅÔÚʲôµØ·½£¬Ôõô°ì£¿
ÔÚwindowsÏÂÃ棬¿ÉÒÔͨ¹ý“ËÑË÷”¹¦ÄܽøÐвéÕÒ£¬¶øÔÚlinuxÏ£¬Í¬ÑùÓÐÏàͬµÄ¹¦ÄÜ£º
which       ²é¿´¿ÉÖ´ÐÐÎļþµÄλÖÃ
whereis     ²é¿´ÎļþµÄλÖÃ
locate    &n ......

Linux ÐźÅsignal´¦Àí»úÖÆ Ò»

ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖƵĻù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖƵĴóÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵļ¸¸öϵͳ
µ÷Óá£
       
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆΪÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺ ......

Linux ÐźÅsignal´¦Àí»úÖÆ Èý

Ç°ÃæÁ½½ÚÒѾ­½éÉÜÁËÓйØÐźŵĴ󲿷ÖÖª
ʶ¡£ÕâÒ»½ÚÎÒÃÇÀ´Á˽âÒ»ÏÂÕâЩϵͳµ÷Óá£ÆäÖУ¬ÏµÍ³µ÷ÓÃsignalÊǽø³ÌÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨£¬ÏµÍ³µ÷ÓÃkillÊÇÓÃÀ´·¢ËÍÐźŸøÖ¸¶¨½ø³ÌµÄ¡£Õâ

Á½¸öµ÷ÓÿÉÒÔÐγÉÐźŵĻù±¾²Ù×÷¡£ºóÁ½¸öµ÷ÓÃpauseºÍalarmÊÇͨ¹ýÐźÅʵÏֵĽø³ÌÔÝÍ£ºÍ¶¨Ê±Æ÷£¬µ÷ÓÃalarmÊÇͨ¹ýÐźÅ֪ͨ½ø³Ì¶¨Ê±Æ÷µ ......

xpÏÂLinux˫ϵͳµÄ°²×°

xpÏ´ÓÓ²ÅÌ°²×°Linux£¬°üÀ¨redflag6 RedHat9 fc4¶¼ÀàËÆ£¨¶¼²»Ð£¡£©£¬µ«ÊÇ°²×°¹ý³Ì¾ø¶ÔÏêϸ£¡
1¡£Ê×ÏÈÊÇ×¼±¸Ìõ¼þ
    £¨1£© ÌÚ³öµØ·½£ºxpÏÂÒªÓеط½·ÅLinuxµÄ¾µÏñ£¨.iso£©£¬¶øÇÒËùÔÚ´ÅÅÌҪΪfat32¸ñʽ£¬¿ÉÒÔÓÃnorton partitionmagic£¨ºÜ²»´íµÄ¹¤¾ß£¬ÍøÉϺܶàÏÂÔØ£¡£©½«´ÅÅ̸ñʽת»»  ²»¹ýÒòΪÈí ......

linuxµÄ´¥ÃþÆÁÖ®Èý£º½âÎöandroidƽ̨ÉϵÄtslib¹ý³Ì

£¨1£©ÔÚtslibĿ¼ÏÂÓÐÉèÖû·¾³±äÁ¿µÄÎı¾Îļþ£ºsettsenv.sh£¬ÄÚÈÝ£º
export T_ROOT=/system
export LD_LIBRARY_PATH=$T_ROOT/lib
export TSLIB_CONSOLEDEVICE=
export TSLIB_FBDEVICE=/dev/graphics/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
export TSLIB_CONFFILE=$T_R ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ