Comment by ACCount37
4 months ago
Unfortunately, even if you could completely de-blob the kernel itself (and for many chipsets, that would require a considerable amount of reverse engineering work!), smartphones bear the Curse of the Modem.
In a modern smartphone, modem is often a part of the SoC itself - and it runs some of the biggest and fattest blobs you've ever seen.
This is the big barrier here, and unfortunately, it is legally impossible to open source.
In most countries, the spectrum that cell phone carriers use is licensed to the carrier, under the condition they only connect devices that are guaranteed to comply with the requirements of using that spectrum. The end user (i.e. the person with the phone) has no license to use the spectrum. So in order to get regulatory certification, basically every modem has to be locked down so that the end user cannot operate it in a way that would violate any rules or regulations for using that spectrum.
So basically, it's illegal to have open source modem firmware. At least, as long as cell phones are operating on spectrum that isn't open for public use.
Ultimately, if you want to open source a modem, you first need to build your own cell phone network.
this is the same thing with wifi. There are different channels and transmission power rules depending on country. Something you cannot change even if you are root or build your own kernel, as it's built in to the wifi hardware (eg. raspberry pi)
Part 15 is a lot more permissive, and it's unlicensed. But yeah, the device still has to be part 15 certified.
You can open source it. Unfortunately, "open source" doesn't mean "user is allowed to run his own code" nowadays.
theoretically, there is lte cbrs where spectrum not licensed.
Don't cbrs devices need to be part 96 certified? The spectrum might not be licensed but you still may need a certified device to legally use the spectrum. Which you could do, but that is a tall hill to climb for a FOSS enthusiast. And when you're done -- what network are you going to connect it to? A cheap SIM from the corner store is probably out of the question :)
3 replies →
Hopefully open mesh wifi will supplant cell phone networks anyway.
Haven't there been projects trying to do this since 802.11b? I think the last time I looked one of these mash networks up, there wasn't even decent coverage in the dense city I lived in.
One of the two processors (the ARM one) in the PinePhone modem runs a proprietary Linux distro, which can be replaced by a free distro. The code on the Hexagon processor can't be replaced yet though I think.
https://themodemdistro.com/ https://github.com/the-modem-distro/
Yeah, and it's the Hexagon mDSP that's the issue. It's basically THE modem. It has its own RTOS and runs the entire RF stack and whispers to all the other RF parts. The cores that run the Linux distro are just... there. For you to run Android on, normally.
PostmarketOS can run on some devices with almost no blobs - but there's no escaping the modem curse.
Not insurmountable, given the availability of srsRAN.
https://www.srsran.com/
But are you enough of a madman to port that onto an undocumented magic modem?
Yep, with DMA sometimes. I've heard this same thing on the Pinephone forums iirc during the early years.
I for one am up to the idea of breaking android off Google due to the same reasons of chrome - conflict of interest since Google is an advertising company.