VAR-SOM-MX6 USB OTG as device: Difference between revisions

From Variscite Wiki
No edit summary
(Redirected page to VAR-SOM-MX6 USB OTG)
 
Line 1: Line 1:
{{PageHeader|VAR-SOM-MX6 - USB OTG Device}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__
#REDIRECT [[VAR-SOM-MX6_USB_OTG]]
 
Plug a cable to a A linux host.<br>
 
Folow [http://www.linux-usb.org/gadget/file_storage.html www.linux-usb.org/gadget/file_storage.html] and build the backing_file.<br>
 
On the Target:<br>
<pre>$ modprobe g_mass_storage file=./backing_file
</pre>
On the Host:
<pre>use dmesg and find out your device for example /dev/sdb
$ sudo dd if=/dev/zero of=/dev/sdb bs=128k count=1000
</pre>

Latest revision as of 13:51, 14 September 2016