Reply
Thread Tools
Posts: 40 | Thanked: 70 times | Joined on Oct 2019
#521
First of all hello to the forum! Wasn't Fremantle the last official Maemo version? This was a bot question at register but it did not seem to be ok. Maybe it was supposed to be 5. Anyway.

When I was tinkering with Sailfish on Nexus 5 I had to realize that many relevant info are kind of all over the net. As I did not see a recent straightforward noob install guide, I just created one. So anyone having Android on the Nexus 5 but wanting to try Sailfish can save time.


If you have Nexus 5 with Android -
Noob install guide based on CM13 and SFOS 3.0.3.9 (for Linux):

I. Requirements
- Make sure your computer has working adb and fastboot. Setup instructions can be found here:
https://wiki.lineageos.org/adb_fastboot_guide.html
- Make sure your computer is able to mount android internal storage (e.g. on arch "yay -S jmtpfs" and "yay -S gvfs-tmp" are required).
- OpenSSH is required in order to ssh into the phone.
- Enable USB debugging on your device
(Settings/About/Software Information/Build number - tap seven times, go to Developer Options and enable USB debugging)
- If you receive and "insufficient permissions for device" message during the install process, try: adb kill-server
After that run: sudo adb start-server

II. Unlocking the bootloader
Warning: Unlocking the bootloader will erase all data on your device!
Before proceeding, ensure that your data you want to keep is backed up.
- Connect the device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you see no permissions try running fastboot as root.
- Run the following command to unlock the bootloader:
fastboot oem unlock
- If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
- Since the device resets completely, you will need to re-enable USB debugging to continue.

III. Installing a custom recovery
- Download a custom recovery - you can download TWRP:
http://www.mediafire.com/file/1cihx7...d_20150630.img
In the forum it says this multirom recovery is needed or you won't be able to flash sensorsfix3.zip after install.
Not sure if TWRP works from here: https://dl.twrp.me/hammerhead/
Connect your device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing
fastboot devices
- Flash recovery onto your device (cd into the directory first which contains the .img file extracted from .zip):
fastboot flash recovery TWRP_multirom_hammerhead_20150630.img
- Now reboot into recovery to verify the installation.

IV. Installing CM13 from custom recovery
- Download the CM13 .zip from here:
http://www.mediafire.com/file/970u3n...13_release.zip
- If you want multiboot, please check step VII. first and consider the hints there.
- If you aren’t already in recovery mode, reboot into recovery mode:
adb reboot recovery
- Optional: Tap the Backup button to create a backup. Make sure the backup is created in the external sdcard or copy it onto your computer as the internal storage will be formatted.
- Go to main menu then tap Wipe.
- Tap Format Data and continue with the formatting process. This will delete all files stored on the internal storage.
- Return to the previous menu and tap Advanced Wipe.
- Select the Cache and System partitions to be wiped and then Swipe to Wipe.
- Sideload the CM13 .zip package: On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
- On the host machine sideload the package using:
adb sideload filename.zip

Once installation has finished, return to the main menu, tap Reboot and then System.
At this stage you can boot into CM13. We will flash Sailfish over it.

V. Flashing Sailfish over CM13
Once the phone is booted, enable developer mode again and connect it to the PC via USB.
Tap on the notification saying USB and choose "File Transfer" there. If the OS is set up correctly (see above jmtpfs, gvfs),
the phone will appear in the file manager (like Thunar or Nautilus, etc.).
- Download the SFOS-3.0.3.9 image:
http://www.mediafire.com/file/9hkddf...0.3.9.zip/file
- Copy this image on the internal storage on the phone e.g. into the Downloads folder.
- Turn off the phone and reboot into recovery, which means: Press Volume Down and Power, at the screen with the droid choose "Recovery mode" with volume up and press power.
- At the TWRP screen tap Install and search for the SFOS .zip file. Tap on it and Swipe to Confirm Flash.
After reboot Sailfish should be working.

