Hello experts,
i need your help i'm trying to do some testing on usb , pc to device is connected by usb, from my pc i have to copy some dummy file to device and read it back.
note: device has no support for otg host.
waiting for expert advice.
Hi Ganesh
one can test it with dd command and using "g_mass_storage gadget"
please look at attached description sect.2.2 Test g_mass_storage module
(from http://repository.timesys.com/buildsources/i/imx-test/imx-test-3.14.28-1.0.0/ )
examples of dd usage:
Re: USB OTG Mass Storage Pefromance
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igor,
I have actually gone through your links, in i.mx6 board is running,using usb i connected to pc, my i.mx6 sd card has 2 partition, sd1 carries uboot, uimage, rootfs and sdb2 is simple config file, sd card is of 8gb divided in 6:2 ratio. when i.mx6 is connected to pc, in pc i can see sdb i.e sdb2 partition. lsusb -l gives storage device. my second partition is fat32, i have done some test.
in pc:
$ cd /media/partition2/
$ sudo dd if=/dev/zero of=tempfile bs=512 count=100 conv=fdatasync,notrunc
copied 105M in 12 sec with 8.1 MB/s
$df -h
i can see change here in partition usage
but when i go device terminal,
df -h gives no change in size to see change i have to reboot my device.
what am i doing is correct. if so what is the way to see run time change in sd card partition in device.
Thanks in advance for helping me.
its 1M not 512. sorry for error.