lorn
Qt
Qtopia
KDE
Greenphone
Posted by lorn
 in Qt, Qtopia, KDE, Greenphone
 on Friday, January 04, 2008 @ 04:58

Trolltech’s Qtopia sdk runs inside a vmware virtual machine.

Since VMware is not open source, and does not have a free Mac OSX client, I began looking for an open source vm, and found one called VirtualBox. Not only is this open source, but it is cross platform - Linux, Windows and Mac OS X (Intel only). oh joy!

With the latest version, at least on Windows, you can easily use it to run virtual machine created for vmware, including the scsi disks. This makes it possible to run the Greenphone and upcoming FIC Neo Qtopia SDK in an open source virtual machine (more or less).

I had to do a few things to make it work:

  • Install qtopia SDK
  • Create a new virtualbox
  • add the rootfs.vmdk (as Primary Master), qtopia.vmdk (as Primary Slave) and toolchain.vmdk (as Secondary Slave) (for version 4.3.1 you will only have to use the rootfs.vmdk, or even install your fav linux distribution like Kubuntu)
  • Start vm
  • log into root
  • remove vmware-tools entry from /etc/rc5.d
  • run dpkg-reconfigure xserver-xorg to reconfigure the X server
  • once into X, mount the drives mount /dev/hdb1 -t auto /opt/Qtopia and mount /dev/hdd1 -t auto /usr/local
  • for version 4.3.1, you can mount the qtopia.iso and tar -xvpjf the files to the right spots

*Notes* - the eth device seemed to come up as eth1
- export PATH=/opt/Qtopia/SDK/scripts:$PATH

One cool thing about the free virtualbox over vmware, is the use of shared host directories. The VM can mount directories on your host machine! and, another of course, is that it’s open source. I didn’t try to compile the VirtualBox source because I am lazy. As well, it seems to have support for serial ports too (good for the Neuros OSD!).

It did seem to have some bugs with USB handling. lsusb seemed to think that all usbdevices are 0000:0000 ;( which might be a problem.
and it kept failing to ‘attach’ to any USB device I threw at it.

To install the virtualbox guest additions, I had to sudo mount /dev/hdc -o remount,ro,exec

VirtualBox downloads

This means I can also run the Neuros OSD SDK in a virtualbox machine as well!

At any rate. the year end holidays are a bit different here than I am used to. For one, it’s summer, and hot. Well, it would be hot if it weren’t raining for the last two weeks (drought? you call this a drought?!?). Starting to feel a bit soggy, but it is supposed to dry up. Santa wears short pants, and still sweats heaps. Instead of having a nice dinner by the cozy fire, people are outside, at the beach, having a BBQ (even when it rains, thanks to covered areas).

2007 was a great year!

  • We got Qtopia running and making voice calls and txt messages on the FIC Neo phone in one week.
  • Vast improvements in Qt and Qtopia that happened.
  • TT hired more and more KDE, Opie and open source developers.
  • Qt webit
  • my daughter Jasmine was born

and tons a stuff I haven’t or can’t mention

oh, did I mention the December issue of Linux Journal has an interesting article “Security in Qtopia Phones”?

It’s gonna be a great 2008! (C’mon KDE 4!!!)

6 Responses to “VirtualBox and Qtopia SDK”

» Posted by Anon
 on Friday, January 04, 2008 @ 06:45

For USB to work you probably need to mount usbfs at /proc/bus/usb which is no longer done automaticaly by recent distribs but is still required by virtualbox. You also have to setup permissions for entries in /proc/bus/usb correctly (just use devgid and devmode options when mounting).

» Posted by Anon
 on Friday, January 04, 2008 @ 06:47

Oh, and of course I what to say that I’m looking forward to baying a phone with FOSS version of Qtopia ! Thank you for you great work on it !

» Posted by Andy
 on Friday, January 04, 2008 @ 09:16

For the usb stuff, as written above for disks there must be fstab configured with propper permissions. And to enable full USB support install vbox from their site (not from distribution repo). That one has full usb support and also ability to bridge network, so your virtual gests have IPs visible on local network.

» Posted by Jason
 on Saturday, January 05, 2008 @ 20:25
» Posted by Augu
 on Monday, January 07, 2008 @ 17:02

Is there any roadmap or time schedule for selling the NIC Neo phone with Qtopia? How much time we have to wait for this happening? 6 months? One year?

I have to change my cellphone… :)

» Posted by Alek Silverstone
 on Friday, January 11, 2008 @ 10:55

About FIC Neo1973

http://lists.openmoko.org/pipermail/community/2008-January/012499.html
We still expect to start shipping Neo FreeRunner sometime in the next few months. As always, we can’t be more specific, because we’re not sure.

:(