VI. Upgrade to 3.1.0.12
- After booting into Sailfish, configure internet connection.
- SSH into the phone (requires openssh package), so connect the phone to the computer via USB and first make sure the device is up:
sudo ip link set dev usb0(whatever) up
(instead of usb0(whatever) use the correct device name, check with "ip a" [or use ifconfig for these steps])
- Add an ip to the device
sudo ip a add 192.168.2.14/24 dev usb0(whatever)
- On Sailfish check under Settings/Developer Tools the password for ssh and run:
ssh nemo@192.168.2.15
- Use password. After the connection was established, check the repos:
ssu lr
- Remove adaptation-community (not to mix with adaptation-community-common)
ssu dr adaptation-community

- add new adaptation-community-hammerhead repo:
Code:
ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/sfos-latest/sailfishos_3.1.0.12_latest/
- add new adaptation-community-common-hammerhead repo as well:
Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/
Run:
ssu release 3.1.0.12

- On the phone open terminal in Sailfish and then run:
devel-su
(Use same password as for ssh)
- Run:
passwd root
Choose password, type it twice.

- Now back to the terminal (ssh) window and run:
su
- Use root password and at the root prompt run:
pkcon refresh

- Finally Upgrade sailfish:
version --dup

Once it's finished, reboot.


Check the "Known issues" section in the first post of the SailfishOS Nexus5 thread!

VII. Bonus: MultiROM
- It's possible to multi-boot Android, Sailfish, UBPorts, etc.
- It's important that the internal OS has a kernel with kexec-hardboot support (otherwise it won't work).
What you have to do is sideload an OS at step IV. - instead of CM13 one with kexec-hardboot.
- Once the OS is installed, boot into it and copy this file to the internal storage:
multirom-20170314-v33a-UNOFFICIAL-hammerhead.zip
From here: https://androidfilehost.com/?fid=1899786940962593823
This multirom project is kind of abandoned, but it is still working.
- Copy also the CM13 .zip file and SFOS .zip file to the internal storage.
- Reboot into Recovery mode and first install multirom from the downloaded .zip file.
- In order to install Sailfish, tap Advanced, MultiROM and set Sailfish there. Choose the CM13 .zip and the SFOS .zip.
After install and reboot you should be able to choose Sailfish at the MultiROM screen.

It looks it also works with UBPorts (have not tested it yet): https://github.com/nnn1590/MultiROMM...g/v1.188-fixed

Can someone maybe recommend a good ROM which works fine with MultiROM? Btw I really like the Sailfish UI, somehow there is something wrong with the battery icon for me. But anyhow, it's beautiful and really like the gestures.
 
Posts: 40 | Thanked: 70 times | Joined on Oct 2019
#522
First of all hello to the forum! Wasn't Fremantle the last official Maemo version? This was a bot question at register but it did not seem to be ok. Maybe it was supposed to be 5. Anyway.

When I was tinkering with Sailfish on Nexus 5 I had to realize that many relevant info are kind of all over the net. As I did not see a recent straightforward noob install guide, I just created one. So anyone having Android on the Nexus 5 but wanting to try Sailfish can save time.


If you have Nexus 5 with Android -
Noob install guide based on CM13 and SFOS 3.0.3.9 (for Linux):

I. Requirements
- Make sure your computer has working adb and fastboot. Setup instructions can be found here:
https://wiki.lineageos.org/adb_fastboot_guide.html
- Make sure your computer is able to mount android internal storage (e.g. on arch "yay -S jmtpfs" and "yay -S gvfs-tmp" are required).
- OpenSSH is required in order to ssh into the phone.
- Enable USB debugging on your device
(Settings/About/Software Information/Build number - tap seven times, go to Developer Options and enable USB debugging)
- If you receive and "insufficient permissions for device" message during the install process, try: adb kill-server
After that run: sudo adb start-server

II. Unlocking the bootloader
Warning: Unlocking the bootloader will erase all data on your device!
Before proceeding, ensure that your data you want to keep is backed up.
- Connect the device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you see no permissions try running fastboot as root.
- Run the following command to unlock the bootloader:
fastboot oem unlock
- If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
- Since the device resets completely, you will need to re-enable USB debugging to continue.

III. Installing a custom recovery
- Download a custom recovery - you can download TWRP:
http://www.mediafire.com/file/1cihx7...d_20150630.img
In the forum it says this multirom recovery is needed or you won't be able to flash sensorsfix3.zip after install.
Not sure if TWRP works from here: https://dl.twrp.me/hammerhead/
Connect your device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing
fastboot devices
- Flash recovery onto your device (cd into the directory first which contains the .img file extracted from .zip):
fastboot flash recovery TWRP_multirom_hammerhead_20150630.img
- Now reboot into recovery to verify the installation.

