在调试USB外设时,输入以下命令可查看是否检测到设备插入及判断驱动是否加载成功。
# mount -t usbfs none /proc/bus/usb
# cat /proc/bus/usb/devices
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0b95 ProdID=772b Rev= 0.02
S: Manufacturer=ASIX Elec. Corp.
S: Product=AX88772C
S: SerialNumber=0002F2
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=200mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=asix
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=128ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 6 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=05e3 ProdID=0731 Rev= 0.04
S: Product=USB Storage
S: SerialNumber=000000000033
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 96mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
开启方法:
kernel/arch/ARM64/defconfig:
打开宏 CONFIG_USB_DEVICEFS=y
如果系统还不支持此驱劝,需要下载附件中的驱动进行合并。
1.MTK强开USB调试(内附教程):
http://bbs.16rd.com/forum.php?mod=viewthread&tid=24408&fromuid=28165
(出处: 一牛网)
2.MTK FLASH 工具大集合 含驱动mtkusb驱动,IMEI工具 驱动
http://bbs.16rd.com/forum.php?mod=viewthread&tid=27425&fromuid=28165
(出处: 一牛网)