3. Transferring files to and from Intel Edison
You can't have two machines being the 'master' of the same partition at the same time, so you need to switch the owner. The g_multi driver allows the remote PC to become the master, and cannot allow the Edison to also be writing to the disk at the same time.
You can't have two machines being the 'master' of the same partition at the same time, so you need to switch the owner. The g_multi driver allows the remote PC to become the master, and cannot allow the Edison to also be writing to the disk at the same time.
You first
need to mount the contents of the Edison Drive on your Windows to a local
directory in Edison.
Type in the
following commands to do the above-
- rmmod g_multi
- mkdir /update
- losetup -o 8192 /dev/loop0
/dev/disk/by-partlabel/update
- mount /dev/loop0 /update
You can now see the contents of the Edison drive in
/update. Since it is writable, you can also put files in there.
To reverse this, and make it available on your host machine:
- cd /
- umount /update
- modprobe g_multi
Then pull the usb cable and re-insert it, at which stage the
disk should re-appear on your host machine.
No comments:
Post a Comment