IV. Installing CM13 from custom recovery
- Download the CM13 .zip from here:
http://www.mediafire.com/file/970u3n...13_release.zip
- If you want multiboot, please check step VII. first and consider the hints there.
- If you aren’t already in recovery mode, reboot into recovery mode:
adb reboot recovery
- Optional: Tap the Backup button to create a backup. Make sure the backup is created in the external sdcard or copy it onto your computer as the internal storage will be formatted.
- Go to main menu then tap Wipe.
- Tap Format Data and continue with the formatting process. This will delete all files stored on the internal storage.
- Return to the previous menu and tap Advanced Wipe.
- Select the Cache and System partitions to be wiped and then Swipe to Wipe.
- Sideload the CM13 .zip package: On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
- On the host machine sideload the package using:
adb sideload filename.zip

Once installation has finished, return to the main menu, tap Reboot and then System.
At this stage you can boot into CM13. We will flash Sailfish over it.

V. Flashing Sailfish over CM13
Once the phone is booted, enable developer mode again and connect it to the PC via USB.
Tap on the notification saying USB and choose "File Transfer" there. If the OS is set up correctly (see above jmtpfs, gvfs),
the phone will appear in the file manager (like Thunar or Nautilus, etc.).
- Download the SFOS-3.0.3.9 image:
http://www.mediafire.com/file/9hkddf...0.3.9.zip/file
- Copy this image on the internal storage on the phone e.g. into the Downloads folder.
- Turn off the phone and reboot into recovery, which means: Press Volume Down and Power, at the screen with the droid choose "Recovery mode" with volume up and press power.
- At the TWRP screen tap Install and search for the SFOS .zip file. Tap on it and Swipe to Confirm Flash.
After reboot Sailfish should be working.

VI. Upgrade to 3.1.0.12
- After booting into Sailfish, configure internet connection.
- SSH into the phone (requires openssh package), so connect the phone to the computer via USB and first make sure the device is up:
sudo ip link set dev usb0(whatever) up
(instead of usb0(whatever) use the correct device name, check with "ip a" [or use ifconfig for these steps])
- Add an ip to the device
sudo ip a add 192.168.2.14/24 dev usb0(whatever)
- On Sailfish check under Settings/Developer Tools the password for ssh and run:
ssh nemo@192.168.2.15
- Use password. After the connection was established, check the repos:
ssu lr
- Remove adaptation-community (not to mix with adaptation-community-common)
ssu dr adaptation-community

- add new adaptation-community-hammerhead repo:
Code:
ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/sfos-latest/sailfishos_3.1.0.12_latest/
- add new adaptation-community-common-hammerhead repo as well:
Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/
Run:
ssu release 3.1.0.12

- On the phone open terminal in Sailfish and then run:
devel-su
(Use same password as for ssh)
- Run:
passwd root
Choose password, type it twice.

- Now back to the terminal (ssh) window and run:
su
- Use root password and at the root prompt run:
pkcon refresh

- Finally Upgrade sailfish:
version --dup

Once it's finished, reboot.


Check the "Known issues" section in the first post of the SailfishOS Nexus5 thread!

VII. Bonus: MultiROM
- It's possible to multi-boot Android, Sailfish, UBPorts, etc.
- It's important that the internal OS has a kernel with kexec-hardboot support (otherwise it won't work).
What you have to do is sideload an OS at step IV. - instead of CM13 one with kexec-hardboot.
- Once the OS is installed, boot into it and copy this file to the internal storage:
multirom-20170314-v33a-UNOFFICIAL-hammerhead.zip
From here: https://androidfilehost.com/?fid=1899786940962593823
This multirom project is kind of abandoned, but it is still working.
- Copy also the CM13 .zip file and SFOS .zip file to the internal storage.
- Reboot into Recovery mode and first install multirom from the downloaded .zip file.
- In order to install Sailfish, tap Advanced, MultiROM and set Sailfish there. Choose the CM13 .zip and the SFOS .zip.
After install and reboot you should be able to choose Sailfish at the MultiROM screen.

It looks it also works with UBPorts (have not tested it yet): https://github.com/nnn1590/MultiROMM...g/v1.188-fixed

