Sailfish OS porting

Garfanki

Senior Member
Apr 21, 2015
300
25
0
Good morning, I installed the rom but when I connected my OP5 to pc with usb (mtp) nothing happens... my pc doesn’t detect the phone...

---------- Post added at 09:44 AM ---------- Previous post was at 09:11 AM ----------

The problem is the RNDIS driver... Any help?
 

deathmist

Senior Member
Jun 2, 2019
61
154
53
Good morning, I installed the rom but when I connected my OP5 to pc with usb (mtp) nothing happens... my pc doesn’t detect the phone...

---------- Post added at 09:44 AM ---------- Previous post was at 09:11 AM ----------

The problem is the RNDIS driver... Any help?
This has been a long standing issue, I'll have to do more digging and experiment with fixes but the init scripts don't for some reason create the required /config paths for MTP to work... (could be something in the defconfig https://git.io/JeZj1)
For now you'll have to settle on SFTP for file transfer (and use MTP via TWRP for VERY large transfers)

Since you're likely also on Windows I recommend getting Swish http://swish-sftp.org/
Wi-Fi IP address can be found under Settings > Developer tools, user is "nemo", password whatever you set it to on that page and the SFTP path you should set to "/home/nemo"

Hope this helped!
 
Last edited:
  • Like
Reactions: Vika__

Garfanki

Senior Member
Apr 21, 2015
300
25
0
This has been a long standing issue, I'll have to do more digging and experiment with fixes but the init scripts don't for some reason create the required /config paths for MTP to work... (could be something in the defconfig https://git.io/JeZj1)
For now you'll have to settle on SFTP for file transfer (and use MTP via TWRP for VERY large transfers)

Since you're likely also on Windows I recommend getting Swish http://swish-sftp.org/
Wi-Fi IP address can be found under the developer mode settings, user is "nemo", password whatever you set it to on that page and the SFTP path you should set to "/home/nemo"

Hope this helped!

Thank you very much! Swish is ok! An other question: can I root this Rom with magisk?
 

deathmist

Senior Member
Jun 2, 2019
61
154
53
Thank you very much! Swish is ok! An other question: can I root this Rom with magisk?
Oh... this is a problem: I need to make it clear as day that this is NOT just yet another Android ROM. This is a completely different OS, a GNU/Linux distro such as Ubuntu for your phone, if you will. Yes, you need to flash a LineageOS zip before Sailfish OS, but that is for the HAL side stuff so graphics, audio, sensors etc work (no need to reimplement the wheel). You can read more about it here!

But regarding your question, it has root access enabled by default. On a terminal you can type devel-su, type your set user password and then you have root access. The different connection methods are described in my debugging guide if you want to learn more :)
 
Last edited:

Garfanki

Senior Member
Apr 21, 2015
300
25
0
Oh... This is a problem: I need to make clear that this is NOT just yet another Android ROM. This is a completely different OS, a GNU/Linux distro such as Ubuntu for your phone, if you will. Yes, you need to flash a LineageOS zip before Sailfish OS, but that is for the HAL side stuff so graphics, audio, sensors etc work (no need to reimplement the wheel). You can read more about it here!

But regarding your question, it has root access enabled by default. On a terminal you can type devel-su, type your set user password and then you have root access. The different connection methods are described in my debugging guide if you want to learn more :)
Ok, thank you very much!!
 

deathmist

Senior Member
Jun 2, 2019
61
154
53
Does this rom specifically require Oreo to be installed before flashing?
Again, this is NOT a ROM but rather an alternative operating system (non-Android) for your phone. For now it does require a LineageOS 15.1 Oreo ROM to be flashed before as that's the most up-to-date adaption you can do currently utilizing the Oreo blobs. The Pie Hybris base is nearly ready so it shouldn't take long for that to become public either, at which point I'm going to simply rebase the port on that.

If you're looking to dual-boot with Android you can flash LineageOS 15.1 with magisk and whatever else you'd normally use (the microG zip I normally flash DOES NOT work with GApps!) and at the end flash the Sailfish zip. The custom installer will create a copy of the boot image so you can switch between the operating systems using my boot switcher zip.
 

sykomaniac

Senior Member
Jun 16, 2010
1,637
2,431
153
Leeds
Apologies I didn't mean ROM in the sense of android :) should have said release or something else.

Anyway that answers my question so thanks for the clarification!
 

deathmist

