View Single Post
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#11
The first OTA update is ready. (Well, sort of as it requires some additional manual work.)
Because sfos 3.4 is a stop release, the device must be OTA updated to 3.4 first.
As I have not built a sfos 3.4 image for this device, the OTA update to version 3.4 is meant to be only an interim step.
The manual additional work is needed because, for unknown reasons, some packages and the kernel is not deployed to the device during the update.

The benefit of upgrading this way, rather than installing the sfos 4.0 image from scratch:
  • nemo user is kept as the default user
  • all scripts that hardcoded to use user nemo, should work without any change
  • all your data, files and apps will remain and should work as before
  • if you installed and configured a desktop Linux in an lxc container, that also should work (don't need to reinstall/reconfigure again)
  • patchmanager and installed patches like Mouse cursor, More folder icons and Notes app cover will remain working

Here is the instruction what to do:

Step 1 - OTA 3.3 to 3.4
  1. Boot into sfos, enable developer mode and set a password
  2. Connect the phone to a wifi network (for downloading packages)
    From this point, we will work on the PC, leave the phone connected.
  3. Connect the phone to a PC, open a console and on the PC run (enter the password when you prompted):
    Code:
    ssh nemo@192.168.2.15
  4. Switch user to root (enter the password when you prompted):
    Code:
    devel-su
  5. Check repos:
    Code:
    ssu lr
  6. Disable all repos, except: apps, hotfixes, jolla:
    Code:
    ssu dr <repo_name>
  7. Add/modify adaptation-community-common repo:
    Code:
    ssu ar adaptation-community-common http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.4.0.24/
  8. Add/modify adaptation-community-treltexx repo:
    Code:
    ssu ar adaptation-community-treltexx http://repo.merproject.org/obs/nemo:/devel:/hw:/samsung:/treltexx/sailfishos_3.4.0.24/
  9. In case you have the mousetracker repo
    Code:
    ssu ar mousetracker http://repo.merproject.org/obs/home:/elros34:/sailfishapps/sailfishos_3.4.0.24/
  10. Put the device in release mode:
    Code:
    ssu release 3.4.0.24
  11. Refresh packages:
    Code:
    pkcon refresh
  12. Upgrade the system:
    Code:
    version --dup
  13. Then reboot:
    Code:
    reboot

Step 2 - OTA 3.4 to 4.0
  1. Boot into sfos, enable developer mode and set a password
  2. Connect the phone to a wifi network (for downloading packages)
    From this point, we will work on the PC, leave the phone connected.
  3. Connect the phone to a PC, open a console and on the PC run (enter the password when you prompted):
    Code:
    ssh nemo@192.168.2.15
  4. Switch user to root (enter the password when you prompted):
    Code:
    devel-su
  5. Check repos:
    Code:
    ssu lr
  6. Disable all repos, except: apps, hotfixes, jolla:
    Code:
    ssu dr <repo_name>
  7. Add/modify adaptation-community-common repo:
    Code:
    ssu ar adaptation-community-common http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_4.0.1.48/
  8. Add/modify adaptation-community-treltexx repo:
    Code:
    ssu ar adaptation-community-treltexx http://repo.merproject.org/obs/nemo:/devel:/hw:/samsung:/treltexx/sailfishos_4.0.1.48/
  9. In case you have the mousetracker repo
    Code:
    ssu ar mousetracker http://repo.merproject.org/obs/home:/elros34:/sailfishapps/sailfishos_4.0.1.48/
  10. Put the device in release mode:
    Code:
    ssu release 4.0.1.48
  11. Refresh packages:
    Code:
    pkcon refresh
  12. Upgrade the system:
    Code:
    version --dup
  13. Then reboot:
    Code:
    reboot

Once the device is updated to 4.0 boot into TWRP and flash this kernel: 02-hybris-boot-firejail-enhanced.img
Then boot into SFOS and install these two packages:Then amend /etc/bluez5/bluetooth/main.conf file and at [GATT] section, set Channels = 1. Like
Code:
# Number of ATT channels
# Possible values: 1-5 (1 disables EATT)
# Default to 3
Channels = 1
Reboot again and after this, all apps and Bluetooth should work as before.

If you have any issues, give me a shout.
Good luck!

Last edited by edp17; 2021-07-26 at 11:40. Reason: Typo in instruction for OTA to 4.0.1.48
 

The Following 5 Users Say Thank You to edp17 For This Useful Post: