maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   MADDE QEMU - how to get files copied from runtime? (https://talk.maemo.org/showthread.php?t=55117)

ETalvala 2010-06-04 01:48

MADDE QEMU - how to get files copied from runtime?
 
I just set up the new MADDE release, and I'm trying out the QEMU runtime, with a simple test program that creates a few files (image processing test code). Now, the program runs fine, and creates the files. But how do I copy them off the QEMU runtime? On the N900, I usually just scp them over, since there's a real network connection.

I tried using mad remote mount, and then copying the files to mnt in mad remote shell, but I get a string of errors:
/home/developer $ cp madde/*tmp mnt/
cp: cannot create 'mnt/circle.tmp': State not recoverable
cp: cannot create 'mnt/circle_canvas_in.tmp': State not recoverable
cp: cannot create 'mnt/circle_in.tmp': State not recoverable
cp: cannot create 'mnt/circle_out.tmp': State not recoverable
cp: cannot create 'mnt/circle_sub.tmp': State not recoverable
cp: cannot create 'mnt/circle_sub_in.tmp': State not recoverable
cp: cannot create 'mnt/thumb_in.tmp': State not recoverable
cp: cannot create 'mnt/thumb_out.tmp': State not recoverable

Any suggestions are welcome!

danielwilms 2010-06-04 07:01

Re: MADDE QEMU - how to get files copied from runtime?
 
Hi,

are you using linux? Then you can simply login via ssh, like:

Code:

ssh -p 6666 developer@localhost
Daniel

suihkulokki 2010-06-04 07:08

Re: MADDE QEMU - how to get files copied from runtime?
 
you can scp to the Qemu instance. The ssh port is IIRC 6666.

so just

Code:

scp -P 6666 madde/*tmp  developer@localhost:/home/developer/
notice that for ssh one uses "-p" while for scp "-P".

too 2010-06-04 07:43

Re: MADDE QEMU - how to get files copied from runtime?
 
Hmm, I have to check the copying over mount problems.

with mad remote commands there are 2 ways to copy files:

host -> device (the supported one):

mad remote send <filename>

device -> host (unsupported one ;)

mad remote cmd cat /path/to/filename > local_filename

ETalvala 2010-06-04 19:21

Re: MADDE QEMU - how to get files copied from runtime?
 
Great, I figured there was a virtual network somewhere (just not obviously documented, at least that I can find). Not on Linux, but Cygwin works well enough for ssh/scp.

Although, if I use scp/ssh outside the MADDE terminal, it asks me for a password, and AFAIK, none was ever asked for during the setup of the runtime. Inside the terminal there's no problem, so it's not really an issue, just curious about what the PW might be.

And I suppose the 'cat' option is also feasible, in an emergency. Thanks!


All times are GMT. The time now is 16:42.

vBulletin® Version 3.8.8