Senior Member
Jun 2, 2019
61
154
53
Development already stopped?
Definitely not, but I'm just one guy in college. This weekend I've attempted to rebase all repos on the fresh hybris-16.0 but ran into a bunch of issues. For one, the installer scripts I currently have are completely useless and do not work on the newer TWRP versions (3.3.x) => may have to look into a custom TWRP solution. Even after I got everything extracted & installed to the proper places manually I was just greeted with a blank 1+ bootloader screen and no telnet.
For now I'm focusing on reworking the installer and adding improvements to the current Oreo base (you can now grab a proper up-to-date LineageOS 15.1 zip from here!). I'll upload a new SFOS zip too tomorrow (spoiler: it has fixed Bluetooth & settings pages) after some minor improvements to hybris-installer & boot-switcher :good:
About OTAs, I'm still getting the hang of things but the project can be found here. Most likely I'll get the Pie base working before looking into a public release to avoid any issues that may arise from incorrect package OTAs for 15.1 base vs 16.0, bricked installs etc
 
Last edited:
  • Like
Reactions: sykomaniac

Garfanki

Senior Member
Apr 21, 2015
300
25
0
Definitely not, but I'm just one guy in college. This weekend I've attempted to rebase all repos on the fresh hybris-16.0 but ran into a bunch of issues. For one, the installer scripts I currently have are completely useless and do not work on the newer TWRP versions (3.3.x) => may have to look into a custom TWRP solution. Even after I got everything extracted & installed to the proper places manually I was just greeted with a blank 1+ bootloader screen and no telnet.
For now I'm focusing on reworking the installer and adding improvements to the current Oreo base (you can now grab a proper up-to-date LineageOS 15.1 zip from here!). I'll upload a new SFOS zip too tomorrow (spoiler: it has fixed Bluetooth & settings pages) after some minor improvements to hybris-installer & boot-switcher :good:
About OTAs, I'm still getting the hang of things but the project can be found here. Most likely I'll get the Pie base working before looking into a public release to avoid any issues that may arise from incorrect package OTAs for 15.1 base vs 16.0, bricked installs etc
Thank you very much!!
 

deathmist

