webOS Nation Forums
> webOS apps and software
> webOS development
>
Mojo SDK download?
First
...
10 15 16 17 18 19 20
anyone have this running on nix? I'm on ubuntu using virtual box 3.0.0 (not OSE)
I keep getting grub error 16: "Inconsistent File Name Structure" ... its part of Stage of 2 grub.
I believe it occurs on 'boot/bzimage'
settings in virtualbox are:
OS Type: Linux 2.6 (tried others, including Debian)
Base mem: 256
Processors: 1
Vt-x/amd-v: Disabled (tried Enabled too)
Nested Paging: Disabled
Video Memory: 10 (tried 12 too)
3d accel: disabled
Remote display server: disabled
IDE Primary Master: nova-cust-image-sdk47.vmdk (Normal, 500.00 MB)
CD/DVD-ROM Image: grub.iso
Audio: disabled (tried enabled too)
Network: Adapter 1: PCnet-FAST III (NAT)
Member:
Ameng
at: 03:22 AM 07/07/2009
Originally Posted by czechdev:
Hi there,
though the SDK is a Windows-only application, the Emulator can be run also on Linux or Mac OS (running the rest of the SDK is another thing...). You need to install the SDK via Wine and then run the VirtualBox image.
Here is a short howto:
1. obtain the SDK
2. download and install VirtualBox including the kernel modules
3. download and install Wine
4. run the Windows installer in Wine
5. after the installation is completed, note the image and grub boot ISO location (default: ~/.wine/drive_c/Program Files/Palm/SDK/share/emulator/images/sdk47/nova-cust-image-sdk47.vmdk and ~/.wine/drive_c/Program Files/Palm/SDK/share/emulator/images/sdk47/grub.iso)
6. start VirtualBox
7. create a new Debian machine; specify the .vmdk file as a source image and grub.iso as a CD-ROM boot file (and note the machine name)
8. run the following command to enable HVGA framebuffer resolution in VirtualBox: VBoxManage setextradata "YourMachineName" "CustomVideoMode1" "320x480x32" (set YourMachineName according to your machine name)
9. your new Palm Pre is ready
After start, the machine should produce kernel command output and then show a glowing Palm logo and finally the Luna environment.
Screenshot at img140. imageshack. us/i/pre3.png/
After the above done
Do following will let you ssh into the emulater on Linux:
$ VBoxManage setextradata "YourMachineName" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/SSH/Protocol" TCP
$ VBoxManage setextradata "YourMachineName" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/SSH/GuestPort" "22"
$ VBoxManage setextradata "YourMachineName" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/SSH/HostPort" "5522"
$ ssh -p 5522 root@localhost
Now Enjoy it!
Member:
sidamos
at: 05:23 PM 07/10/2009
Has anyone yet managed to update the emulator to webOS 1.0.4?
Member:
falz
at: 02:22 PM 07/11/2009
Originally Posted by Ameng:
After the above done
Do following will let you ssh into the emulater on Linux:
$ VBoxManage setextradata "YourMachineName" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/SSH/Protocol" TCP
$ VBoxManage setextradata "YourMachineName" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/SSH/GuestPort" "22"
$ VBoxManage setextradata "YourMachineName" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/SSH/HostPort" "5522"
$ ssh -p 5522 root@localhost
Now Enjoy it!
This all works well. I'm now trying to use palm-install from linux to install an app on the SDK. it runs but says it cannot connect. tcpdump shows that it connects on the loopback on port on IPv6. It seems to use random ports, below it's 60025 / 56497, but these will change at random whenever you run palm-install:
[code]
13:13:48.876428 IP6 ::1.60025 > ::1.56497: S 2268047960:2268047960(0) win 32752 <mss 16376,sackOK,timestamp 39718232 0,nop,wscale 6>
13:13:48.876458 IP6 ::1.56497 > ::1.60025: S 2263091095:2263091095(0) ack 2268047961 win 32728 <mss 16376,sackOK,timestamp 39718232 39718232,nop,wscale 6>
13:13:48.876472 IP6 ::1.60025 > ::1.56497: . ack 1 win 512 <nop,nop,timestamp 39718232 39718232>
13:13:48.876503 IP6 ::1.60025 > ::1.56497: F 1:1(0) ack 1 win 512 <nop,nop,timestamp 39718232 39718232>
13:13:48.876518 IP6 ::1.56497 > ::1.60025: F 1:1(0) ack 2 win 512 <nop,nop,timestamp 39718232 39718232>
13:13:48.876526 IP6 ::1.60025 > ::1.56497: . ack 2 win 512 <nop,nop,timestamp 39718232 39718232>
[/code]
It also shows constant chatter on port 6969 as well. Could someone on a platform that has a working palm-install (OSX, Windows) install tcpdump or ethereal and see what ports are hit on loopback when you run palm-install, and if it's using ipv6 or ipv4? This should be easier on OSX than windows since windows doesn't have a true loopback and sniffing on it is a real hack.
Hopefully this will lead us to having a working palm-install to the emulator on linux using the SDK. Or if this is working already, someone point me in the right direction, please.
Member:
falz
at: 07:17 PM 07/11/2009
Originally Posted by falz:
Linux SDK stuff
I broke down and got to a windows machine to inspect things. Indeed 6969 is listening on localhost and is the windows service, "novacomd.exe", so that doesn't help much in the Linux land.
The config file for the Pre SDK does forward two more TCP ports to the emulator: 5858, 9991.
[code]
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/tcp_guest9991_host9991/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/tcp_guest9991_host9991/GuestPort" value="9991"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/tcp_guest9991_host9991/HostPort" value="9991"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/tcp_guest5858_host5858/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/tcp_guest5858_host5858/GuestPort" value="5858"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/tcp_guest5858_host5858/HostPort" value="5858"/>
[/code]
Linux folks may want to add them in if it helps with anything in the future.
First
...
10 15 16 17 18 19 20
webOS Nation Forums
> webOS apps and software
> webOS development
>
Mojo SDK download?