[Fairphone 2] wouterx:
Hello Fellow Fairphone 2 users

Marius Griphard showed a Fairphone that runs Ubuntu Touch. Unfortunately, there is no full working stable version that I could use as a daily driver. The current stable version (version10) does not boot the gui. The stable version 9 boots the gui, but stops responding after the screen is locked. So my colleagues and I (all Fairphone users) have started using the current existing resources and try to build a working Ubuntu Touch image. Through this forum post we want to share our pre-alpha version with you. Currently the gui works fairly stable, the modem/phone/camera part is not working yet!(Camera is working!) So this image is still not for daily use!

Checked by me:

GUI -> Working

Wifi -> Working

Audio -> working

Camera ->working

Bluetooth ->Working

GSM -> WIP

Motion sensor ->WIP​

Are you a developer or do you have experience with CM/ Ubuntu touch / android building?

Do you want to help us create a fully functional Fairphone 2 Ubuntu Touch image? We have created a special telegram group to share knowledge, ideas and solutions.

Click here to join the Telegram group Fairphone 2 Ubuntu Touch

Important! Make a backup of your data, and from here it is at your own risk.

Our pre-alpha version:

Download boot.img, recovery.img and system.img

https://seafile.nigle.nl/d/62d505f0a7/

1. Reboot your Fairphone 2 to bootloader or fastboot mode.

This can be done by pressing volume down +power buttons or adb reboot bootlader

2. Flash boot.img and recovery.img (use terminal)

fastboot flash boot boot.img
fastboot flash recovery recovery.img

3. Reboot to recovery

Press volume up + power buttons until recovery reboots

As the recovery has started you will see the Cyanogen recovery mode.

4. We need to mount /cache

adb shell mount /cache

5. Download en install version 9 of UBports

ubuntu-device-flash --server=http://system-image.ubports.com --revision=9 touch --channel=ubuntu-touch/stable –device=FP2

The output will look like this:

wouter@ik:~/Downloads/fp2$ ubuntu-device-flash --server=http://system-image.ubports.com --revision=9 touch --channel=ubuntu-touch/stable --device=FP2
2016/11/04 10:35:34 Device is |FP2|
2016/11/04 10:35:34 Flashing version 9 from ubuntu-touch/stable channel and server httXp://system-image.ubports.com to device FP2
2016/11/04 10:35:35 Start pushing /home/wouter/.cache/ubuntuimages/ubuntu-touch/stable/FP2/version-9.tar.xz to device
2016/11/04 10:35:35 Start pushing /home/wouter/.cache/ubuntuimages/pool/keyring-f812366ff5018823acd3918f65837f7ade9679431e6e5ca6627a4e48f8dd643b.tar.xz to device
2016/11/04 10:35:35 Start pushing /home/wouter/.cache/ubuntuimages/gpg/image-signing.tar.xz to device
2016/11/04 10:35:35 Start pushing /home/wouter/.cache/ubuntuimages/gpg/image-master.tar.xz to device
2016/11/04 10:35:35 Start pushing /home/wouter/.cache/ubuntuimages/pool/FP2-1b30ca83a579f494010ed45683401f98ce542fdc4ec2e5d12adac12af551b48e.tar.xz to device
2016/11/04 10:35:35 Done pushing /home/wouter/.cache/ubuntuimages/ubuntu-touch/stable/FP2/version-9.tar.xz to device
2016/11/04 10:35:37 Done pushing /home/wouter/.cache/ubuntuimages/pool/keyring-f812366ff5018823acd3918f65837f7ade9679431e6e5ca6627a4e48f8dd643b.tar.xz to device
2016/11/04 10:35:37 Done pushing /home/wouter/.cache/ubuntuimages/gpg/image-signing.tar.xz to device
2016/11/04 10:35:37 Done pushing /home/wouter/.cache/ubuntuimages/gpg/image-master.tar.xz to device
2016/11/04 10:35:37 Start pushing /home/wouter/.cache/ubuntuimages/pool/ubuntu-b5468e2cbdb3e4a937b9bc8288934c1c3ddd2ffd27426782f9b7f5e800c5b05a.tar.xz to device
2016/11/04 10:35:55 Done pushing /home/wouter/.cache/ubuntuimages/pool/FP2-1b30ca83a579f494010ed45683401f98ce542fdc4ec2e5d12adac12af551b48e.tar.xz to device
2016/11/04 10:36:26 Done pushing /home/wouter/.cache/ubuntuimages/pool/ubuntu-b5468e2cbdb3e4a937b9bc8288934c1c3ddd2ffd27426782f9b7f5e800c5b05a.tar.xz to device
2016/11/04 10:36:26 Created ubuntu_command: /home/wouter/.cache/ubuntuimages/ubuntu_commands789260551
2016/11/04 10:36:26 Rebooting into recovery to flash

6. The fairphone will now boot Ubports Ubuntu Touch version 9. If the phone is booted, reboot to recovery.

Reboot to recovery:

This can be done by pressing volume up +power buttons or adb reboot recovery

As the recovery has started you will see the Cyanogen recovery mode.

7. We need to mount cache and create a directory.

adb shell mount /cache
adb shell mkdir /cache/system

8. Mount system.img to /cache/system

adb shell mount /data/system.img /cache/system

9. Push our system.img to the Fairphone.

adb push system.img /cache/system/var/lib/lxc/android/system.img

10. Unmount /cache/system

adb shell umount /cache/system

11. Reboot

adb reboot

The fairphone 2 will now boot Ubuntu touch.