I met a problem that is about g_mass_storage on my i.MX6SX board with connecting to my PC.
I use below g_mass_storage command to mount 4 partings with USB mass storage on my i.MX6SX and then want to see them on Windows 10 PC:
# modprobe g_mass_storage luns=4 file=/dev/loop0,/dev/loop1,/dev/loop2,/dev/loop3 stall=0 removable=1
# echo > /sys/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/gadget/lun0/file
# echo /dev/mmcblk0p1 > /sys/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/gadget/lun0/file
Finally, I only could see one USB partition on my windows 10 PC, but I could see the total 4 partitions on my Ubuntu PC.
Do you have any idea about this issue?