Senior Member
Jun 2, 2019
61
154
53
A new SFOS build is up after hours of figuring out the install script backends! If anyone here is capable of auditing and doing stuff with a kernel, I'd appreciate it if you take a look at the defconfig for this project. For now I'm having major issues with telnet & MTP not functioning properly / at all (also USB networking that I recall working before, could just be a SFOS ConnMan / usb-moded issue after 3.1 update tho)
Either way, enjoy the functioning BT power management & new Sailfish OS build with a proper regular LineageOS zip (which I'll update once new monthly security patches get merged)! :cool:
 

Garfanki

Senior Member
Apr 21, 2015
300
25
0
A new SFOS build is up after hours of figuring out the install script backends! If anyone here is capable of auditing and doing stuff with a kernel, I'd appreciate it if you take a look at the defconfig for this project. For now I'm having major issues with telnet & MTP not functioning properly / at all (also USB networking that I recall working before, could just be a SFOS ConnMan / usb-moded issue after 3.1 update tho)
Either way, enjoy the functioning BT power management & new Sailfish OS build with a proper regular LineageOS zip (which I'll update once new monthly security patches get merged)! :cool:
Thanks for your work!
 

deathmist

Senior Member
Jun 2, 2019
61
154
53
Initial OnePlus 5T (dumpling) builds!

Heyo! As the title states I've worked on getting my OP5 sources adapted and compiled for the 5T and... a zip got built succesfully! Check out the latest releases over here.
Since I don't actually own the device (only have a 5 non-T) this was a completely 100% "blind build" (as was the LineageOS 15.1 dumpling zip), so I can only classify it as highly experimental! I have a feeling that they work fine though as the sources are ~95% identical with only minor changes required from my part, so testers are welcome and very much appreciated! :good: Please note that some features such as the Jolla Store will not be available as of right now (need to make sure e.g. IMEI numbers & MAC addresses stay constant during reboots in Settings > About first!), but you can use any SFOS apps (armv7hl RPMs) from OpenRepos until I sort that out.
About the previous telnet comment I made, it ONLY works during first boot (while keeping the device plugged in to 1 computer the whole time) after SFOS 3.1 zips since 20190803, but worked perfectly fine in Hossa 3.0.3.10 (20190727) and prior so it's not a kernel issue as I made 0 changes during the upgrade and it's also very unlikely a device configuration issue on my behalf as I didn't see anything of interest during that timeframe in any of my repos. The issue must lie somewhere in the mer / Sailfish OS userspace, maybe the previously mentioned usb-moded but I've had no luck with using an older version of that :crying:
Since I was building stuff I also made a OnePlus 5 zip of course with minor improvements which you should flash with the latest LineageOS 15.1 builds I have available with October security patches now merged in :fingers-crossed:
 
Last edited:

dakotah2468

Senior Member
Nov 14, 2015
211
50
0
Heyo! As the title states I've worked on getting my OP5 sources adapted and compiled for the 5T and... a zip got built succesfully! Check out the latest releases over here.
Since I don't actually own the device (only have a 5 non-T) this was a completely 100% "blind build" (as was the LineageOS 15.1 dumpling zip), so I can only classify it as highly experimental! I have a feeling that they work fine though as the sources are ~95% identical with only minor changes required from my part, so testers are welcome and very much appreciated! :good: Please note that some features such as the Jolla Store will not be available as of right now (need to make sure e.g. IMEI numbers & MAC addresses stay constant during reboots in Settings > About first!), but you can use any SFOS apps (armv7hl RPMs) from OpenRepos until I sort that out.
About the previous telnet comment I made, it ONLY works during first boot (while keeping the device plugged in to 1 computer the whole time) after SFOS 3.1 zips since 20190803, but worked perfectly fine in Hossa 3.0.3.10 (20190727) and prior so it's not a kernel issue as I made 0 changes during the upgrade and it's also very unlikely a device configuration issue on my behalf as I didn't see anything of interest during that timeframe in any of my repos. The issue must lie somewhere in the mer / Sailfish OS userspace, maybe the previously mentioned usb-moded but I've had no luck with using an older version of that :crying:
Since I was building stuff I also made a OnePlus 5 zip of course with minor improvements which you should flash with the latest LineageOS 15.1 builds I have available with October security patches now merged in :fingers-crossed:
So for 5t do I install with twrp?
Edit:
Everything working perfectly!
 
Last edited:

deathmist

Senior Member
Jun 2, 2019
61
154
53
So for 5t do I install with twrp?
Please read my flashing guide for Sailfish OS carefully, it highlights all the important steps and how I usually do things.
But yes, for now you need TWRP 3.2.3 AND OOS 5.1.7 firmware with LineageOS Oreo 15.1 because I haven't rebased on 16.0 yet. Here's a progress screenshot tho, I'm getting there slowly :)
It's essentially the same process as for the regular OnePlus 5 non-T (cheeseburger), but you just use zips specifically crafted for the OnePlus 5T with dumpling in their filenames.
To get back to Pie ROMs after testing Sailfish OS you can just flash OOS 9.0.8 firmware and a newer TWRP such as 3.3.1 from here followed by a device reboot.
Happy testing! :fingers-crossed:

---------- Post added at 11:03 ---------- Previous post was at 10:50 ----------

So for 5t do I install with twrp?
Edit:
Everything working perfectly!
Holy crap, that's awesome considering I literally couldn't test if the OS even booted anywhere myself :laugh: If possible could you provide some screenshots of Sailfish OS on the 5T and send them as PM to me? You can simply take a screenshot by holding down Vol + & Vol - at the same time for a bit until the notification appears (they get placed in /home/nemo/Pictures/Screenshots/*.png in SFOS rootfs). To transfer the images your computer I recommend SSH unless you want to boot to TWRP and manually grab them from the SFOS rootfs (/ is actually in /data/.stowaways/sailfishos/).
 
Last edited:

dakotah2468

Senior Member
Nov 14, 2015
211
50
0
Please read my flashing guide for Sailfish OS carefully, it highlights all the important steps and how I usually do things.
But yes, for now you need TWRP 3.2.3 AND OOS 5.1.7 firmware with LineageOS Oreo 15.1 because I haven't rebased on 16.0 yet. Here's a progress screenshot tho, I'm getting there slowly :)
It's essentially the same process as for the regular OnePlus 5 non-T (cheeseburger), but you just use zips specifically crafted for the OnePlus 5T with dumpling in their filenames.
To get back to Pie ROMs after testing Sailfish OS you can just flash OOS 9.0.8 firmware and a newer TWRP such as 3.3.1 from here followed by a device reboot.
Happy testing! :fingers-crossed:

---------- Post added at 11:03 ---------- Previous post was at 10:50 ----------



Holy crap, that's awesome considering I literally couldn't test if the OS even booted anywhere myself :laugh: If possible could you provide some screenshots of Sailfish OS on the 5T and send them as PM to me? You can simply take a screenshot by holding down Vol + & Vol - at the same time for a bit until the notification appears (they get placed in /home/nemo/Pictures/Screenshots/*.png in SFOS rootfs). To transfer the images your computer I recommend SSH unless you want to boot to TWRP and manually grab them from the SFOS rootfs (/ is actually in /data/.stowaways/sailfishos/).
Would you mind if I used my pixel to take the pics?
 

deathmist

Senior Member
Jun 2, 2019
61
154
53
When will build with android support?
Short answer: probably not in a long time.

I am unable to add aliendalvik which is on official Sailfish X devices since it's licensed, paid for and proprietary. I don't have much hope for Anbox or SFDroid on Sailfish OS in their current states anyway. I've been happy myself with the dual-boot setup I got working since I'm personally not sucked into any particular ecosystem and only have a few apps I rarely need from the Android side. If you need that many Android-only apps that do not even have unofficial clients on Sailfish OS, an alternative operating system such as SFOS may not be for you :p