Re: Garnet VM virtual SD card
Quote:
|
Re: Garnet VM virtual SD card
Quote:
|
Re: Garnet VM virtual SD card
I don't want to cross post my response because there is an active Garnet VM beta 3 discussion. So, here's my answer.
|
Re: Garnet VM virtual SD card
I am missing this too from the Garnet VM. Assuming the VM behaves like a normal OS5 device (allowing arm hacks, slot libraries...) a PalmOS slot/filesystem driver could be written that accessed a Maemo-exported filesystem (or even a single folder) using the loopback network connection, which seems available to the VM. Not so fast as a native VM exit, but quite good I think.
Advantages over RAMDrive: NIT's SD Card can be mounted/exported to PalmOS. Easy(ier) file sharing between Maemo & POS. Advantages over hypothetical "GVM Beta 4" with SDCard Support: Right now I don't believe GVM will get another upgrade anytime soon... Disadvantages: documentation for OS5 slot/filesystem driver probably missing/outdated. (BTW, first post -- just bought a used N810, already enjoying it -- I used to be a Palm fanboy, but my T|X broke, and I dislike Palm,Inc. newer devices). |
Re: [Palm OS] Garnet VM virtual SD card
Good news everyone! I managed to mount a card on Garnet VM!
"Card emulation" (a.k.a. HostFS) support is in GarnetVM. However, and don't ask me why, GVM folks do not distribute "gras-client" ARM binary, a "GVM remote control" which is needed to actually mount a filesystem and set up the card emulation. No need to worry! I used gras-client (and a few socat tunnels) on my x86 computer to do the job: Code:
>mountvol /media/mmc1 A few hints: You can get GVM for x86 from the ACCESS website. On the x86 side: $ socat tcp-listen:34130 tcp-connect:tablet:12000 On the tablet side: $ socat tcp-listen:12000 tcp-connect:localhost:34130 $ /usr/bin/gvm/gvm -G (launch GVM with gras server enabled) Now, to trick PC's gras-client into believing he is talking to a local gvm, just launch gvm on the PC too. It won't be able to open the 34130 port again, and gras-client will talk to the tablet's GVM instance instead. So launch gras-client, and do "mountvol /media/mmc1" (be careful; after every gras-client command the socat tunnel will need to be restarted) Sorry for the possibly too short explanation, It's late and I'm tired. Obligatory useless screenshot: http://javispedro.com/maemo/captures/gvmcard.png There's now an easier way for doing this!! Keep reading, it's just a few posts down. |
Re: [Palm OS] Garnet VM virtual SD card
Thanks a lot. Will try. I was trying to make HostFS working from PalmOS side of gvm but got nowhere. As default, HostControl API is implemented but the only interesting method supported is HostTraceOutput, The HostF* API which is used by HostFS filesystem library to implement virtual card did not work for me (EDIT: see below). I tried also various hostfs.prc libraries for both simulator and emulator but with no success.
Did not know about gras-client and GRAS server feature. Many thanks. EDIT: If you want, check output of HostFSTest.prc inside HostFSTest.zip with card enabled. See the code in testHostFS() in src/AppMain.c. Basically all I got is Hello World from HostTraceOutput, nothing more. It did a bit more in Garnet 5.x Simulator. |
Re: [Palm OS] Garnet VM virtual SD card
Quote:
|
Re: [Palm OS] Garnet VM virtual SD card
Quote:
Code:
/media/mmc1 |
Re: [Palm OS] Garnet VM virtual SD card
Quote:
Code:
$ mkdir ~/.gvm/cards Quote:
Reading the docs, it would seem to me that ACCESS wants GVM to behave exactly like a real POS device would do; no reason to fully implementing the Host manager. Time to understand why Plucker & Power48 are crashing ARM GVM but not X86 GVM... |
Re: [Palm OS] Garnet VM virtual SD card
Wow. Just made .gvm/cards/0 file by hand and it works :-)
|
All times are GMT. The time now is 12:22. |
vBulletin® Version 3.8.8