Dear NXP,
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?
Thanks.
How old is your Windows 10 version? Support for multiple partitions on USB flash drives was added to it in version 1703 I think? Multiple partitions on USB HDD were always supported, but only single partition was visible on USB flash drives in older Windows 10 versions.
Edward
I am using Windows 1909. It is mounting perfectly fine with Ubuntu and MacBook. Problem is with only Windows.
I found this issue in my devices. Is there any solution for the same ?
Please try to run diskpart utility on Windows host and check partitions with these steps:
1) list disk
2) select disk X -- here X is the number from step 2
3) list partition