maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx) (https://talk.maemo.org/showthread.php?t=101104)

edp17 2021-03-23 13:05

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
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!

edp17 2021-03-26 12:17

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
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

n950 2021-03-27 19:54

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
Quote:

Originally Posted by edp17 (Post 1571371)
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?

n950 2021-03-29 20:21

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
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.

edp17 2021-03-30 10:53

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
Quote:

Originally Posted by n950 (Post 1571397)
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

edp17 2021-03-30 10:58

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
Quote:

Originally Posted by n950 (Post 1571412)
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)

edp17 2021-03-30 11:23

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
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.)
https://i.ibb.co/ynT7ccz/Galaxy-Note...P-in-QEMU1.png

https://i.ibb.co/Kj62wJf/Galaxy-Note...P-in-QEMU2.png

sailor 2021-03-30 16:37

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
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.

n950 2021-03-30 19:34

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
1 Attachment(s)
here is my error

suicidal_orange 2021-03-30 19:40

Re: Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)
 
Quote:

Originally Posted by n950 (Post 1571426)
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?


All times are GMT. The time now is 08:52.

vBulletin® Version 3.8.8