Can someone maybe recommend a good ROM which works fine with MultiROM? Btw I really like the Sailfish UI, somehow there is something wrong with the battery icon for me. But anyhow, it's beautiful and really like the gestures.
 
Posts: 40 | Thanked: 70 times | Joined on Oct 2019
#523
First of all hello to the forum! Wasn't Fremantle the last official Maemo version? This was a question at register but the answer did not seem to be ok. Maybe it was supposed to be 5. Anyway. When I was tinkering with Sailfish on Nexus 5 I had to realize that many relevant info are kind of all over the net. As I did not see a recent straightforward noob install guide, I just created one. So anyone having Android on the Nexus 5 but wanting to try Sailfish can save time.


If you have Nexus 5 with Android -
Noob install guide based on CM13 and SFOS 3.0.3.9 (for Linux):

I. Requirements
- Make sure your computer has working adb and fastboot. Setup instructions can be found here:
https://wiki.lineageos.org/adb_fastboot_guide.html
- Make sure your computer is able to mount android internal storage (e.g. on arch "yay -S jmtpfs" and "yay -S gvfs-tmp" are required).
- OpenSSH is required in order to ssh into the phone.
- Enable USB debugging on your device
(Settings/About/Software Information/Build number - tap seven times, go to Developer Options and enable USB debugging)
- If you receive and "insufficient permissions for device" message during the install process, try: adb kill-server
After that run: sudo adb start-server

II. Unlocking the bootloader
Warning: Unlocking the bootloader will erase all data on your device!
Before proceeding, ensure that your data you want to keep is backed up.
- Connect the device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you see no permissions try running fastboot as root.
- Run the following command to unlock the bootloader:
fastboot oem unlock
- If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
- Since the device resets completely, you will need to re-enable USB debugging to continue.

III. Installing a custom recovery
- Download a custom recovery - you can download TWRP:
http://www.mediafire.com/file/1cihx7...d_20150630.img
In the forum it says this multirom recovery is needed or you won't be able to flash sensorsfix3.zip after install.
Not sure if TWRP works from here: https://dl.twrp.me/hammerhead/
Connect your device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing
fastboot devices
- Flash recovery onto your device (cd into the directory first which contains the .img file extracted from .zip):
fastboot flash recovery TWRP_multirom_hammerhead_20150630.img
- Now reboot into recovery to verify the installation.

IV. Installing CM13 from custom recovery
- Download the CM13 .zip from here:
http://www.mediafire.com/file/970u3n...13_release.zip
- If you want multiboot, please check step VII. first and consider the hints there.
- If you aren’t already in recovery mode, reboot into recovery mode:
adb reboot recovery
- Optional: Tap the Backup button to create a backup. Make sure the backup is created in the external sdcard or copy it onto your computer as the internal storage will be formatted.
- Go to main menu then tap Wipe.
- Tap Format Data and continue with the formatting process. This will delete all files stored on the internal storage.
- Return to the previous menu and tap Advanced Wipe.
- Select the Cache and System partitions to be wiped and then Swipe to Wipe.
- Sideload the CM13 .zip package: On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
- On the host machine sideload the package using:
adb sideload filename.zip

Once installation has finished, return to the main menu, tap Reboot and then System.
At this stage you can boot into CM13. We will flash Sailfish over it.

V. Flashing Sailfish over CM13
Once the phone is booted, enable developer mode again and connect it to the PC via USB.
Tap on the notification saying USB and choose "File Transfer" there. If the OS is set up correctly (see above jmtpfs, gvfs),
the phone will appear in the file manager (like Thunar or Nautilus, etc.).
- Download the SFOS-3.0.3.9 image:
http://www.mediafire.com/file/9hkddf...0.3.9.zip/file
- Copy this image on the internal storage on the phone e.g. into the Downloads folder.
- Turn off the phone and reboot into recovery, which means: Press Volume Down and Power, at the screen with the droid choose "Recovery mode" with volume up and press power.
- At the TWRP screen tap Install and search for the SFOS .zip file. Tap on it and Swipe to Confirm Flash.
After reboot Sailfish should be working.

