Active Topics

 


Reply
Thread Tools
edp17's Avatar
Posts: 600 | Thanked: 711 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:
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#12
Running LibreOffice on Desktop Debian (Sid) distro within an LXC container on the Galaxy Note 4 (SFOS4.0). Although this is a phone, the lag is minimal (almost nothing) and quite usable for lots of tasks.


Last edited by edp17; 2021-03-26 at 12:29.
 

The Following 3 Users Say Thank You to edp17 For This Useful Post:
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#13
Originally Posted by edp17 View Post
Running LibreOffice on Desktop Debian (Sid) distro within an LXC container on the Galaxy Note 4 (SFOS4.0). Although this is a phone, the lag is minimal (almost nothing) and quite usable for lots of tasks.

https://i.ibb.co/mhGpGWb/Galaxy-Note...bre-Office.png
How to install it?
 

The Following User Says Thank You to n950 For This Useful Post:
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#14
I connect usb cable from pc to galaxy i choose developer mode but only galaxy said in charge only
when i run in ubuntu ssh nemo@192.168.2.15 i have network is unreachable.
 

The Following User Says Thank You to n950 For This Useful Post:
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#15
Originally Posted by n950 View Post
How to install it?
Start the Desktop distro, attach it, then once you are in there, open up a terminal and do:
  1. apt update
  2. apt install libreoffice

Last edited by edp17; 2021-03-30 at 11:15.
 

The Following User Says Thank You to edp17 For This Useful Post:
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#16
Originally Posted by n950 View Post
I connect usb cable from pc to galaxy i choose developer mode but only galaxy said in charge only
when i run in ubuntu ssh nemo@192.168.2.15 i have network is unreachable.
Do the following:
  1. go to Settings/USB, then set it to Always ask
  2. start fingerterm or another terminal
  3. enter devel-su systemctl restart usb-moded
  4. select Developer mode from the list
Now you can connect to the device from the PC with ssh nemo@192.168.2.15 (or if you installed 4.0 as fresh: ssh defaultuser@192.168.2.15)

The other way, if you connect your device to the same wifi network where your PC is connected to then use the phone's IP address for the ssh.
Example: (let's say the phone's IP address is 192.168.1.80)
ssh nemo@192.168.1.80 (or ssh defaultuser@192.168.1.80)
 

The Following User Says Thank You to edp17 For This Useful Post:
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#17
Running Windows XP (with Qemu 4.2.0) on Desktop Debian (Sid) distro within an LXC container on the Galaxy Note 4 (SFOS4.0).
(The Qemu 4.2.0 is compiled on the device within the Desktop Linux.)


 

The Following 3 Users Say Thank You to edp17 For This Useful Post:
Posts: 40 | Thanked: 70 times | Joined on Oct 2019
#18
That's great with the linux desktop. Is it possible to use the LXC container on the phone itself? So that linux tools might be usable on the phone.
Meanwhile did you maybe check the video quality? Running that distro on that older phone is remarkable, good hardware.
 

The Following User Says Thank You to sailor For This Useful Post:
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#19
here is my error
Attached Images
 

Last edited by n950; 2021-03-30 at 19:45.
 

The Following User Says Thank You to n950 For This Useful Post:
Posts: 177 | Thanked: 427 times | Joined on Sep 2017
#20
Originally Posted by n950 View Post
Here is my error now.

I follow your guide. i go from 3.3 to 4.0
The advice says go from 3.3 to 3.4 then 3.4 to 4.0 - how far did you get?
 

The Following User Says Thank You to suicidal_orange For This Useful Post:
Reply

Tags
note 4, samsung, sm-n910c, treltexx


 
Forum Jump


All times are GMT. The time now is 17:35.