![]() |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
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/Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/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. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
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/Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/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. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
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/Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/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. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
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.
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
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.) :confused: 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. ;) |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
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. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
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/Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.1.0.12/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. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
1 Attachment(s)
Quote:
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
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.
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
A little addition to @sailor's very useful post:
If you would like to install Ubuntu Touch with multirom on a Nexus 5 you will need: - a modified TWRP v33: https://forum.xda-developers.com/goo...m-v24-t2571011 - the modified MultiRom apk: https://forum.xda-developers.com/sho...&postcount=580 (little more details about this can be found here: https://forum.xda-developers.com/ubu...blems-t3409123) - a kexec kernel: you can find downloads on the same link where the TWRP v33 (https://forum.xda-developers.com/goo...m-v24-t2571011) or use what @sailor wrote Once you have these all, you need to install the MultiRom app on your rooted Android (main rom) then open the apk and select the version/flavour of the UT you would like to install. Note: With this TWRP (v33) the flashing zip file on any rom does not work. If I need to flash a zip file on a rom, first I flash an older TWRP twrp_multirom_hammerhead_20150630.img (can be downloaded from: http://bin.ge/dl/247675/TWRP-multiro...50630.img.html) then I boot into it to flash the zip file. Note 2: the older TWRP is not compatible with UT, so if you would like to install a different flavour or update the current one, you need to go back to TWRP v33 again. I hope this all does make sense. :) |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Thank you for those hints, it's good to read that it is working. Many details to consider though. I ended up without a ROM with kexec-hardboot. Instead I booted into recovery and copied with adb pull /sdcard/TWRP TWRP the whole backup to the pc hard disk. Flashed something else, created a backup and completed the same process. To boot into the first OS again, copied the backup back adb push TWRP /sdcard/TWRP and made a restore (same process if I want to boot the second OS).
Disadvantage is of course, that it takes a bit time to switch roms (but it takes not too long actually). However I can use whatever combination I want (and there will be more space for one rom). |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
1 Attachment(s)
Quote:
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
I have an Android, multiple Sailfish versions and a UT roms are installed on my device. I can easily boot into any of them. However because the main rom is the Android, I had to figure out how to backup my other roms.
First I thought would use the rom swap function in TWRP. Unfortunately this is not supported in neither v33 and the older version if the second rom is non Android. Finally I have came up with my own solution: I boot into a Sailfish rom and as root (using tar to keep the symlinks) compress the other roms into a separate file. :D (The roms are stored in /android/media/0/multiroms/roms folder.) Then I can transfer the archived roms to a usb stick or PC to store. If I need to restore any of them, I just "un-tar" with a new name into the mentioned folder and it is ready to boot.:) Hopefully I will never have to install/setup Sailfish from scratch if I mess it up again. Because now I am able to backup and restore my Sailfish roms, I do not need to build a version for myself anymore. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@aspergerguy Thank you for the screenshot, I got it now. There is no sim card in the device, hence the missing icon I suppose. Where you have 3G and the connection quality icon, I have a sort of grey area.
I have been using Sailfish and now just switched back to android for a while. For me UI handling of Sailfish is just sooo much better. It's easier, more fun. More beautiful too. It's really a pity there are apps and features which are just not available yet on Sailfish. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
P.P.P.S. Panic over!!! I resolved it just by running "zypper dup" again. Phew...
Maybe the description of the original problem is helpful to others in that situation: I just ran "zypper ref ; zypper up" on my Nexus 5 (with 3.1.0.12 installed) and now it doesn't boot. The Google logo does not disappear and the LED is flashing green. :( P.S. "pkcon refresh; pkcon update" do not seem to help. But at least I can ssh into the device. P.P.S. I guess I am getting closer: Code:
[nemo@Sailfish ~]$ systemctl status lipstick.service |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@sailor Thank you very much for this release and keeping Nexus 5 alive with SFOS - very much appreciated!!! The previous update (Hossa) made the camera useless and I was worried but now with this 3.1.0.12 (based on Seitseminen) all seems to work smoothly and the camera as well. Any chance to donate/support this work???
PS: I did not run "zypper ref ; zypper up" yet, I'll be careful but we should fix this asap! |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
2019-10-29: 3.2.0.12 was released to Early Access subscribers.
https://together.jolla.com/question/...320-torronsuo/ |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@MartiMasa That's not me, it's @mautz who is keeping this alive! So I do thank him too.
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
The result is the same: Code:
repo --no-repo-verify init -u git://github.com/mer-hybris/android.git -b hybris-12.1I am very :confused: How can you build the new versions for Nexus 5? Thank you. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@edp17
Best idea would be to ask the sailfish-porters people on IRC. Channel is #sailfishos-porters on Freenode |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
I put my solution here if it helps anybody. I have found a hadk-faq useful hints website where it advised: if the 'repo init' fails because of gpg, use the Code:
git config --global gpg.program gpg2Then, before the 'repo sync --fetch-submodules' command within the .repo folder I manually needed to create the manifest.xml symlink to point to the proper file, but after this, finally, the android source has safely downloaded. :D At the end I ran out of space on my /. (My /home was part of the / partition and the downloaded sailfish + android source eat up lot more space than I expected.) So needed to resize another partition, create a new one and mount that as my /home. Plus needed to copy everything from my old /home into the new one. Now it is ready for the next step 'Configure Mountpoint Information' :) I know it is still a long way to go but now at least have got all sources I need. Edit: I forgot to mention that I needed to install the gpg2 on the host (sudo apt-get install gnupg2) because that was needed for the 'git config --global gpg.program gpg2' command. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
1 Attachment(s)
Quote:
The 3.2.0.12 upgrade news for mautz. I have upgraded the SFOS version of my Nexus 5 from 3.1.0.12 to 3.2.0.12. All apps that I installed and system are well operating. I used the repos of the your 25 Oct and the devel of nemo repo on 31 Oct as following. " adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:...atest_armv7hl/ " I think that the your libhybris works on 25 Oct 2019 was very good. Thanks mautz once more. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
1 Attachment(s)
Quote:
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@edp17
Any news on your port? |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
I have checked the 'CyanogenMod/android_kernel_lge_hammerhead' repo on github and realized there is no 'stable/cm-12.1' branch. However there are 'cm-12.1', 'cm-12.1caf', 'stable/cm-12.1-YOG4P' and 'stable/cm-12.1-YOG7D'. I have tried each of the latter two in my local_manifest/hammerhead.xml but the same error. I think my 'local_manifest/hammerhead.xml' file is not correct. As there is no 'hammerhead.xml' in the 'hybris-12.1' branch on the https://github.com/mer-hybris/local_manifests repo. Therefore I tried to mock up one using the 'bacon.xml' from there. (I know bacon is a different device but I used that as an example.) So far, no luck. Therefore I wanted to contact you to ask your 'local_manifest/hammerhead.xml' file. Plus I still cannot post any questions on #sailfishos-porters channel in the webirc. :mad: Annoying because probably somebody already has helped me with these problems. I am using the website, not a client. I much appreciated if you could let me know the command for posting a question there. This is where I am now. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@edp17
Mayba you could fork the old kernel and source used by the RealJohnGalt for his cm12.1 port. Kernel would be here: https://github.com/RealJohnGalt/andr...lge_hammerhead I think you need to register your nick to ask questions on irc. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
I tried to apply a few patches (wider keyboard, arrow keyboard, silicamail and some others) but none of them works. (I probably will manually edit the necessary files to get these.) Plus I use the kimmoli's script for changing the pixel ratio. The script runs and creates the shrank images in /usr/share/themes but after restarting lipstick, it still using the original z2.0 images rather than the shrank z1.82. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
IRC: That was the last step I tried. I (think) registered a user id but did not get any email to confirm. I will try again next time. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
Edit: if I download the rpm I can install them and they do work (except patches.) |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@mautz
Can I ask two questions, please? (Both are related to this CM13 topic however found them in the other CM12.1 topic) 1. You mentioned were trying to make SFDroid work on CM13 base (here), but I have not seen any follow up info on that. Have you abandoned that idea? How far did you get with that? 2. Bt sleep monitor (by minimec). I have seen in this post that this service might be part of the OS by default. Plus I have seen the bt-sleep-monitor.service has came with the last update (3.2.0.12) but when I started, it didn't do what I expected. However when I run the original solution from minimec from this post, it worked. Is it a bug or the enhanced script never worked? (Or maybe it is just me?) Thank you. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@edp17
Getting SFDroid too work was too complicated for me and SFDroid was sadly never fully usable, many things didn't work. What is wrong with the bt scripts? |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
About the bt script: I found that topic and checked my systems with 'mcetools --get-suspend-stats'. As the result was 0 in all Sailfish roms I downloaded minimec's first script. I have seen it requires a kernel that supports that but thanks for you it is already there! :) The script worked and works fine even with the latest update 3.2.0.12. Then I found minimec's enhanced script that uses only one dbus listener or something and saw his conversation with you about baking the script into the OS. Then I did a 'locate bt-sleep-monitor' on my system and found two services (bt-sleep-monitor.service and bt-sleep-monitor.timer) in /lib/systemd/system and a script (bt-sleep-monitor) in /usr/bin. So, I rebooted and tried to run one of those services. But either of them didn't make any difference, the sleep-stats remained 0. Maybe I am trying to use them incorrectly? (I have tried 'sudo systemctl start bt-sleep-monitor.service' or 'sudo systemctl start bt-sleep-monitor.timer') Plus, there is another service 'bt-sleep-monitor-timer' in the '/lib/systemd/system/multi-user.target.wants/' but I am not sure about this one. Now I am trying to install minimec's first script as a sytemd service but there is no '/usr/lib/systemd/scripts' folder as the instruction said therefore I put the script into the '/usr/lib/systemd/user' but, again, not sure this is the correct place for this. Edit: The BT monitor was a false alarm! I have removed the service that I installed (the old minimec script) and enabled the bt-sleep-monitor.service and bt-sleep-monitor.timer services and it works! Probably just I was clumsy or maybe I needed to enable these services. Anyway, it works now. Thank you! (At least I learnt how to create a service. :-)) Edit2: Something is still not right. The suspend_time in 'mcetool --get-suspend-stats' is not really counting. With the original bt-sleep-monitor script it was almost the same as the uptime, but with the script that came with the OS now: uptime: 5054.484 and suspend_time: 206.410 (The suspend time was the same 90 minutes ago too.) I don't use any bt device and the bt has not been turned on at all today. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Just a thought. Maybe it is time to open a new topic or rename this one as it is not about SailfishOS 2.x anymore but SailfishOS 3.x. What do you think?
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@edp17 Thank you for your posts and hints regarding the upgrade process. If all the details are cleared, it would be very helpful to post the steps for the recent upgrade process (I mean with post upgrade tweaks if they are necessary). I multiboot on my N5 and I have to say Sailfish is the OS that I like the most.
|
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
Quote:
Inspired by @sailor's post Edit: I amended the steps because @mautz has created repo for direct update to 3.2.0.12. Therefore no longer need to update to 3.1.0.12 but we can directly go to 3.2.0.12. ======= Upgrade 3.0.3.9 to 3.2.0.12 ======= 1. Install 3.0.3.9 (multiboot or as main rom - use @sailor's post as that contains a well organized, step by step instruction) 2. Enable developer mode and set a password 3. Connect the phone to a PC and on the PC run: ssh nemo@192.168.2.15 Still on the PC command line: 4. check repos: Code:
ssu lrCode:
ssu dr adaptation-communityCode:
ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/sfos-latest/sailfishos_3.2.0.12_latest/Code:
ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfishos_3.2.0.12/Code:
ssu release 3.2.0.129. open Fingerterm and login as root: Code:
devel-su (login)Code:
passwd root (enter the password you set in step 2, as the screen requires)Code:
su (enter the give password at previous step)I hope this helps. |
Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
@edp17
What is the purpose of step 8? And pkcon refresh and version --dup do not require root. |
| All times are GMT. The time now is 10:59. |
vBulletin® Version 3.8.8