setusbconfig mass_storage可以配置两个存储设备都挂载到USB上吗?
-
也就是通过setusbconfig,可以同时在PC上看到SD卡和UDISK吗?
[ -d /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0 ] || {
mkdir /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0
echo Tina > /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/lun.0/inquiry_string
}
ln -s /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/ /sys/kernel/config/usb_gadget/g1/configs/c.1/f1- echo "/dev/mmcblk0p1" > /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/lun.0/file
echo "/dev/loop0" > /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/lun.0/file
- echo "/dev/mmcblk0p1" > /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/lun.0/file
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号