Live data from Hacker News

Bringing the Android kernel back to the mainline

lwn.net

101–110 of 121 posts

Re: Bringing the Android kernel back to the mainline

#101

Earlier quoted context omitted.

I challenge you to name me one Android device that is officially supported for 4 or more years. ;) iPhone 4 is 8 years old so not sure I see your point.

The Nvidia Shield TV is pretty close. It came out May 2015 and is still being supported (most recent update came out in September).

I love my Shield TV, great bit of kit.

Re: Bringing the Android kernel back to the mainline

#102
post #12

When I buy a laptop I install whatever is the latest version of Ubuntu on it and am done. When I buy an access point I install whatever is the latest version of OpenWrt on it and am done. I've tried to do the same thing with phones using LineageOS but it's hopeless. Devices are often half broken and are never guaranteed to continue being supported because of this kernel mess. It seems there's slow progress being made…

Side-hijack: Your fav OpenWRT router ?

Re: Bringing the Android kernel back to the mainline

#103
post #12

When I buy a laptop I install whatever is the latest version of Ubuntu on it and am done. When I buy an access point I install whatever is the latest version of OpenWrt on it and am done. I've tried to do the same thing with phones using LineageOS but it's hopeless. Devices are often half broken and are never guaranteed to continue being supported because of this kernel mess. It seems there's slow progress being made…

Side-hijack: Your fav OpenWRT router ?

I use mostly TP-Link stuff. The Archer C7 has been a good work horse lately. You will need something with more CPU power if you have Gigabit internet service. For everything else it seems more than capable.

Re: Bringing the Android kernel back to the mainline

#104
post #64

Earlier quoted context omitted.

This. I managed to build recent Linux on a Pentium MMX Mobile (IIRC) laptop from 1998. A cell phone from 5 years ago can't handle a modern operating system, but a 1998 laptop can run Xorg just fine.

Just the other day I installed the latest lineageos on my original moto G, I think thats from 2013. And it works great. Edit: actually, when I say 'latest' I mean 'latest available for the moto g'. I'm not 100% sure that's the very latest version that exists.

>actually, when I say 'latest' I mean 'latest available for the moto g'. I'm not 100% sure that's the very latest version that exists.

It's not. You're stuck with an Android that's 2 versions behind current and are still using the original kernel version that shipped with the device.

Re: Bringing the Android kernel back to the mainline

#105
post #47

Earlier quoted context omitted.

Android Inc should probably have gone with a micro kernel, instead of going for Linux' monolithic approach. Would have made things much easier to manage in regard to separation of concerns.

Wouldn't really help -- the biggest result would be that vendors would have less of a reason to release things under the GPL.

That's a non-issue because a microkernel system call interface is stable. Drivers will simply continue to work in perpetuity. That seems like a huge help to me.

Re: Bringing the Android kernel back to the mainline

#106
post #32
post #31

Earlier quoted context omitted.

There's a compromise solution to achieve something equivalent. And I say so after having tried many possibilities. Buy a Pixel or any other phone that supports AOSP (Sony does too, with some caveats) and install plain AOSP. It's not perfect as you need a bit of infrastructure to compile it yourself and keep OTA updates. But it's the most practical secure and privacy-respecting option, I think.

As far as I know those have the exact same issues with their kernels. The problem isn't the Android side of things, that's workable with Android One phones too. The problem is what is described in the article, the kernels at best get some patches but are never upgraded to new versions. Imagine if your Linux laptop was restricted to the specific kernel version the particular vendor had decided to ship initially.

> Imagine if your Linux laptop was restricted to the specific kernel version the particular vendor had decided to ship initially

In older times, kernel patches for exotic hardware often tied the user to a specific version - of course a very stale one... Let's not go there again !

Re: Bringing the Android kernel back to the mainline

#107
post #12

When I buy a laptop I install whatever is the latest version of Ubuntu on it and am done. When I buy an access point I install whatever is the latest version of OpenWrt on it and am done. I've tried to do the same thing with phones using LineageOS but it's hopeless. Devices are often half broken and are never guaranteed to continue being supported because of this kernel mess. It seems there's slow progress being made…

Side-hijack: Your fav OpenWRT router ?

Anything not RAMIPS/MT76x8. If you want WiFi. I currently use a TL-MR3420 V5, which is 64/8 MB + MT7628 CPU, but WiFi is still broken. I'm gonna compile the latest revision of mt76 driver, today there was some talk on Github that it MAY fix SOME issues with SOME configs of WiFi routers... :/

Re: Bringing the Android kernel back to the mainline

#108
post #64

Earlier quoted context omitted.

This. I managed to build recent Linux on a Pentium MMX Mobile (IIRC) laptop from 1998. A cell phone from 5 years ago can't handle a modern operating system, but a 1998 laptop can run Xorg just fine.

The funny thing is the SoC in these smartphones can totally run Linux & Darwin, but the driver support for the peripherals is shovelware. Vendors do the bare minimum to suppprt the hardware, and you get a mess. Its frankly shocking that the Allwinner A10/A20/A64 (which can run Win10!) /H3/H5/H6 has nearly complete mainline kernel support, whereas nearly any of the smartphones made since 2008 can't boot mainline Linux…

Allwinner can't run Win10 (hah, A33 can barely run Android :/ ) and has barely any mainline support on actual physical commercial devices (i.e. tablets, not SBCs)...

Re: Bringing the Android kernel back to the mainline

#109
post #31

Earlier quoted context omitted.

There's a compromise solution to achieve something equivalent. And I say so after having tried many possibilities. Buy a Pixel or any other phone that supports AOSP (Sony does too, with some caveats) and install plain AOSP. It's not perfect as you need a bit of infrastructure to compile it yourself and keep OTA updates. But it's the most practical secure and privacy-respecting option, I think.

The shoddy build quality, plus lack of microSD & heaphone jack means I will never buy a Pixel or other Google branded hardware. My friends seem to get a year or so before the SoC desolders from the motherboard, causing the device to bootloop, or the battery fails, or one of a million other things. Among us, there are a few dozen Pixels that are unusable due to their hardware defects. Meanwhile, both of my old Galaxy…

Same here. Galaxy Note II, still going strong. I bought a new battery for it a year ago, expecting the old one to go out soon, but I still get more than three days battery life from it.

Re: Bringing the Android kernel back to the mainline

#110

Earlier quoted context omitted.

Just the other day I installed the latest lineageos on my original moto G, I think thats from 2013. And it works great. Edit: actually, when I say 'latest' I mean 'latest available for the moto g'. I'm not 100% sure that's the very latest version that exists.

>actually, when I say 'latest' I mean 'latest available for the moto g'. I'm not 100% sure that's the very latest version that exists. It's not. You're stuck with an Android that's 2 versions behind current and are still using the original kernel version that shipped with the device.

I guess that explains why it works so well.
Post reply on HN