Conversation

Qualcomm cares about selling hardware. They've been trying to get a mainline kernel driver stack up and going for years. It's incredibly difficult to land everything upstream. The upstream kernel doesn't accept kernel drivers only used with closed source userspace libs, etc.
1
1
There aren't kernel drivers to build userspace support because the userspace support hasn't been written for non-existent kernel drivers. It all has to be cleaned up, overhauled, ported over to upstream frameworks which are often totally inadequate and have to be improved, etc.
1
1
The open source driver stack for Snapdragon exists and is usable. However, it doesn't match the performance/functionality for devices it supports and it's ready a year or two after the hardware is launched rather than way before that which is what would have to happen...
1
1
So, since it's not what gets shipped, it obviously doesn't get the same resources applied to it. Over time, it's getting better and getting more resources applied but it's unclear if there will EVER be a point that devices can ship with upstream kernel unless they use an old SoC.
2
That's essentially what you're able to get with a development board like 96boards.org/product/rb3-pl with AOSP support. Same SoC as the Pixel 3, but in the smartphone world this is already a past generation SoC and it'll be at Pixel 5 / 6 before the open driver stack could be ready.
2
If all the past efforts / partnerships hadn't been blown up by greed, GrapheneOS would likely already be using custom hardware based on a Qualcomm reference design. Could build with the actual vendor SDK / sources in our official builds and publish output in a usable format.
1
1
It was all massively set back. Still dealing with all of that stuff far more than focusing on the actual project. Pixels are the best currently available option and will probably remain as such, until we can get reference hardware produced for us and start customizing that.
2
1
Everything that matters should work simply using the stock vendor image. Unpacking it and reassembling it is needed to start replacing the components with our own builds including our own SELinux policy, building as much as possible from source and omitting what isn't required.
1
If our approach was supporting many devices and not taking a particularly close interest in any of them, that's what we would be doing anyway. People haven't been interested in working through replacing everything in vendor with our builds, alternative implementations, etc.
2
The purpose of android-prepare-vendor is enabling that incremental work, but we only ever did a tiny bit of it, i.e. replacing SELinux policies and changing a few configuration files. Could be building lots from source without even adding CAF repositories but no one worked on it.
Start by trying to reproduce vendor.img exactly and don't include anything else. Can get rid of all the system and product portions since none of that is required. Build the vendor image, compare to the stock one and keep going until it's identical and it should boot up fine.
2
Show replies