Maru OS on Lineage OS

791 views
Skip to first unread message

Preetam

unread,
May 17, 2018, 1:54:33 PM5/17/18
to Maru OS dev
Hello Maru enthusiasts!

If you have been keeping up with our dev forums and ports you will notice that a lot of our ports for non-Google/AOSP devices are using LineageOS builds as the base to leverage all the great device support work done by the Lineage community. This was all because of Georgian's work in getting Maru working on LineageOS with his LG and HTC builds so I want to say a big THANK YOU to him for pushing the project forward.

Given that we have so many non-Google ports going on now, I think it's about time that Maru OS has an official branch based on LineageOS that all of these ports can use. This will save a lot of time for our porters as they will not have to worry about the details of integrating Maru's core code into their Lineage build--they can just focus on the device-specific stuff. This should give our porting velocity quite a boost.

Another advantage of supporting an official LineageOS-based manifest is that we will be able to bring our legacy devices to newer Android versions as well. (Let's be honest, Android 6 is super old now!!)

So I've gone ahead and started the process. And what better way to start than getting a prototype of Maru on LineageOS 14.1 / Android 7 running on our trusty old Nexus 5? See attached screenshot for the proof! Maru Desktop is running fine and everything. There are some polish details that I'll need to iron out before actually doing an official release but we are well on the way to making this happen.

Stay tuned as I will keep updating this thread as I begin to upload these branches to our GitHub so all our ports can switch over to LineageOS.

P.S. Honestly, I've wanted to start doing this for a while but haven't had the time since my transition to working part-time on Maru (see my blog post for details if you haven't already). But, I've made it a resolution to get more work done on Maru this year and I think we are going to have some pretty cool updates this year!


Screenshot_20180517-131813.png
Screenshot_20180517-135225.png

Georgian Chituc

unread,
May 17, 2018, 6:23:03 PM5/17/18
to Maru OS dev
Excelent job done !That's great to hear ! Thank you for the hard work ! Let's hope to see more devices running Maru

Georgian Chituc

unread,
May 18, 2018, 7:45:24 AM5/18/18
to Maru OS dev
Maybe we integrate a Ubuntu 16.04 aarch64 image inside the builds , I find a lot of fixes inside it versus debian also log out and log in works , etc . Also we have the Twaik android pulse audio server , whitch I use inside my HTC 10 , and sound is enabled by default for linux desktop .
If you re interested I will upload a clean ubuntu compressed image .
Thank you!

Preetam

unread,
May 20, 2018, 6:01:05 PM5/20/18
to Maru OS dev
Ubuntu would be great but ideally the image is in our blueprints repo so it can be automatically built for every release. If you can get it working with blueprints like with Debian that would be great and we could switch the builds over to Ubuntu by default. Otherwise it is error-prone and difficult to update the images. I don't think it should be hard to do since Ubuntu is built off of Debian. I would attempt this myself but I'm not sure when I will have the time.

If you upload an Ubuntu image I will definitely try it out though. Maybe it will be so much better than Debian that I will move faster to get Ubuntu working :)

Preetam

unread,
May 20, 2018, 6:34:41 PM5/20/18
to Maru OS dev
Alright, I just pushed up the cm-14.1 manifest that is based on Lineage 14.1: https://github.com/maruos/manifest/tree/cm-14.1. It is called "cm-14.1" since that is the same branch that LineageOS uses in it's official repos to make it obvious where we need to fetch updates from.

If you would like to start building your ports on cm-14.1, just do the usual:

$ repo init -u git://github.com/maruos/manifest.git -b cm-14.1
$ repo sync

To integrate your ports into cm-14.1, it will be helpful to take a look at how I have integrated Nexus 5 / hammerhead:

Changes to the Lineage OS hammerhead device tree that adds the maru_hammerhead product:
https://github.com/maruos/android_device_lge_hammerhead/commit/a47c55d2a58c67a6805bddfa1aa0e93173a5691a

Changes to the Lineage OS hammerhead kernel tree that adds maru's kernel defconfig:
https://github.com/maruos/android_kernel_hammerhead/commit/4510fe0557adff693f7d62a6002089969cec97dc

You will likely need to do something very similar for your ports.

I will also be updating our wiki's Porting Guide with more detailed information since it is a bit outdated now.

Please let me know if you run into any issues!

Georgian Chituc

unread,
May 31, 2018, 7:27:45 PM5/31/18
to Maru OS dev
Yea! Tested and is working .
I will upload on github the modified device tree and kernel source I used ro build images for HTC 10 . So maybe this become a official device too .
Since Linux on galaxy seams to never release soon my focus is to try the maru os patches for LineageOS 15.1 ,because this is working great on S9 .
I hope there is not hard to patch Lineage 15.1 , it will be great to see S9 running MaruOs
Thanks!

Preetam

unread,
Jun 1, 2018, 9:46:35 AM6/1/18
to Maru OS dev
That's great, thanks for testing and confirming!

Yes, I would love to have HTC 10 merged into our official repos and built in our release process along with Nexus 5 and Nexus 7! Please let me know as soon as you have uploaded to GitHub and we can work together to make this happen. Releasing HTC 10 as part of our official release will bring a LOT more users outside of our forums to try your build!

Regarding 15.1--I have not looked at Android 8 yet...sometimes it's easy to patch like when we transitioned from Android 5 to 6, sometimes it is a pain like with Android 6 to 7. I agree that we should move to Android 8 ASAP though. But at least we can get some releases on 7 going for now.

Georgian Chituc

unread,
Jun 7, 2018, 3:52:01 PM6/7/18
to Maru OS dev
I just got my S9 plus today. Finally....
Lineage os 15.1 works on it will have to try the maru patches for 15.1 ..

PHoSawyer

unread,
Jun 8, 2018, 5:04:00 AM6/8/18
to Maru OS dev
Nice!

Is there any kind of guidance to patch Maru on top of Lineage at the moment?

Bart Jitter

unread,
Jun 8, 2018, 8:47:22 AM6/8/18
to Maru OS dev
Wow, this goes fast! Would it be possible to get it on the S8 too?
S9 is somewhat expensive for the moment and there are secondhand S8's out there.


Other question:
Could you provide directions (steps to follow) to get Arch linux running as MarusOS?
I don't like Ubuntu. It's not 'open' as it should be.

Thanks for all the amazing work.

Regards

Georgian Chituc

unread,
Jun 8, 2018, 11:19:14 AM6/8/18
to Maru OS dev
Maru os officially supports Lineage Os 14.1 as base . It is on cm-14.1 branch on maru github ,just read up the news .

The next goal is to support Los 15.1 too and to add more officialy supported devices .

We have made debian 9 , ubuntu 16.04 and arch linux in both armhf and aarch64 images . all worked , but my preffered now is ubuntu 16.04 arch64 .

So this linux images can be used , I will have to upload them in a separate thread.

Samsung galaxy s8 do not have treble project support and there is no good to use AOSP for it .
All devices that come with at least Android 8 , like S9/S9+ , have project treble support so Lineage Os 15.1 aldready works good on them , I type this using a S9+ and Los 15.1 .

I have to get the Los 15.1 source and see if it can be easy patched for maru , or have to get Preetam help .

If we can get Los 15.1 patched , all devices that comes with project treble support will be able to run Maru and Los 15.1 as base without problem .

Bart Jitter

unread,
Jun 8, 2018, 3:00:06 PM6/8/18
to Maru OS dev
Thanks for clear explication!
When you put the Arch images up, i am willing to try.

Regards

Preetam

unread,
Jun 8, 2018, 3:05:37 PM6/8/18
to Maru OS dev
Awesome! Let me know how the patches go on 15.1, I can definitely help if you run into issues.

I'm currently working on getting release builds up for our Lineage 14.1 branch. Hopefully we can add Georgians HTC 10 build officially along with that (please send me those PRs!)

Georgian Chituc

unread,
Jun 15, 2018, 11:20:40 AM6/15/18
to Maru OS dev
To get HTC 10 build set up ,we need just few things .

All is like in  https://wiki.lineageos.org/devices/pme/build  but using maru cm-14.1 manifest , and before to start building we have to add some lines in few files :

1 .kernel pme config file must to have :
CONFIG_SYSVIPC=y

CONFIG_CGROUP_DEVICE=y

CONFIG_UTS_NS=y

CONFIG_PID_NS=y

CONFIG_DEVTMPFS=y

CONFIG_DEVPTS_MULTIPLE_INSTANCES=y

CONFIG_AUTOFS4_FS=y

2. the device tree have to add :

device/htc/pme/device.mk:$(call inherit-product, vendor/maruos/device-maru.mk)
device/htc/pme/BoardConfig.mk:BOARD_SEPOLICY_DIRS += vendor/maruos/sepolicy
device/htc/pme/rootdir/etc/init.qcom.rc:import init.maru.rc

lxc from maru github must to be in external/lxc
vendor maru github must to be in vendor/maruos

building can start like in lineage os wiki brunch pme

Now it will build a patched lineage os 14.1 pme image that run maru os :D
So htc 10 can become official .

For the already build image that I will upload I also set up the android pulseaudio server ,so to have sound from ubuntu/debian .


Preetam

unread,
Jul 16, 2018, 9:11:54 AM7/16/18
to Maru OS dev
Just an update on progress:

On cm-14.1 (Android N) N5 works great and Georgian has confirmed HTC10 works as well. There are some really small polish issues left (e.g. there is still LineageOS update option under Settings that needs to be removed, etc.) but the system works and appears stable in my testing. Next steps are to get automated builds running and release official images for everyone to use.

Georgian has also done some work to support lineage-15.1 (Android 8) and I am getting an official manifest for us set up so we can build for newer devices like the S9. 15.1 is still under active development so we will try to use cm-14.1 for our official releases for now until everything is well settled on 15.1 or the hardware is new enough that it requires Android 8 as a minimum. There is one big issue for us left to fix which is moving the Maru Desktop dashboard under Settings to the new Android 8 settings architecture. I am working on this atm.

Both 14.1 and 15.1 support the virtual / wireless display patches and we are testing these as well which will enable Maru on all devices regardless of hardware HDMI out capabilities.

Preetam

unread,
Jul 25, 2018, 3:48:05 PM7/25/18
to Maru OS dev
Manifest branch "maru-0.6" (based on lineage-15.1 / Android 8) is now available for testing! It is honestly very exciting to see Maru running on Oreo. I have been running 0.6 on my trusty Nexus 5 for the past week and it seems quite stable. If you'd like to port to a device that Lineage 15.1 supports, this will make it much easier for you to get started.

Next up, I will be getting some automated "nightlies / weeklies" going so it's easy for everyone to grab the latest builds.

P.S. I will also be renaming the "cm-14.1" branches and manifest to "maru-0.5" to keep consistent branch names.

Poisot Loïc

unread,
Jul 29, 2018, 5:37:55 AM7/29/18
to Maru OS dev
Hello Preetam. Thanks a lot for carrying this !
This project if simply futuristic, the convergence as we could have dreamed it.

I've been following this since a long time and now I have the time and I want to participate.
I'll focus on Sony devices (Z1, Z3 compact and X1 Compact) and will start soon. Expect a lot of questions from me ;-) but do not expect any port soon. Indeed I never ported anything but will follow Lineage tutos and go incrementaly. Hopefully I can deliver something before EOY.

Regards,

Tyler Martin

unread,
Jul 30, 2018, 6:48:06 PM7/30/18
to Maru OS dev
Awesome! I'm going to repo sync this and get it going on the Nexus 7 and Nexus 9.

Preetam

unread,
Jul 31, 2018, 9:58:55 PM7/31/18
to Maru OS dev
Hello Poisot,

Thank you for your interest in Maru!

I am very much looking forward to your contributions and will help in any way I can. I have some work to do to improve our current Porting Guide as it is a bit outdated--this should hopefully make it a bit clearer how to get started.

Also--I think it would be great to get in touch with our community dev Noel who was working on several Sony ports, although they have been quiet for awhile now. See this thread for example: https://groups.google.com/forum/#!topic/maru-os-dev/s5miAGjwpDQ.

Best,
Preetam

Preetam

unread,
Jul 31, 2018, 9:59:57 PM7/31/18
to Maru OS dev
@Tyler Yes please! Let me know if you hit any issues.

Dustin Klingele

unread,
Oct 31, 2018, 10:26:37 AM10/31/18
to Maru OS dev
Looking forward to an updated guide, wanting to get started on testing the Essential PH1 (mata) if I can, and right now I'm not sure the original user that was porting it is still doing so. I haven't even compiled a ROM before so this is new territory but I'm looking forward to the challenge.
Reply all
Reply to author
Forward
0 new messages