按照外围设备驱动操作指南操作以后,连接PC没有反应
Device Drivers —->
USB support —->
<> DesignWare USB3 DRD Core Support
DWC3 Mode Selection (Gadget only mode) —->
<*> USB Gadget Support —->
USB functions configurable through configfs
[*] USB Webcam function
USB Gadget Drivers
< > Ethernet Gadget (with CDC Ethernet support)
Mass Storage Gadget
< > Serial Gadget (with CDC ACM and CDC OBEX support)
Multifunction Composite Gadget
RNDIS + CDC Serial + Storage configuration (NEW)
PHY Subsystem —->
<> HISI USB2 PHY Driver
Hisilicon USB related configuration —->
[] USB DRD0 Mode Select HOST
[ ] USB DRD0 Mode Select DEVICE
File systems —->
Pseudo filesystems —->
{*} Userspace-driven configuration filesystem
insmod libcomposite.ko
insmod usb_f_mass_storage.ko
insmod g_mass_storage.ko file=/dev/mmcblk1p1 luns=1 stall=0 removable=1
这样操作以后,终端没有报错,但是连PC没有反应,是什么原因啊?如何解决?
/usr/ko # sh usb_storage.sh start
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
LUN: removable file: /dev/mmcblk1p1
Number of LUNs=1
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: userspace failed to provide iSerialNumber
g_mass_storage gadget: g_mass_storage ready
切换到host模式接鼠标可以正常工作,所以应该还是驱动的问题,USB口没有问题,所以会是什么样的问题?