VI. Upgrade to 3.1.0.12
- After booting into Sailfish, configure internet connection.
- SSH into the phone (requires openssh package), so connect the phone to the computer via USB, open up a terminal window on the computer and make sure the device is up:
sudo ip link set dev usb0(whatever) up
(instead of usb0(whatever) use the correct device name, check with "ip a" [or use ifconfig for these steps])
- Add an ip to the device
sudo ip a add 192.168.2.14/24 dev usb0(whatever)
- On Sailfish check under Settings/Developer Tools the password for ssh and run:
ssh nemo@192.168.2.15
- Use password. After the connection was established, check the repos:
ssu lr
- Remove adaptation-community (not to mix with adaptation-community-common)
ssu dr adaptation-community

- add new adaptation-community-hammerhead repo:

Code:
ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/sfos-latest/sailfishos_3.1.0.12_latest/
- add new adaptation-community-common-hammerhead repo as well:

Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/
Run:
ssu release 3.1.0.12

- On the phone open terminal in Sailfish and then run:
devel-su
(Use same password as for ssh)
- Run:
passwd root
Choose password, type twice

- Now back to the terminal (ssh) window and run:
su
- Use root password and at the root prompt run:
pkcon refresh

- Finally Upgrade sailfish:
version --dup

Once it's finished, reboot.


Check the "Known issues" section in the first post of the SailfishOS Nexus5 thread!

VII. Bonus: MultiROM
- It's possible to multi-boot Android, Sailfish, UBPorts, etc.
- It's important that the internal OS has a kernel with kexec-hardboot support (otherwise it won't work).
What you have to do is sideload an OS at step IV. - instead of CM13 one with kexec-hardboot.
- Once the OS is installed, boot into it and copy this file to the internal storage:
multirom-20170314-v33a-UNOFFICIAL-hammerhead.zip
From here: https://androidfilehost.com/?fid=1899786940962593823
This multirom project is kind of abandoned, but it is still working.
- Copy also the CM13 .zip file and SFOS .zip file to the internal storage.
- Reboot into Recovery mode and first install multirom from the downloaded .zip file.
- In order to install Sailfish, tap Advanced, MultiROM and set Sailfish there. Choose the CM13 .zip and the SFOS .zip.
After install and reboot you should be able to choose Sailfish at the MultiROM screen.

It looks it also works with UBPorts (have not tested it yet): https://github.com/nnn1590/MultiROMM...g/v1.188-fixed

Can someone maybe recommend a good ROM which works fine with MultiROM? Btw I really like the Sailfish UI, somehow there is something wrong with the battery icon for me. But anyhow, it's beautiful and really like the gestures.
 
Posts: 40 | Thanked: 70 times | Joined on Oct 2019
#524
I posted here a guide to install SFOS on Nexus 5, because relevant info is kind of all over the net, but it simply won't allow the post. Also I was wondering if I did something wrong or the battery icon just does not look the way it should be? And I can confirm that video recording is not working for me either, but at least the rear cam works.
 
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#525
Originally Posted by edp17 View Post
Well, I haven't tried that because I was unaware of but I will try on (hopefully) the next weekend. Thank you.
Unfortunately I still haven't got the time for going back to my PC and try to continue the build.

However in the meantime I have experimented with SFDroid. I have tried it with sailfish 1.19.28 with cm11 base and I played a bit more with sailfish 2.0.1.11 with cm12.1 base.

Mostly it was ok and I would prefer SFDroid over the aliendalvik (although aliendalvik is mor seamless) but the battery life was a disaster. It might not SFDroid's fault at all, but my phone went almost flat over one night.

I have tried the SFDroid on sailfish 2.0.4.13 with cm12.1 base too, but the SFDroid stuck at the cm logo or at the 'Starting Andorid...' text.

I have heard the sailfish 2.0.1.11 can be updated to 2.0.4.13 (where the battery life is much better) and if the SFDroid was installed and set up on 2.0.1.11 it will work on 2.0.4.13 too.

So I tried (about 10 times) to update 2.0.1.11 to 2.0.4.13. The 'version --dup' stops at different percentages and after that I couldn't boot into the ROM again. I heard the OTA update can be a bit challenging but for my case it feels like a mission impossible. (Even when I tried on a brand new/clean sailfish installation without any extra repos or patches, it didn't work.)

