I have build the image using yocto "bitbake imx-image-multimedia" and flashed the image to the sdcard and able to boot.
Requirement : using usb otg in device mode need to mount a file and read/write
procedure :
On target board(imx6ull evk)
dd bs=1M count=32 if=/dev/zero of=/backing_file
insmod drivers/usb/gadget/legacy/g_mass_storage.ko file=/backing_file stall=0
On Host Machine(ubuntu)
sudo mkfs.vfat /dev/sdb
sudo mount /dev/sdb /mnt/
I am unable to see the content in backing_file and not able to read and write.
can you help me in procedure what I am doing wrong.