Qtopia open source 4.2.0 on Greenphone

From GreenphoneWiki

Jump to: navigation, search

First let me say, that some work is still to be done, so do not consider this as a complete or safe instruction.

Contents

[edit] Preparation

Download and save qtopia-opensource-src-4.2.0.tar.gz to a path you like.

Unpack the source with tar xvzf qtopia-opensource-src-4.2.0.tar.gz

[edit] Configure Qtopia

Change to the directory you unpacked the source and do ./configure -device greenphone --prefix=/opt/Qtopia.


when i run this command i got erorr like this:

Qtopia is using the following locations:
Qt          SOURCE tree = /opt/qtopia-opensource-4.2.1/qtopiacore/qt
Qt          BUILD  tree = /opt/qtopia-opensource-4.2.1/qtopiacore/host
Qtopia Core SOURCE tree = /opt/qtopia-opensource-4.2.1/qtopiacore/qt
Qtopia Core BUILD  tree = /opt/qtopia-opensource-4.2.1/qtopiacore/target
Qtopia      SOURCE tree = /opt/qtopia-opensource-4.2.1
Qtopia      BUILD  tree = /opt/qtopia-opensource-4.2.1
 
Checking the compiler (host): OK
Checking the compiler (target): FAIL


There are some more options available, so check out ./configure --help --verbose.

Make sure you have the Greenphone-toolchain (arm-linux-gcc + libs + includes) installed and the path set in devices/greenphone/environment, default is: /opt/toolchains/greenphone/gcc-4.1.1-glibc-2.3.6/arm-linux.

You can copy the complete toolchain from an earlier full-version of the SDK which you can download as an ISO-file from qtopia.net.

[edit] Building Qtopia

After configure has finished, execute make followed by make install. This will build Qtopia and generate all install files in the image subdirectory.

[edit] Transfer to Greenphone

Execute scripts/greenphone-make-flash.sh --qtopia --qtopia-build image/. This generates a flash image in the fimage subdirectory. Now you need to tar this directory. Simply execute cd fimage && tar cfz qtopia-greenphone-update-4.2.0.tar.gz *.

Now copy the result into the correct directory with cp qtopia-greenphone-update-4.2.0.tar.gz /opt/Qtopia/extras/images/. Change to that directory with cd /opt/Qtopia/extras/images/ and remove the symbolic link with rm qtopia-greenphone-update.tar.gz. Then create a new link pointing to the new file with ln -s qtopia-greenphone-update-4.2.0.tar.gz qtopia-greenphone-update.tar.gz.

Finally transfer this to the Greenphone and get it installed with /opt/Qtopia/SDK/scripts/updatedevice.

[edit] TODO

The opensource version seems not to contain any phone specific things, so phoning is not possible. Not even you PIN is asked for. I will take a look at the original 4.1.7 version and check which parts to copy over to get these functions back (if possible).

  • When using configure with --use-phone-libraries, it ends up not finding libqtopiaphone and/or libqtopiaphonemodem. Also there is some search for the associated headers. When I have some more spare time, I try to let it use the old libqtopiaphone. Maybe ask Trolltech to provide those binaries and headers, if possible. A possible goal could be doing the whole stuff by ourselves to then have a totally free phone.

Also see [1] and the FAQ contained therein.

Please post any of your experiences to the discussion page of this article.

[edit] Differences between 4.1.7 and 4.2.0

[edit] bin

4.1.7 provides (missing in 4.2.0)

  • btsettings (link to quicklauncher) [could possibly be solved by adding --bluetooth to configure]
  • callforwarding
  • dualdisplaybasic
  • hciconfig [could possibly be solved by adding --bluetooth to configure]
  • hcitool [could possibly be solved by adding --bluetooth to configure]
  • phonebounce
  • phone-bounce.sh
  • phonenetworks
  • phonesettings
  • restore-default.sh
  • spdtool
  • simapp (link to quicklauncher)

[edit] lib

4.1.7 provides (missing in 4.2.0)

  • libbluetooth [could possibly be solved by adding --bluetooth to configure]
  • libbluez-common [could possibly be solved by adding --bluetooth to configure]
  • libqcanvas.so.4.1.7
  • libqtopiabluetooth.so.4.1.7 [could possibly be solved by adding --bluetooth to configure]
  • libqtopiail.so.1.0.0
  • libqtopianetwork.so.4.1.7
  • libqtopiaphone.so.4.1.7
  • libqtopiaserial.so.4.1.7
  • libqtopiawap.so.4.1.7

[edit] misc.

4.1.7 provides (missing in 4.2.0)

  • plugins/application/libbtsettings.so
  • plugins/application/libsimapp.so
  • plugins/multiplexers/libgreenphonemultiplex.so
  • plugins/obex/libqobex.so
  • plugins/phonevendors/libgreenphonevendor.so
  • qt_plugins/kbddrivers/libgreenphonedetecthandler.so

+ sev. files in the qtopia_default.tgz

Personal tools