I think so far I have tried all combination of sailfish versions, SFDroid and aliendalvik and I have some a 'close to my need' installations but, because of some missing functionalities, I sometimes still need to boot into android.

(At least on my journey I have found a good way to backup/restore my sailfish roms on a multiboot setup. So now if I mess up something, I don't need to install/configure everything from null again.)

If anybody knows the trick to start using the SFDroid on 2.0.4.13 and/or
a bulletproof instruction for upgrading 2.0.1.11 to 2.0.4.13 and/or
how the android apps access the camera on 2.0.4.13 with aliendalvik, please, please share.
 
Posts: 26 | Thanked: 60 times | Joined on Nov 2018 @ Seoul Korea
#526
The libhybris packages for Nexus5 were updated by Oct 11.
The version was 3.0.1.12.

Refer to mautz's repo http://repo.merproject.org/obs/home:...:/sfos-latest/

Addition : The 2 packages were updated.

Last edited by runwithcow; 2019-10-19 at 03:20.
 

The Following User Says Thank You to runwithcow For This Useful Post:
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#527
Originally Posted by runwithcow View Post
The libhybris packages for Nexus5 were updated by Oct 11.
The version was 3.0.1.12.

Refer to http://repo.merproject.org/obs/home:...:/sfos-latest/
Does it mean the latest version has 3d acceleration support?
 
Posts: 40 | Thanked: 70 times | Joined on Oct 2019
#528
When I was tinkering with Sailfish on Nexus 5 I had to realize that many relevant info are kind of all over the net. As I did not see a recent straightforward noob install guide, I just created one. So anyone having Android on the Nexus 5 but wanting to try Sailfish can save time.


If you have Nexus 5 with Android -
Noob install guide based on CM13 and SFOS 3.0.3.9 (for Linux):

I. Requirements
- Make sure your computer has working adb and fastboot. Setup instructions can be found here:
https://wiki.lineageos.org/adb_fastboot_guide.html
- Make sure your computer is able to mount android internal storage (e.g. on arch "yay -S jmtpfs" and "yay -S gvfs-tmp" are required).
- OpenSSH is required in order to ssh into the phone.
- Enable USB debugging on your device
(Settings/About/Software Information/Build number - tap seven times, go to Developer Options and enable USB debugging)
- If you receive and "insufficient permissions for device" message during the install process, try: adb kill-server
After that run: sudo adb start-server

II. Unlocking the bootloader
Warning: Unlocking the bootloader will erase all data on your device!
Before proceeding, ensure that your data you want to keep is backed up.
- Connect the device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you see no permissions try running fastboot as root.
- Run the following command to unlock the bootloader:
fastboot oem unlock
- If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
- Since the device resets completely, you will need to re-enable USB debugging to continue.

III. Installing a custom recovery
- Download a custom recovery - you can download TWRP:
http://www.mediafire.com/file/1cihx7...d_20150630.img
In the forum it says this multirom recovery is needed or you won't be able to flash sensorsfix3.zip after install.
Not sure if TWRP works from here: https://dl.twrp.me/hammerhead/
Connect your device to your PC via USB.
- On the computer open a terminal and run:
adb reboot bootloader
- Once the device is in fastboot mode, verify your PC finds it by typing
fastboot devices
- Flash recovery onto your device (cd into the directory first which contains the .img file extracted from .zip):
fastboot flash recovery TWRP_multirom_hammerhead_20150630.img
- Now reboot into recovery to verify the installation.

IV. Installing CM13 from custom recovery
- Download the CM13 .zip from here:
http://www.mediafire.com/file/970u3n...13_release.zip
- If you want multiboot, please check step VII. first and consider the hints there.
- If you aren’t already in recovery mode, reboot into recovery mode:
adb reboot recovery
- Optional: Tap the Backup button to create a backup. Make sure the backup is created in the external sdcard or copy it onto your computer as the internal storage will be formatted.
- Go to main menu then tap Wipe.
- Tap Format Data and continue with the formatting process. This will delete all files stored on the internal storage.
- Return to the previous menu and tap Advanced Wipe.
- Select the Cache and System partitions to be wiped and then Swipe to Wipe.
- Sideload the CM13 .zip package: On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
- On the host machine sideload the package using:
adb sideload filename.zip

Once installation has finished, return to the main menu, tap Reboot and then System.
At this stage you can boot into CM13. We will flash Sailfish over it.

V. Flashing Sailfish over CM13
Once the phone is booted, enable developer mode again and connect it to the PC via USB.
Tap on the notification saying USB and choose "File Transfer" there. If the OS is set up correctly (see above jmtpfs, gvfs),
the phone will appear in the file manager (like Thunar or Nautilus, etc.).
- Download the SFOS-3.0.3.9 image:
http://www.mediafire.com/file/9hkddf...0.3.9.zip/file
- Copy this image on the internal storage on the phone e.g. into the Downloads folder.
- Turn off the phone and reboot into recovery, which means: Press Volume Down and Power, at the screen with the droid choose "Recovery mode" with volume up and press power.
- At the TWRP screen tap Install and search for the SFOS .zip file. Tap on it and Swipe to Confirm Flash.
After reboot Sailfish should be working.

VI. Upgrade to 3.1.0.12
- After booting into Sailfish, configure internet connection.
- SSH into the phone (requires openssh package), so connect the phone to the computer via USB and first make sure the device is up:
sudo ip link set dev usb0(whatever) up
(instead of usb0(whatever) use the correct device name, check with "ip a" [or use ifconfig for these steps])
- Add an ip to the device
sudo ip a add 192.168.2.14/24 dev usb0(whatever)
- On Sailfish check under Settings/Developer Tools the password for ssh and run:
ssh nemo@192.168.2.15
- Use password. After the connection was established, check the repos:
ssu lr
- Remove adaptation-community (not to mix with adaptation-community-common)
ssu dr adaptation-community

- add new adaptation-community-hammerhead repo:

Code:
ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/sfos-latest/sailfishos_3.1.0.12_latest/
- add new adaptation-community-common-hammerhead repo as well:

Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/
Run:
ssu release 3.1.0.12

- On the phone open terminal in Sailfish and then run:
devel-su
(Use same password as for ssh)
- Run:
passwd root
Choose password, type twice

- Now back to the terminal (ssh) window and run:
su
- Use root password and at the root prompt run:
pkcon refresh

- Finally Upgrade sailfish:
version --dup

Once it's finished, reboot.


Check the "Known issues" section in the first post of the SailfishOS Nexus5 thread!

VII. Bonus: MultiROM
- It's possible to multi-boot Android, Sailfish, UBPorts, etc.
- It's important that the internal OS has a kernel with kexec-hardboot support (otherwise it won't work).
What you have to do is sideload an OS at step IV. - instead of CM13 one with kexec-hardboot.
- Once the OS is installed, boot into it and copy this file to the internal storage:
multirom-20170314-v33a-UNOFFICIAL-hammerhead.zip
From here: https://androidfilehost.com/?fid=1899786940962593823
This multirom project is kind of abandoned, but it is still working.
- Copy also the CM13 .zip file and SFOS .zip file to the internal storage.
- Reboot into Recovery mode and first install multirom from the downloaded .zip file.
- In order to install Sailfish, tap Advanced, MultiROM and set Sailfish there. Choose the CM13 .zip and the SFOS .zip.
After install and reboot you should be able to choose Sailfish at the MultiROM screen.

It looks it also works with UBPorts (have not tested it yet): https://github.com/nnn1590/MultiROMM...g/v1.188-fixed

I have a wrong (missing?) icon in the upper right corner and don't know how to get rid of it. And did not figure out yet how to change the battery icon. Do you still need sensorsfix.zip? I did not use it.

Last edited by sailor; 2019-10-23 at 00:47.
 

The Following 4 Users Say Thank You to sailor For This Useful Post:
Posts: 803 | Thanked: 1,585 times | Joined on Aug 2014
#529
Originally Posted by sailor View Post
This multirom project is kind of abandoned, but it is still working.
https://github.com/nnn1590/MultiROMM...g/v1.188-fixed
.
Could have done with this about three weeks ago, would have saved me some time. Think you will find the above link leads now where, but maybe wrong.
Attached Images
 

Last edited by aspergerguy; 2019-10-22 at 15:01. Reason: Addition
 
Posts: 40 | Thanked: 70 times | Joined on Oct 2019
#530
Thanks, link fixed. Do you also have that icon in the upper right corner? Actually I posted this guide before, but the post just disappeared. Some forum regulation.
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:47.