webOS Nation Forums >  webOS apps and software >  webOS development > GNU/Linux users : specific thread for howto, problems etc ...
GNU/Linux users : specific thread for howto, problems etc ...

View Poll Results: Do you use Linux for Palm Pre ?
Yes ,and It works flawlessly 2 40.00%
Yes, but I need help to fix gliches 2 40.00%
No, I prefer other plateforms 1 20.00%
No answser 0 0%
Multiple Choice Poll. Voters: 5. You may not vote on this poll

  Reply
 
LinkBack Thread Tools Display Modes
Old 06/30/2009, 03:55 AM   #1 (permalink)
rzr
Member
 
Join Date: Jun 2009
Posts: 17
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Arrow GNU/Linux users : specific thread for howto, problems etc ...

Hi,
Let me open this thread dedicated to GNU/Linux users :

To start, if it helps here is a short tutorial :

http://www.newlc.com/en/palm-webos-sdk-delayed

BTW, any of you can hack qemu ?

regards
__________________
--
Palm SDK on GNU/Linux possible :
http://www.newlc.com/en/palm-webos-sdk-delayed
http://forums.precentral.net/web-os-...blems-etc.html
http://www.newlc.com/en/+-Palm-OS-+.html

Last edited by rzr; 06/30/2009 at 04:45 AM.
rzr is offline   Reply With Quote
Old 06/30/2009, 04:16 AM   #2 (permalink)
Member
 
Join Date: Jun 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 4 Times in 3 Posts
Default

Trying to run the Pre VM in qemu on openbsd/amd64 doesn't work -- qemu segfaults. qemu also complains about the video mode not being half VGA, but that can't be helped -- might be why qemu crashes.

Better luck may be had on VirtualBox under Linux, but it might be fun to try getting qemu to work in a different environment.
ydaraishy is offline   Reply With Quote
Old 06/30/2009, 04:54 AM   #3 (permalink)
Member
 
Join Date: Jun 2009
Posts: 37
Likes Received: 0
Thanks: 8
Thanked 3 Times in 3 Posts
Default

It nearly works with qemu. qemu -cdrom grub.iso nova-cust-image-sdk47.vmdk -boot d -vga std

With "vga std" you can manually choose the 640x480x32 mode and the Pre GUI will start.
__________________
Ludo

www.palmopensource.com - The PalmOS/WebOS open source portal
Palm IIIx -> Palm Tungsten T -> Sharp Zaurus -> Pre? Android?
ldrolez is offline   Reply With Quote
Thanked By: rzr
Old 06/30/2009, 06:16 PM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 4 Times in 3 Posts
Default

It still crashes for me -- maybe it's my qemu version. Which are you running?
ydaraishy is offline   Reply With Quote
Old 06/30/2009, 07:27 PM   #5 (permalink)
Member
 
Join Date: Jun 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 4 Times in 3 Posts
Default

Also of note: the Mac SDK version seems to have a Java version of the emulator(!)

I can't run it, though, I get a java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM exception. Maybe someone on a 32 bit machine could try verifying too.
ydaraishy is offline   Reply With Quote
Old 07/01/2009, 03:50 AM   #6 (permalink)
rzr
Member
 
Join Date: Jun 2009
Posts: 17
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

No the emulator is the same image :

/usr/local/opt/PalmSDK-Mac-0.3.4-8/applications/Palm Emulator.app/Contents/Resources/Images/sdk47/nova-cust-image-sdk47.vmdk

Note: I packaged unpkg for debian to extract the stuff, ask me if needed

Do you have mouse working on qemu ?

ps: I updated the tutorial
__________________
--
Palm SDK on GNU/Linux possible :
http://www.newlc.com/en/palm-webos-sdk-delayed
http://forums.precentral.net/web-os-...blems-etc.html
http://www.newlc.com/en/+-Palm-OS-+.html
rzr is offline   Reply With Quote
Old 07/01/2009, 05:13 AM   #7 (permalink)
Member
 
Join Date: Jun 2009
Posts: 37
Likes Received: 0
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by rzr View Post
Do you have mouse working on qemu ?
The mouse works but the Pre does not like the 640x480 resolution. If you randomly move the mouse and click you'll see some things happening. The -show-cursor option might help.
The same thing happens with virtual box if you choose a 640x480 mode instead of 320x480.
__________________
Ludo

www.palmopensource.com - The PalmOS/WebOS open source portal
Palm IIIx -> Palm Tungsten T -> Sharp Zaurus -> Pre? Android?
ldrolez is offline   Reply With Quote
Old 07/01/2009, 05:22 AM   #8 (permalink)
Member
 
Join Date: Jun 2009
Posts: 37
Likes Received: 0
Thanks: 8
Thanked 3 Times in 3 Posts
Default

And to have ssh access:

qemu -cdrom grub.iso nova-cust-image-sdk47.vmdk -boot d -show-cursor -net nic -net user -redir tcp:2222::22

(in fact, -vga std is not needed, just choose the 640x480x16 videomode)
__________________
Ludo

www.palmopensource.com - The PalmOS/WebOS open source portal
Palm IIIx -> Palm Tungsten T -> Sharp Zaurus -> Pre? Android?
ldrolez is offline   Reply With Quote
Old 07/01/2009, 07:14 AM   #9 (permalink)
Member
 
Join Date: Jun 2009
Posts: 37
Likes Received: 0
Thanks: 8
Thanked 3 Times in 3 Posts
Default

In fact the pseudo touch panel is managed by hidd, and there is a plugin specific to virtualbox (see /etc/hidd/HidPluginsVbox.xml), that's why it does not work with qemu...
__________________
Ludo

www.palmopensource.com - The PalmOS/WebOS open source portal
Palm IIIx -> Palm Tungsten T -> Sharp Zaurus -> Pre? Android?
ldrolez is offline   Reply With Quote
Old 07/01/2009, 08:07 AM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 37
Likes Received: 0
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Another try with qemu:

1- qemu -cdrom grub.iso nova-cust-image-sdk47.vmdk -boot d -show-cursor -net nic -net user -redir tcp:2222::22 -usb -usbdevice wacom-tablet
2- ssh -p 2222 root@localhost
3- vi /etc/event.d/hidd , and replace PLUGINS=/etc/hidd/HidPluginsVbox.xml with PLUGINS=/etc/hidd/HidPluginsQemu.xml
4- shutdown -r now

Now Luna segfaults each time I click !!! :-(
Code:
2009-07-01T13:03:13.686331Z [165] qemux86 kern.info kernel: LunaSysMgr[1264]: segfault at 1c ip 08053322 sp bfb49870 error 4 in LunaSysMgr[8048000+e4000]
__________________
Ludo

www.palmopensource.com - The PalmOS/WebOS open source portal
Palm IIIx -> Palm Tungsten T -> Sharp Zaurus -> Pre? Android?
ldrolez is offline   Reply With Quote
Old 07/01/2009, 06:14 PM   #11 (permalink)
Member
 
Join Date: Jun 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by rzr View Post
No the emulator is the same image :

/usr/local/opt/PalmSDK-Mac-0.3.4-8/applications/Palm Emulator.app/Contents/Resources/Images/sdk47/nova-cust-image-sdk47.vmdk

Note: I packaged unpkg for debian to extract the stuff, ask me if needed

Do you have mouse working on qemu ?

ps: I updated the tutorial
The *emulator* appears to be in Java, not the actual software image. Look at Palm Emulator.app/Contents/Resources/Jars.
ydaraishy is offline   Reply With Quote
Reply

 

Tags
debian, gnu, linux, unix

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0