7

Can some functionalities for os be passed to second kernel?

For example there could be docker or some other VM with Halium kernel to use some apps for example WiFi, camera and SIM calling?

Example can be qubesos which uses separate VM to do networking and other functions.

you are viewing a single comment's thread
view the rest of the comments
[-] mecen@lemmy.world 2 points 1 day ago

Doesn't kernel require just tens of MB?

[-] balsoft@lemmy.ml 2 points 1 day ago

You'd need to run a lot of duplicate services on top of that kernel for it to be any useful. Besides, the VM adds its own memory overhead too.

[-] paper_moon@lemmy.world 2 points 1 day ago
[-] balsoft@lemmy.ml 1 points 1 day ago* (last edited 1 day ago)

First of all, AFAIR it only really works on x86 for now. Besides, I don't see much benefit in running two kernels side-by-side like this in this situation, you would once again have to run a lot of services twice (eating up RAM) and you don't even get any security benefits in return. The only slight benefit is better software compatibility on a newer kernel but in all likelyhood it's easier to backport the software to the old kernel, rather than get this exceptionally weird multikernel setup running on already quirky phone hardware.

[-] paper_moon@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

In the context of cell phones, it makes a lot of sense though, if you can pull it off. Android kernel for hardware support, mainline kernel for software support. Right now there's very few phones that can run mainline linux and actually use the features people would expect from a phone, the rest use android kernels and hallium which gives good hardware support, but doesn't support the software stack for gnome-mobile and all the 'traditional' linux software like flatpak apps, etc.

So you're either stuck with a phone that doesn't work to call, doesn't have a working camera, etc, with mainline linux, or an android kernel that doesn't a support the usual linux software stack and has to run something like ubuntu touch (ubports) which is great that it works, but because its ubuntu's software stack and an android kernel, you can't run things like gnome-mobile or other traditional linux software like flatpak apps like postmarketos can.

The main problem I'm finding is: ubuntu touch apps have to be specifically built for ubuntu touch, you can't just grab a flatpak app like you can with postmarketos and a mainline kernel. So the app ecosystem is really lacking vs running a mainline kernel, but then of course your hardware won't work like camera, volte, etc.

I just want a working linux phone that has access to the apps we've come to love, and I feel like running 2 kernels is the way to achieve that until we get more people mainlining hardware support for all the various cell phones.

Preemptively, one might question why someone would want traditional linux apps on a phone, but there's a surprising amount of flatpak apps on flathub that are built with responsive design and scale fairly well to a phone screen/touch interface. So being able to use the same software you use on your desktop, on a phone is great!

[-] balsoft@lemmy.ml 1 points 1 day ago

Right, but my point is that the amount of effort required to just get the multikernel fully running on quirky phone hardware is quite a lot, and then you have to set up a lot of plumbing for both userspaces to communicate across kernels (i.e. you'll have to write driver shims for a lot of things). It is probably easier to port software to ubports.

[-] paper_moon@lemmy.world 1 points 1 day ago

Yah, I mean, thats true. I guess I was hoping the multi kernel thing would be more of a 1-time development effort that would work across phones, so once you got it set up it would help all phones accomplish the same thing. I'm not a kernel dev though so I have no idea in reality how this stuff actually works under the hood.

[-] balsoft@lemmy.ml 1 points 1 day ago

There would be shared parts for sure, but knowing the nightmare that is phone boot environments I feel like it would need a lot of effort per device still.

[-] mecen@lemmy.world 1 points 1 day ago

But Qubes runs separate VM for diffrent functions to prevent compromised VM to do any harm for main system. For example halium kernel could have only access to camera so it won't spread harm?

[-] balsoft@lemmy.ml 1 points 1 day ago* (last edited 1 day ago)

This is not about a qubes-like setup, it's about a multikernel setup (no hypervisors, just two kernels running on the same hardware in parallel). Both kernels have full ring0 (=EL1 on aarch64) hardware access in that case.

this post was submitted on 14 Apr 2026
7 points (100.0% liked)

postmarketOS

216 readers
3 users here now

postmarketOS - a real Linux distribution for phones and other mobile devices 🐧 πŸ“± πŸ‘©β€πŸ’»

Rules:

See also:

founded 8 months ago
MODERATORS