The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Adaptations/libhybris/Install SailfishOS for fp2

From Mer Wiki
< Adaptations | libhybris(Difference between revisions)
Jump to: navigation, search
(Requirements for installation)
m
(44 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
Items marked with FIX have a known fix and will be included in next release.
 
Items marked with FIX have a known fix and will be included in next release.
 
* Jolla Store works.
 
* Jolla Store works.
* Compass direction sensor not working.
+
* Double tap to wake does not work. (Probably not supported by firmware)
* Possibly some issues with proximity sensor during calls. (It is possible to calibrate the proximity sensor, which should fix the issues, but using the needed firmware causes poor battery life in Sailfish OS)
+
* Please report if there are still random failures of finding resolutions for secondary camera by camera module detection service during installation or update.
* Random phone app freezes on call end.
+
** To solve the issue remove /etc/droid-cameradetect-module-main.conf and /etc/droid-cameradetect-module-front.conf and run "systemctl restart droid-cameradetect"
* Camera button not supported in Sailfish camera app.
+
** Repeat the previous instruction until both cameras work (configuration is at /etc/dconf/db/vendor.d/jolla-camera-hw.txt and the validity of resolutions for secondary camera can be checked also manually)
* Vibrator effect is very weak.
+
* Double tap to wake does not work.
+
  
 
=== Requirements for installation===
 
=== Requirements for installation===
* '''Opensource OS 16.11 Android from Fairphone.'''
+
* '''Opensource OS 18.04 Android from Fairphone.'''
* Latest Sailfish OS release: https://storage.googleapis.com/fairphone-updates/sailfishos-fp2-sibon-release-2.0.5.6-alpha3.zip.
+
* Latest Sailfish OS release: http://images.devaamo.fi/sfa/fp2-sibon/beta6/sailfishos-fp2-sibon-release-3.0.3.9-beta6.zip.
 
* Computer with fastboot installed for fastboot installation.
 
* Computer with fastboot installed for fastboot installation.
* Patience and luck.
 
  
 
=== Installation steps ===
 
=== Installation steps ===
* '''Current Sailfish OS installation will be overwritten when Sailfish OS installation zip is used and all data in Sailfish OS will be removed so backup everything you might need. If you want to update from and existing release check the OTA update section below'''
+
* If you want to update from an existing release, check the [[Adaptations/libhybris/Install_SailfishOS_for_fp2#Over-the-Air_updates_.28OTA.29|OTA update section below]].
* '''Requires Fairphone Opensource OS 16.11 https://storage.googleapis.com/fairphone-updates/3e8ac604-3cfd-41c1-8fd5-5fd6158e8a37/fp2-sibon-16.11.0-manual-userdebug.zip (or Fairphone OS 1.9.3), not tested on other releases.'''
+
 
* Install Android (if not installed already) using fastboot. Only flash system.img and recovery.img. DO NOT flash other partitions.
+
 
** If you have already installed the whole Android zip of any Fairphone release greater or equal to 16.08 then download http://storage.googleapis.com/fairphone-updates/FP2-gms59-1.5.1-manual.zip, extract the files from the zip and edit the flash.bat or flash.sh scripts and remove the lines containing aboot, boot, system and recovery, then run the flash.bat or flash.sh.
+
* If instead you want to use Sailfish OS installation zip, all data in Sailfish OS will be removed, so backup everything you might need.  
* Extract filesystem images from Android zip on your computer.
+
* Calibrate proximity sensor in Android before installing Sailfish OS.
 +
* '''Requires Fairphone Opensource OS 18.04 https://storage.googleapis.com/fairphone-updates/6cb84543-9614-425d-9ab4-9e80baca2b8f/fp2-sibon-18.04.1-manual.zip (or Fairphone OS 18.04), not tested on other releases.'''
 +
* Install the required Android version (if not installed already) using fastboot and the steps below.
 +
** Extract filesystem images from Android zip on your computer.
 
** Enter fastboot mode on your phone by turning off device, when device is powered down press and hold volume down button and then plug USB cable.
 
** Enter fastboot mode on your phone by turning off device, when device is powered down press and hold volume down button and then plug USB cable.
 
** Open a terminal on your computer and go to the folder where you extracted the file system images.
 
** Open a terminal on your computer and go to the folder where you extracted the file system images.
 
** Check that the device is detected with <tt>fastboot devices</tt>
 
** Check that the device is detected with <tt>fastboot devices</tt>
** <tt>fastboot flash system system.img</tt>
+
** <tt>./flash.sh</tt>
** <tt>fastboot flash recovery recovery.img</tt>
+
** Flash script will automatically reboot the device but you don't need to boot to Android, you can instead shutdown the device and then boot to TWRP for Sailfish OS installation.
** <tt>fastboot reboot</tt>
+
 
* '''Sailfish OS installation'''
 
* '''Sailfish OS installation'''
** Copy the downloaded Sailfish OS OTA zip to sdcard or to somewhere outside sailfish rootfs in userdata partition
+
** Copy the downloaded Sailfish OS zip to sdcard or to somewhere outside sailfish rootfs in userdata partition
** Boot to TWRP recovery, disable Zip file signature verification and install Sailfish OTA zip over Android (without erasing system partition).
+
** Boot to TWRP recovery (when device is powered down press and hold volume up button and power buttons until TWRP starts), disable Zip file signature verification and install Sailfish OS zip over Android (without erasing system partition).
 
** Reboot
 
** Reboot
  
=== WIP Over-the-Air updates (OTA) ===
+
=== Over-the-Air updates (OTA) ===
  
 
* Backup of Sailfish OS user files to a sdcard or to another device is strongly encouraged before updating Sailfish OS.
 
* Backup of Sailfish OS user files to a sdcard or to another device is strongly encouraged before updating Sailfish OS.
 
* You can be on any Sailfish OS version you have installed before.
 
* You can be on any Sailfish OS version you have installed before.
* If you are updating from alpha1 or alpha2 you will need to manually flash system.img from Fairphone Opensource OS 16.11 fastboot image to system partition using fastboot '''after updating Sailfish OS'''.
+
* '''IMPORTANT!''' If you are updating from alpha4 or earlier version you will need to manually flash system.img from Fairphone Opensource OS 18.04 fastboot image to system partition using fastboot '''after updating Sailfish OS'''.
 
** Check previous chapter for instructions how to use fastboot.
 
** Check previous chapter for instructions how to use fastboot.
 
** <tt>fastboot flash system system.img</tt>
 
** <tt>fastboot flash system system.img</tt>
 +
** Also the other partitions (except boot partition) can be flashed (rpm, sbl1, tz, splash and aboot) can be flashed. Check flash.sh file for details.
 +
* '''IMPORTANT!''' If you are updating from any older release (beta4 or earlier) you can now flash modem partition from 18.04 Fairphone Open OS release by extracting the fastboot images from the manual installation zip as described in installation instructions above.
 +
** Check previous chapter for instructions how to use fastboot.
 +
** <tt>fastboot flash modem NON-HLOS.bin</tt>
 
* Open shell with normal nemo user preferrably via ssh.
 
* Open shell with normal nemo user preferrably via ssh.
 
* Updating Sailfish OS via commandline:
 
* Updating Sailfish OS via commandline:
  RELEASE=2.0.5.6
+
* Updating from 2.0.5.6 (alpha3), 2.1.0.11 (alpha4), 2.1.3.7 (alpha5), 2.1.4.14 (alpha6), 2.2.0.29 (beta1), 2.2.1.18 (beta2), 3.0.0.8 (beta3), 3.0.1.11 (beta4), 3.0.2.8 (beta5)
 +
   
 +
ssu release 3.0.3.9
 +
 +
ssu lr
 +
# Check the output that you have repos adaptation-community and adaptation-community-common
 +
# if either of those is missing run these commands
 +
# devel-su touch /usr/share/ssu/features.d/adaptation-community.ini
 +
# devel-su touch /usr/share/ssu/features.d/adaptation-community-common.ini
 +
 +
# You may have many of OpenRepos enabled. It's recommended to disable them, even
 +
# though version --dup will do its best-effort to isolate repositories:
 +
ssu lr | grep openrepos
 +
 +
devel-su zypper clean -a
 +
devel-su zypper ref -f
 +
 +
version --dup
 +
# if above fails, try again
 +
# version --dup
 +
 +
sync
 +
poweroff
 +
 
 +
* Updating from pre-2.0.5.6 releases (alpha1 or alpha2)
 +
RELEASE=3.0.3.9
 
   
 
   
 
  devel-su sed -i -e 's#^adaptation=.*$#adaptation=http://repo.merproject.org/obs/nemo:/testing:/hw:/%(vendor):/%(adaptation)/sailfishos_%(release)/#' /usr/share/ssu/repos.ini
 
  devel-su sed -i -e 's#^adaptation=.*$#adaptation=http://repo.merproject.org/obs/nemo:/testing:/hw:/%(vendor):/%(adaptation)/sailfishos_%(release)/#' /usr/share/ssu/repos.ini
Line 59: Line 87:
 
   
 
   
 
  ssu lr
 
  ssu lr
  # Check the output that the adaptation0 and extra repos have the correct urls  
+
  # Check the output that the adaptation0 and extra repos have the correct urls and the repos are enabled
 
  # (note that the url for adaptation0 mentioned above has variables which will be replaced with values in ssu lr output).
 
  # (note that the url for adaptation0 mentioned above has variables which will be replaced with values in ssu lr output).
 
  # also check that no other similar repos exist.
 
  # also check that no other similar repos exist.
Line 74: Line 102:
 
  version --dup
 
  version --dup
 
   
 
   
  # After update check using ssu lr that you have repos adaptation-community and adaptation-community-common
+
  # After update check that you have repos adaptation-community and adaptation-community-common in output of
 +
ssu lr
 
  # if either of those is missing run these commands
 
  # if either of those is missing run these commands
 
  # devel-su touch /usr/share/ssu/features.d/adaptation-community.ini
 
  # devel-su touch /usr/share/ssu/features.d/adaptation-community.ini
Line 88: Line 117:
 
* Software-related bugs (Sailfish OS): first search in https://together.jolla.com. If not found, add your question and tag with "porting".
 
* Software-related bugs (Sailfish OS): first search in https://together.jolla.com. If not found, add your question and tag with "porting".
 
* App bugs (e.g. an app doesn't scale well on different screens): contact its developer.
 
* App bugs (e.g. an app doesn't scale well on different screens): contact its developer.
 +
* Device specific bug tracker https://bugtracker.fairphone.com/project/fairphone-community-port-sailfishos-for-fp2/
 
* Problems which depend on hardware: at the Nemo Mobile Project: search existing http://bit.ly/port-bugs; add new http://bit.ly/port-new-bug.
 
* Problems which depend on hardware: at the Nemo Mobile Project: search existing http://bit.ly/port-bugs; add new http://bit.ly/port-new-bug.
 
* Please do not contact Fairphone, Jolla Care or Jolla Developer Care, as this is community's build for other phones.
 
* Please do not contact Fairphone, Jolla Care or Jolla Developer Care, as this is community's build for other phones.
  
 
=== Changelog ===
 
=== Changelog ===
 +
 +
'''Beta6 - 31 May 2019'''
 +
* Sailfish OS 3.0.3.9
 +
* '''Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.'''
 +
* Fixed random failure to update camera configurations when installing or updating Sailfish OS
 +
 +
'''Beta5 - 8 April 2019'''
 +
* Sailfish OS 3.0.2.8
 +
* '''Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.'''
 +
* Enabled on-demand proximity sensor support which makes using firmware from 18.04 possible
 +
* Fixed browser crash when seeking Youtube videos
 +
* Fixed distortion of some Youtube videos in browser
 +
 +
'''Beta4 - 2 February 2019'''
 +
* Sailfish OS 3.0.1.11
 +
* '''Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.'''
 +
* Camera improvements (requires a separate community camera app)
 +
** Effects (i.e. color filters)
 +
** Exposure modes (including HDR)
 +
 +
'''Beta3 - 15 November 2018'''
 +
* Sailfish OS 3.0.0.8
 +
* '''Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.'''
 +
* Camera improvements
 +
** Video flash torch re-enabled
 +
** More supported manual ISO values
 +
* Enabled step counter sensor
 +
 +
'''Beta2 - 22 September 2018'''
 +
* Sailfish OS 2.2.1.18
 +
* '''Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.'''
 +
 +
'''Beta1 - 21 June 2018'''
 +
* Sailfish OS 2.2.0.29
 +
* '''Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.'''
 +
* Compass sensor fixed
 +
* Improved virtual keyboard feedback
 +
* WebGL fixed in browser
 +
 +
'''Alpha6 - 21 April 2018'''
 +
* Sailfish OS 2.1.4.14
 +
* '''Fairphone Opensource OS 18.03 or Fairphone OS 18.03 required.'''
 +
* Added Bluetooth LE support
 +
* Performance improvement
 +
 +
'''Alpha5 - 5 March 2018'''
 +
* Sailfish OS 2.1.3.7
 +
* First release based on Android 6 base
 +
* '''Fairphone Opensource OS 18.02 or Fairphone OS 18.02 required.'''
 +
* Support for new Fairphone display and camera modules.
 +
* Camera button supported in Sailfish camera app.
 +
* Improved vibrator effects.
 +
 +
'''Alpha4 - 27 June 2017'''
 +
* Sailfish OS 2.1.0.11
 +
* OTA-only release, no new installation zip.
 +
* '''Fairphone Opensource OS 16.10 or Fairphone OS 1.8.1 recommended, not tested on other releases.'''
 +
* Fix LED regression in alpha3.
 +
 
'''Alpha3 - 21 December 2016'''
 
'''Alpha3 - 21 December 2016'''
 
* Sailfish OS 2.0.5.6
 
* Sailfish OS 2.0.5.6
* '''Fairphone Opensource OS 16.11 or Fairphone OS 1.9.3 recommended, not tested on other releases.'''
+
* '''Fairphone Opensource OS 16.10 or Fairphone OS 1.8.1 recommended, not tested on other releases.'''
 
* Dual-SIM support added.
 
* Dual-SIM support added.
 
* FM Radio Media app plugin added.
 
* FM Radio Media app plugin added.

Revision as of 20:10, 31 May 2019

Notes for installing Sailfish OS on the Fairphone 2 (fp2).

Contents

Hardware Support

Legend:  Y  - Working (y=hack),  Y  - HAL works, not hooked up to UI/MW/init yet,  N  - Not working,  ?  - Untested,  N/A  - N/A on device.
Device released Linux
Kernel
Display Touch LED Audio NFC Bluetooth GSM WLAN GPS Camera Fingerprint Sensors Keys Vibra Haptics Power
Mgmt.
RTC
alarms
USB FM Radio
SMS Voice Data Connect Hotspot ALS PS Accel. Gyro. Magne. Vol+/- Home Net. Charge
2015/12 3.4.0 Y Y Y Y N/A Y Y Y Y Y Y Y Y N/A Y Y Y Y Y Y N/A Y Y Y Y Y Y Y

Status

Items marked with FIX have a known fix and will be included in next release.

  • Jolla Store works.
  • Double tap to wake does not work. (Probably not supported by firmware)
  • Please report if there are still random failures of finding resolutions for secondary camera by camera module detection service during installation or update.
    • To solve the issue remove /etc/droid-cameradetect-module-main.conf and /etc/droid-cameradetect-module-front.conf and run "systemctl restart droid-cameradetect"
    • Repeat the previous instruction until both cameras work (configuration is at /etc/dconf/db/vendor.d/jolla-camera-hw.txt and the validity of resolutions for secondary camera can be checked also manually)

Requirements for installation

Installation steps


  • If instead you want to use Sailfish OS installation zip, all data in Sailfish OS will be removed, so backup everything you might need.
  • Calibrate proximity sensor in Android before installing Sailfish OS.
  • Requires Fairphone Opensource OS 18.04 https://storage.googleapis.com/fairphone-updates/6cb84543-9614-425d-9ab4-9e80baca2b8f/fp2-sibon-18.04.1-manual.zip (or Fairphone OS 18.04), not tested on other releases.
  • Install the required Android version (if not installed already) using fastboot and the steps below.
    • Extract filesystem images from Android zip on your computer.
    • Enter fastboot mode on your phone by turning off device, when device is powered down press and hold volume down button and then plug USB cable.
    • Open a terminal on your computer and go to the folder where you extracted the file system images.
    • Check that the device is detected with fastboot devices
    • ./flash.sh
    • Flash script will automatically reboot the device but you don't need to boot to Android, you can instead shutdown the device and then boot to TWRP for Sailfish OS installation.
  • Sailfish OS installation
    • Copy the downloaded Sailfish OS zip to sdcard or to somewhere outside sailfish rootfs in userdata partition
    • Boot to TWRP recovery (when device is powered down press and hold volume up button and power buttons until TWRP starts), disable Zip file signature verification and install Sailfish OS zip over Android (without erasing system partition).
    • Reboot

Over-the-Air updates (OTA)

  • Backup of Sailfish OS user files to a sdcard or to another device is strongly encouraged before updating Sailfish OS.
  • You can be on any Sailfish OS version you have installed before.
  • IMPORTANT! If you are updating from alpha4 or earlier version you will need to manually flash system.img from Fairphone Opensource OS 18.04 fastboot image to system partition using fastboot after updating Sailfish OS.
    • Check previous chapter for instructions how to use fastboot.
    • fastboot flash system system.img
    • Also the other partitions (except boot partition) can be flashed (rpm, sbl1, tz, splash and aboot) can be flashed. Check flash.sh file for details.
  • IMPORTANT! If you are updating from any older release (beta4 or earlier) you can now flash modem partition from 18.04 Fairphone Open OS release by extracting the fastboot images from the manual installation zip as described in installation instructions above.
    • Check previous chapter for instructions how to use fastboot.
    • fastboot flash modem NON-HLOS.bin
  • Open shell with normal nemo user preferrably via ssh.
  • Updating Sailfish OS via commandline:
  • Updating from 2.0.5.6 (alpha3), 2.1.0.11 (alpha4), 2.1.3.7 (alpha5), 2.1.4.14 (alpha6), 2.2.0.29 (beta1), 2.2.1.18 (beta2), 3.0.0.8 (beta3), 3.0.1.11 (beta4), 3.0.2.8 (beta5)
ssu release 3.0.3.9

ssu lr
# Check the output that you have repos adaptation-community and adaptation-community-common
# if either of those is missing run these commands
# devel-su touch /usr/share/ssu/features.d/adaptation-community.ini
# devel-su touch /usr/share/ssu/features.d/adaptation-community-common.ini

# You may have many of OpenRepos enabled. It's recommended to disable them, even
# though version --dup will do its best-effort to isolate repositories:
ssu lr | grep openrepos

devel-su zypper clean -a
devel-su zypper ref -f

version --dup
# if above fails, try again
# version --dup

sync
poweroff
  • Updating from pre-2.0.5.6 releases (alpha1 or alpha2)
RELEASE=3.0.3.9

devel-su sed -i -e 's#^adaptation=.*$#adaptation=http://repo.merproject.org/obs/nemo:/testing:/hw:/%(vendor):/%(adaptation)/sailfishos_%(release)/#' /usr/share/ssu/repos.ini

ssu rr dhd
ssu rr extra
ssu ar extra http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_$RELEASE/

ssu release $RELEASE

ssu lr
# Check the output that the adaptation0 and extra repos have the correct urls and the repos are enabled
# (note that the url for adaptation0 mentioned above has variables which will be replaced with values in ssu lr output).
# also check that no other similar repos exist.

# You may have many of OpenRepos enabled. It's recommended to disable them, even
# though version --dup will do its best-effort to isolate repositories:
ssu lr | grep openrepos

devel-su zypper clean -a
devel-su zypper ref -f

version --dup
# if above fails, try again
version --dup

# After update check that you have repos adaptation-community and adaptation-community-common in output of
ssu lr
# if either of those is missing run these commands
# devel-su touch /usr/share/ssu/features.d/adaptation-community.ini
# devel-su touch /usr/share/ssu/features.d/adaptation-community-common.ini

ssu rr adaptation0
ssu rr extra

sync
poweroff

Report bugs

Changelog

Beta6 - 31 May 2019

  • Sailfish OS 3.0.3.9
  • Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.
  • Fixed random failure to update camera configurations when installing or updating Sailfish OS

Beta5 - 8 April 2019

  • Sailfish OS 3.0.2.8
  • Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.
  • Enabled on-demand proximity sensor support which makes using firmware from 18.04 possible
  • Fixed browser crash when seeking Youtube videos
  • Fixed distortion of some Youtube videos in browser

Beta4 - 2 February 2019

  • Sailfish OS 3.0.1.11
  • Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.
  • Camera improvements (requires a separate community camera app)
    • Effects (i.e. color filters)
    • Exposure modes (including HDR)

Beta3 - 15 November 2018

  • Sailfish OS 3.0.0.8
  • Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.
  • Camera improvements
    • Video flash torch re-enabled
    • More supported manual ISO values
  • Enabled step counter sensor

Beta2 - 22 September 2018

  • Sailfish OS 2.2.1.18
  • Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.

Beta1 - 21 June 2018

  • Sailfish OS 2.2.0.29
  • Fairphone Opensource OS 18.04 or Fairphone OS 18.04 required.
  • Compass sensor fixed
  • Improved virtual keyboard feedback
  • WebGL fixed in browser

Alpha6 - 21 April 2018

  • Sailfish OS 2.1.4.14
  • Fairphone Opensource OS 18.03 or Fairphone OS 18.03 required.
  • Added Bluetooth LE support
  • Performance improvement

Alpha5 - 5 March 2018

  • Sailfish OS 2.1.3.7
  • First release based on Android 6 base
  • Fairphone Opensource OS 18.02 or Fairphone OS 18.02 required.
  • Support for new Fairphone display and camera modules.
  • Camera button supported in Sailfish camera app.
  • Improved vibrator effects.

Alpha4 - 27 June 2017

  • Sailfish OS 2.1.0.11
  • OTA-only release, no new installation zip.
  • Fairphone Opensource OS 16.10 or Fairphone OS 1.8.1 recommended, not tested on other releases.
  • Fix LED regression in alpha3.

Alpha3 - 21 December 2016

  • Sailfish OS 2.0.5.6
  • Fairphone Opensource OS 16.10 or Fairphone OS 1.8.1 recommended, not tested on other releases.
  • Dual-SIM support added.
  • FM Radio Media app plugin added.
  • MMS sending and receiving fixed.
  • Disabled persistent debug telnet from USB interface on release images.
  • Offline charging UI fixed.
  • Initial display brightness after boot fixed.
  • Speakerphone volume control fixed.
  • OBEX configurations added.
  • MLSDB for using cell phone tower info for obtaining location.
  • Bluetooth state now remembered after reboot.
  • Fix mobile network settings randomly missing.
  • Flash torch option for video recording added.
  • Volume keys disabled when display is off.
  • Camera Exif fixes.
  • Flashlight shortcut added.

Alpha2 - 9 August 2016

  • Sailfish OS 2.0.1.11
  • Requires Fairphone Opensource OS 16.06 or Fairphone OS 1.4.2, not tested on other releases.
  • Bluetooth MAC address fixed.
  • Bluetooth MAC address now shown in Settings->About product.
  • WLAN MAC address fixed.
  • Sending MMS messages fixed partially.
  • Camera and audio/video codecs work with FP Android >= 1.2.8.
  • Larger 16:9 image resolution for camera.
  • FM Radio support (no preinstalled app, harbour-piratefm works).
  • Display brightness control improvements.
Personal tools