环境:
Uboot:2018.01
Kernel:5.15.29
Rootfs:buildroot-2022.02
测试命令:
$modprobe g_multi file=/dev/mmcblk0p1 stall=0 removable=1 iSerialNumber=20190920 iProduct=RNDIS iManufacturer=mosm
[ 96.763291] using random self ethernet address
[ 96.767798] using random host ethernet address
[ 96.805252] Mass Storage Function, version: 2009/09/11
[ 96.810552] LUN: removable file: (no medium)
[ 96.815203] LUN: removable file: /dev/mmcblk0p1
[ 96.819889] Number of LUNs=1
[ 96.824180] usb0: HOST MAC 9a:3a:04:17:fb:80
[ 96.828504] usb0: MAC a2:b2:f6:7f:d8:27
[ 96.835209] g_multi gadget: Multifunction Composite Gadget
[ 96.840870] g_multi gadget: g_multi ready
$lsmod
Module Size Used by Not tainted
usb_f_acm 16384 1
u_serial 20480 1 usb_f_acm
usb_f_rndis 20480 1
g_multi 16384 0
usb_f_mass_storage 36864 2 g_multi
u_ether 20480 2 usb_f_rndis,g_multi
libcomposite 49152 4 usb_f_acm,usb_f_rndis,g_multi,usb_f_mass_storage
PC 成功识别虚拟串口、RNDIS 设备,但是无法成功识别大容量存储,单独加载 g_mass_storage 时却是可以正常识别的,请问大家是什么原因导致?
另外请问 F1C200S 是否可以在加载 g_multi 模块后,同时完成大容量存储设备+虚拟串口+RNDIS设备的驱动,或大容量存储设备 + 虚拟串口的驱动?
最近编辑记录 mosm (2022-03-23 11:14:47)
离线
请问大家有遇到过这个问题吗?求教晕哥
离线