MADDE/Mounting
(virst version) |
|||
Line 1: | Line 1: | ||
+ | === From host to runtime === | ||
Currently MADDE supports mounting of host file system to N900 runtime. | Currently MADDE supports mounting of host file system to N900 runtime. | ||
Line 8: | Line 9: | ||
The syntax of mount command is: | The syntax of mount command is: | ||
- | + | <pre> | |
$ mad remote [-r runtime] mount <directory> | $ mad remote [-r runtime] mount <directory> | ||
- | + | </pre> | |
- | The command mounts <directory> to the N900 to a mount point | + | The command mounts <tt><directory></tt> to the N900 to a mount point |
- | /home/developer/mnt. | + | <tt>/home/developer/mnt</tt>. |
mad remote run supports finding executable software with given | mad remote run supports finding executable software with given | ||
Line 23: | Line 24: | ||
Example usage: | Example usage: | ||
- | + | <pre> | |
$ make hello | $ make hello | ||
$ mad remote -r n900 mount . | $ mad remote -r n900 mount . | ||
$ mad remore -r n900 run hello | $ mad remore -r n900 run hello | ||
- | + | </pre> | |
+ | |||
+ | === From runtime to host === | ||
Currently MADDE does not support mounting a directory from N900 | Currently MADDE does not support mounting a directory from N900 | ||
Line 39: | Line 42: | ||
Example usage with sshfs (dokan interface is probably similar): | Example usage with sshfs (dokan interface is probably similar): | ||
- | + | <pre> | |
$ mkdir mnt_n900 | $ mkdir mnt_n900 | ||
$ sshfs developer@<addr-of-n900>: mnt_n900 | $ sshfs developer@<addr-of-n900>: mnt_n900 | ||
- | + | </pre> | |
+ | |||
+ | Now host mount point <tt>mnt_n900</tt> sees <tt>/home/developer</tt> | ||
+ | on n900. |
Revision as of 07:45, 28 January 2010
From host to runtime
Currently MADDE supports mounting of host file system to N900 runtime.
This is very convenient feature when developing software.
All supported platforms (windows, linux, mac) are supported.
The syntax of mount command is:
$ mad remote [-r runtime] mount <directory>
The command mounts <directory> to the N900 to a mount point /home/developer/mnt.
mad remote run supports finding executable software with given name from this directory.
In case of mounting fails due to stale previous mount, running mad remote umount fixes this problem -- try it always if mounting fails.
Example usage:
$ make hello $ mad remote -r n900 mount . $ mad remore -r n900 run hello
From runtime to host
Currently MADDE does not support mounting a directory from N900 to host pc, but it is quite easily possible with userspace filesystems in all supported platforms.
Linux and Mac hosts can use 'sshfs' fuse filesystem utility.
Windows hosts can use 'Dokan SSHFS' software (see http://dokan-dev.net/en/).
Example usage with sshfs (dokan interface is probably similar):
$ mkdir mnt_n900 $ sshfs developer@<addr-of-n900>: mnt_n900
Now host mount point mnt_n900 sees /home/developer on n900.