Extreme n00b question: why do certain OSes have trouble working with certain mobile hardware? For example, Ubuntu mobile works on Fairphone and it’s listed as one of the main phones that it supports, but it still has a few things that aren’t working yet. What makes it difficult to get, say, a camera working on one phone versus another?
Could there ever come a time when switching between OSes is as trivial as switching between Linux and Windows on desktop, or are the hardware differences between mobile devices just too great for that to ever be realistic?
So the purpose of an operating system is to coordinate and manage the hardware on a computer. It provides a standardized service so that the software does not need to worry about the details of the hardware. So a program can ask for RAM or ask to write a file to the hard drive and the OS facilitates actually doing that, or denies the request.
This is why software needs to be written for a specific operating system (android, windows, Linux, etc) but not for specific hardware. So my program needs to count on you running windows, but it doesn’t need to count on specific hardware, ie it doesn’t matter if you use an AMD or Intel cpu as long as it’s running windows.
The OS, on the other hand, does care what hardware it’s running on. The OS needs to know how to command the hardware and there’s many many different brands and generations of hardware that all work a little differently. Cameras are a good example, there’s tons of different cameras that all work a little differently. The software that allows an OS to communicate with a piece of hardware is called a driver.
Desktop hardware is pretty well defined at this point, and manufacturers are good about publishing drivers for most OSes for most of their hardware. And in the case of Linux, even if the manufacturer doesn’t do that, any nerd can write their own driver and publish it for everyone to use. This is a big part of the reason Linux has such good hardware coverage.
In the case of phones, things are much more locked down. Phones are not an open platform like desktop PCs. The vast majority of phones (and their components) are made with a specific OS in mind. This is obvious with Apple products since the hardware and the OS are made by the same company. Android is a little more open, but even then most phones are made with a specific company’s special flavor of android in mind. Basically no phones ship with straight up vanilla android. The companies that make the phones would really rather you not run any other OS, so they will often do things like lock the bootloader which makes it more difficult to just install something else.
So with that in mind, you can’t usually just boot into Linux on any old phone. All the drivers and everything else that Linux would need to know how to drive the hardware just isn’t available, or no one has bothered to write it. Fair phone has to facilitate that directly.
In the case of graphene, it’s still android, so it can take advantage of existing android drivers. However, graphene also has specific hardware security requirements (that I’m not super familiar with tbh) and up until recently, Google was the only manufacturer making phones that met those requirements. So that makes compatibility difficult.
Also, with phone cameras specifically, it’s actually usually not that hard to get them to work. You can get most phone cameras to produce an image relatively easily. The hard part is that Google and Apple do a ton of post processing on those images to make them look as good as they do. They pay a lot of talented people a lot of money for that. So a lot of the time it’s not that a Linux phone can’t get an image out of a phone camera, it’s that image looks like shit compared to what people are used to and it takes a lot of time and effort to get there.
Vendor Android ROMs are built specifically to work with the device it is meant to be installed on, including stuff like drivers and blobs.
When you install an AOSP (open source Android for general devices) or an AOSP-based ROM, it usually does not contain the neccessary blobs for stuff like VoLTE/VoIP, cameras, fingerprint, etc. These blobs are in binary and are not human-readable, and a driver for a Samsung camera won’t work with a Xiaomi one.
Often times, you will need to extract the blobs yourself from a phone you have physical access to. ROM makers often do not have the time or money or effort to buy these for every phone they make. And did I mention that regional variants slightly differ and cannot be interchangeable with ROMs?
Fairphone is an open phone—it’s their whole thing, and they most likely are willing to collaborate with ROM makers, which is why. Same goes for PINE64 and Jolla. And no, I don’t think that there’ll ever be a time where switching ROMs is as easy as switching desktop OSes. It’s simply in the way phones are built.
It has a lot of reasons and it’s not easy to solve if not almost impossible. It starts with a locked bootloader. If you pass that issue, there is lack of firmware and driver blobs. Even if you get a working driver, it’s written for a certain kernel version and doesn’t work well on newer kernels or doesn’t work at all. Even if you get a working driver and a firmware, you might still need proprietary software for it to run as intended (for example cameras). So basically the main reason is, there is no standardization when it comes to mobile devices.
That’s why we also need open hardware if we want things to be easier.
Sadly, with the current system and current device manufacturing schemes, there won’t be a time that switching OSes is as easy as desktops.
Extreme n00b question: why do certain OSes have trouble working with certain mobile hardware? For example, Ubuntu mobile works on Fairphone and it’s listed as one of the main phones that it supports, but it still has a few things that aren’t working yet. What makes it difficult to get, say, a camera working on one phone versus another?
Could there ever come a time when switching between OSes is as trivial as switching between Linux and Windows on desktop, or are the hardware differences between mobile devices just too great for that to ever be realistic?
Sorry for the novel.
So the purpose of an operating system is to coordinate and manage the hardware on a computer. It provides a standardized service so that the software does not need to worry about the details of the hardware. So a program can ask for RAM or ask to write a file to the hard drive and the OS facilitates actually doing that, or denies the request.
This is why software needs to be written for a specific operating system (android, windows, Linux, etc) but not for specific hardware. So my program needs to count on you running windows, but it doesn’t need to count on specific hardware, ie it doesn’t matter if you use an AMD or Intel cpu as long as it’s running windows.
The OS, on the other hand, does care what hardware it’s running on. The OS needs to know how to command the hardware and there’s many many different brands and generations of hardware that all work a little differently. Cameras are a good example, there’s tons of different cameras that all work a little differently. The software that allows an OS to communicate with a piece of hardware is called a driver.
Desktop hardware is pretty well defined at this point, and manufacturers are good about publishing drivers for most OSes for most of their hardware. And in the case of Linux, even if the manufacturer doesn’t do that, any nerd can write their own driver and publish it for everyone to use. This is a big part of the reason Linux has such good hardware coverage.
In the case of phones, things are much more locked down. Phones are not an open platform like desktop PCs. The vast majority of phones (and their components) are made with a specific OS in mind. This is obvious with Apple products since the hardware and the OS are made by the same company. Android is a little more open, but even then most phones are made with a specific company’s special flavor of android in mind. Basically no phones ship with straight up vanilla android. The companies that make the phones would really rather you not run any other OS, so they will often do things like lock the bootloader which makes it more difficult to just install something else.
So with that in mind, you can’t usually just boot into Linux on any old phone. All the drivers and everything else that Linux would need to know how to drive the hardware just isn’t available, or no one has bothered to write it. Fair phone has to facilitate that directly.
In the case of graphene, it’s still android, so it can take advantage of existing android drivers. However, graphene also has specific hardware security requirements (that I’m not super familiar with tbh) and up until recently, Google was the only manufacturer making phones that met those requirements. So that makes compatibility difficult.
Also, with phone cameras specifically, it’s actually usually not that hard to get them to work. You can get most phone cameras to produce an image relatively easily. The hard part is that Google and Apple do a ton of post processing on those images to make them look as good as they do. They pay a lot of talented people a lot of money for that. So a lot of the time it’s not that a Linux phone can’t get an image out of a phone camera, it’s that image looks like shit compared to what people are used to and it takes a lot of time and effort to get there.
Vendor Android ROMs are built specifically to work with the device it is meant to be installed on, including stuff like drivers and blobs.
When you install an AOSP (open source Android for general devices) or an AOSP-based ROM, it usually does not contain the neccessary blobs for stuff like VoLTE/VoIP, cameras, fingerprint, etc. These blobs are in binary and are not human-readable, and a driver for a Samsung camera won’t work with a Xiaomi one.
Often times, you will need to extract the blobs yourself from a phone you have physical access to. ROM makers often do not have the time or money or effort to buy these for every phone they make. And did I mention that regional variants slightly differ and cannot be interchangeable with ROMs?
Fairphone is an open phone—it’s their whole thing, and they most likely are willing to collaborate with ROM makers, which is why. Same goes for PINE64 and Jolla. And no, I don’t think that there’ll ever be a time where switching ROMs is as easy as switching desktop OSes. It’s simply in the way phones are built.
It has a lot of reasons and it’s not easy to solve if not almost impossible. It starts with a locked bootloader. If you pass that issue, there is lack of firmware and driver blobs. Even if you get a working driver, it’s written for a certain kernel version and doesn’t work well on newer kernels or doesn’t work at all. Even if you get a working driver and a firmware, you might still need proprietary software for it to run as intended (for example cameras). So basically the main reason is, there is no standardization when it comes to mobile devices.
That’s why we also need open hardware if we want things to be easier.
Sadly, with the current system and current device manufacturing schemes, there won’t be a time that switching OSes is as easy as desktops.