AnsweredAssumed Answered

iMX6ULL g_mass_storage. How to share partition between Windows host PC and EVK.

Question asked by Mannsik Chung on Jul 7, 2017
Latest reply on Mar 20, 2018 by Miguel Hortelano

Dear All.


I'm using iMX6ULL EVK Board.

I successfully install module, g_mass_storage by below command.


root@imx6ull14x14evk:~# modprobe g_mass_storage file=/dev/mmcblk1p5
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
LUN: file: /dev/mmcblk1p5
Number of LUNs=1
Number of LUNs=1
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: userspace failed to provide iSerialNumber
g_mass_storage gadget: g_mass_storage ready
root@imx6ull14x14evk:~# g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage


But, when I connect my EVK to Windows PC over OTG2, Windows PC recognize mass storage device but can not access the partition before format it using "Computer Manager --> Disk Management" utility.

Though I already formatted the partition using "mkfs.vfat" command in Linux.


So, I format the partition using Windows PC and copy some files to the partition.

After then, I mounted the partition, "/dev/mmcblk1p5" to a directory.

But, I can not read the contents, I copied by Windows PC, from the EVK's mounted directory. 


How can I share the partition, "/dev/mmcblk1p5", with Windows PC and EVK.


Best Regards.