VAR-SOM-MX6 USB OTG as device: Difference between revisions
From Variscite Wiki
(Created page with "{{PageHeader|VAR-SOM-MX6 - USB OTH Device}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__") |
No edit summary |
||
Line 1: | Line 1: | ||
{{PageHeader|VAR-SOM-MX6 - USB | {{PageHeader|VAR-SOM-MX6 - USB OTG Device}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__ | ||
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> |
Revision as of 06:20, 14 December 2015
VAR-SOM-MX6 - USB OTG Device
Plug a cable to a A linux host.
Folow www.linux-usb.org/gadget/file_storage.html and build the backing_file.
On the Target:
$ modprobe g_mass_storage file=./backing_file
On the Host:
use dmesg and find out your device for example /dev/sdb $ sudo dd if=/dev/zero of=/dev/sdb bs=128k count=1000