Linux USB "On The Go" (OTG) on OMAP H2
The new USB "On-The-Go" (OTG) capabilities are not yet widely
understood, or even generally available. The most visible feature of
OTG is that it defines the behavior of intelligent "Dual-Role" USB
devices, such as cameras or wireless handsets, which act either as USB
host or as USB peripheral. That role choice is made each time the
device is used, rather than once when it's designed, giving a
flexibility previously unknown with USB. Using a new kind of USB
connector, OTG lets USB support more "peer to peer" style application
models. You could
Hook a cell phone to a laptop to synchronize schedules, get new audio recordings, or swap other documents;
Print a picture from a camera to a USB printer;
Connect a USB keyboard to your PDA;
Update game data on your portable console over USB.
This document should be useful to developers investigating the use
of Linux to implement OTG-capable products. It presents the USB OTG
support contributed by Texas Instruments for the OMAP
H2 software development platform running an Linux 2.6 kernel. That
builds on the standard Linux USB host and peripheral side driver
frameworks, making small additions as described here. It also includes
drivers implementing OTG support on OMAP platforms.
OMAP H2 Platform
The H2 software development platform includes a Texas Instruments
OMAP 5912/16xx series processor, with an ARM 926TEJ cpu, a DSP, battery
power management, and a wealth of other features often used in cell
phones. USB support includes:
Three integrated USB controllers: OHCI host, USB Device Controller
(UDC), and an OTG controller, all supporting full speed USB (12
Mbit/s).
"Mini-AB" connector on the H2 sample board. All "dual-role" OTG devices should have exactly one such external USB connector.
External USB OTG transceiver, Philips ISP1301 (controlled over I2C), with an alternate software-visible wiring option.
USB VBUS is hooked up to a TI TPS650
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍ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 ......
Ò»¡¢µ¼³öÊý¾Ý¿âÓÃmysqldumpÃüÁעÒâmysqlµÄ°²×°Â·¾¶£¬¼´´ËÃüÁîµÄ·¾¶£©£º
1¡¢µ¼³öÊý¾ÝºÍ±í½á¹¹£º
mysqldump -uÓû§Ãû -p Êý¾Ý¿âÃû > Êý¾Ý¿âÃû.sql
#/usr/local/mysql/bin/mysqldump -uroot -p abc > abc.sql
Çûسµºó»áÌáʾÊäÈëÃÜÂë
2¡¢Ö»µ¼³ö±í½á¹¹
mysqldump -uÓû§Ãû -p -d Êý¾Ý¿âÃû > Êý¾Ý¿âÃû.sql
# ......
¡¶¾«Í¨unixÏÂcÓïÑÔ-±à³ÌÓëÏîĿʵ¼ù¡·Ñ§Ï°±Ê¼Ç
1.¿âµÄ·ÖÀà
¿â¿É·ÖΪ¾²Ì¬¿âºÍ¶¯Ì¬¿âÁ½ÖÖ¡£
a.¾²Ì¬¿â
¾²Ì¬¿âµÄ´úÂëÔÚ±àÒëʱÁ´½Óµ½Ó¦ÓóÌÐòÖУ¬Òò´Ë±àÒëʱ¿âÎļþ±ØÐè´æÔÚ£¬±ØÐëҪͨ¹ý"-l"²ÎÊý´«µÝ¸ø±àÒëÆ÷¡£Ó¦ÓóÌÐò¿ªÊ¼Ö´ÐÐʱ£¬¿âº ......
Linux´´Ê¼ÈËLinus
2009Äê12ÔÂ28ÈÕÊÇLinux´´Ê¼ÈËLinusµÄ40ËêÉúÈÕ¡£
19ÄêÇ°£¬ÔÚÊ¥µ®½ÚºóºÕ¶ûÐÁ»ùÉ̵꿪ҵµÄµÚÒ»Ì죬Linus³åÏòµçÄÔÉ̵꣬ÓÃÊ¥µ®½ÚºÍÉúÈÕÀñ½ð¹ºÂòÁËËûµÄµÚһ̨PC£ºÒ»Ì¨DX33 80386¼ÆËã»ú£¬4 Megs RAM£¬40 MegabyteÓ²ÅÌ£¬Ã»ÓÐÐͬ´¦ÀíÆ÷¡£LinusÖ®ËùÒÔÑ¡Ôñ80386£¬¶ø²»ÊÇAmiga»òÆ»¹ûÂó½ðËþµçÄÔ£¬×îÖ÷ÒªÔÒòÊÇËûÏ ......