Hi ramakrishna,
You are completely right on the track.
I believe it wouldn’t take a half an hour to do your task,
because the USB MSC device code in the library well abstracts media access APIs,
also because the library has MMC APIs for FatFS.
Fill the routine body of media access APIs in usbdmscglue.c, using corresponding routines in fat_mmcsd.c
C:\ti\AM335X_StarterWare_02_00_01_01\examples\beaglebone\usb_dev_msc\usbdmscglue.c
C:\ti\AM335X_StarterWare_02_00_01_01\third_party\fatfs\port\fat_mmcsd.c
That’s all.
Tsuneo