Getting access to files on your host from the target over a network is very useful. This page lists the ways that this is possible.
USB stick (sneakernet)
You can put files (typically a full Chromium OS image build with
) onto a USB stick, insert it into the target, mount the device and access the files from there.
Since you can use ssh in user space, and we have a 'fuse' module to permit user space filesystems, we can use sshfs to mount directories:
# Make sure fuse is loaded
sudo modprobe fuse
# Create location to mount build directory
# Mount your dev directory
# Take a look
You can hope for about 5MB/s over sshfs on a Cortex-A9 with USB Ethernet.
Using NFSPlease see here
for full details.
NFS requires a lot more setup but has additional features. There are two ways to use NFS from your target:
- NFS root - use an NFS mount as your root file system
- NFS mount - boot as normal from a USB stick / SSD / eMMC, but then later mount a directory on your host machine
Each option has advantages and disadvantages which will be noted below. Both require a certain amount of setup on both the host and target. In NFS terms the host will be the server
(containing the files which we want to export) and the target will be the client
Transfer speed with NFS is faster than sshfs since CPU overhead is less, but is limited by the USB interface if you are using a USB Ethernet dongle. In this case you can expect around 10MB/s.
It is also possible to boot from USB or eMMC, but then later mount a filesystem on your host. This requires some user space utilities.
TODO: Document this once the source tree has the changes.