MADDE/Mounting

(From host to runtime)
m ({{MADDE}})
 
(3 intermediate revisions not shown)
Line 1: Line 1:
 +
{{MADDE}}
 +
=== From host to runtime ===
=== From host to runtime ===
-
Currently MADDE supports mounting of host file system to N900 runtime.
+
Currently [[MADDE]] supports mounting of the host file system to [[Nokia N900|N900]] runtime.
-
This is very convenient feature when developing software.
+
This is a very convenient feature when developing software.
All supported platforms (windows, linux, mac) are supported.
All supported platforms (windows, linux, mac) are supported.
The syntax of mount command is:
The syntax of mount command is:
 +
mad remote [-r runtime] mount <directory>
-
<pre>
+
The command mounts <code>&lt;directory></code> to the N900 to a mount point <code>/home/developer/mnt</code>.
-
$ mad remote [-r runtime] mount <directory>
+
-
</pre>
+
-
 
+
-
The command mounts <tt>&lt;directory></tt> to the N900 to a mount point
+
-
<tt>/home/developer/mnt</tt>.
+
-
mad remote run supports finding executable software with given
+
mad remote run supports finding executable software with given name from this directory.
-
name from this directory.
+
-
In case of mounting fails due to stale previous mount, running
+
In case of mounting fails due to stale previous mount, running <code>mad remote umount</code> fixes this problem -- try it always if mounting fails.
-
<tt>mad remote umount</tt> fixes this problem -- try it always if mounting fails.
+
Example usages:
Example usages:
Line 27: Line 23:
$ mad remote -r n900 mount .
$ mad remote -r n900 mount .
$ mad remote -r n900 shell
$ mad remote -r n900 shell
-
$ cd mnt
+
/home/developer $ cd mnt
-
$ ls
+
/home/developer/mnt $ ls
-
$ exit
+
...
 +
/home/developer/mnt $ exit
</pre>
</pre>
-
<pre>
+
mad remote -r n900 mount .
-
$ mad remote -r n900 mount .
+
mad make hello
-
$ mad make hello
+
mad remote -r n900 run hello
-
$ mad remote -r n900 run hello
+
-
</pre>
+
=== From runtime to host ===
=== From runtime to host ===
-
Currently MADDE does not support mounting a directory from N900
+
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.
-
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.
Linux and Mac hosts can use 'sshfs' fuse filesystem utility.
Line 55: Line 48:
</pre>
</pre>
-
Now host mount point <tt>mnt_n900</tt> sees <tt>/home/developer</tt>
+
Now host mount point <code>mnt_n900</code> sees <code>/home/developer</code>
on n900.
on n900.
 +
 +
[[Category:Development]]

Latest revision as of 12:58, 21 April 2010

Image:Ambox_notice.png
MADDE is currently a technology preview.

These instructions are liable to change as development progresses. If some of the components do not work as expected, please add your question to the MADDE talk thread and follow up the discussion.

tablets-dev.nokia.com is down, see MADDE#Installation for alternatives.


[edit] From host to runtime

Currently MADDE supports mounting of the host file system to N900 runtime.

This is a 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 usages:

$ mad remote -r n900 mount .
$ mad remote -r n900 shell
/home/developer $ cd mnt
/home/developer/mnt $ ls
...
/home/developer/mnt $ exit
mad remote -r n900 mount .
mad make hello
mad remote -r n900 run hello

[edit] 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.