我按照ti的TI81XX_PSP_USB_Configuration_Guide手册去配置One port as host and other port as Gadget 。
启动开发板后。我做如下步骤
1. insmod g_ether.ko (usb0 port will be enabled as cdc/rndis gadget)
2. insmod g_zero.ko (usb1 port will enabled as host mode and all devices (eg.USB-HDD/flash drive etc) connected
to this port will be enumerated
3. rmmod g_ether.ko (remove the gadget driver from usb0 port)
4. insmod g_file_storage.ko file=/dev/sda stall=0 buflen=65536 (or use g_mass_storage.ko)
Now the usb0 port can be connected to window/linux host as mass storage gadget with USB-HDD (/dev/sda) as
storage media.
在usb1插入U盘没有反应
usb0用usb标准电缆连接ps,也没有反应
谁知道怎么回事
dg q:
怎么配置usb0模式和usb1模式?