!UUYziobKGGxpovWyAN:nixos.org

Robotnix

264 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix84 Servers

Load older messages


SenderMessageTime
9 Aug 2023
@atemu12:matrix.orgatemu12That's just porting Android to a device10:54:49
@atemu12:matrix.orgatemu12Robotnix merely facilitates the build of the finished port10:55:04
@angryant:envs.net@angryant:envs.net
In reply to @atemu12:matrix.org
That's just porting Android to a device
Not following. The linked source is of an android kernel + device tree.
10:56:01
@atemu12:matrix.orgatemu12That's just the kernel10:56:32
@atemu12:matrix.orgatemu12You can (probably) build a binary out of that source and have it boot10:56:52
@atemu12:matrix.orgatemu12You'd then have, well, Nothing on top of Nothing ;)10:57:08
@atemu12:matrix.orgatemu12For a functional phone, you need an Android system running atop the kernel10:57:30
@angryant:envs.net@angryant:envs.netSo the robotnix feature list item "Custom built kernels" relates to something else?10:57:31
@atemu12:matrix.orgatemu12Those are for Pixel phones which are built with pre-built kernels by default upstream AFAIK10:58:27
@atemu12:matrix.orgatemu12What Robotnix does here is build the kernel itself and inject that binary instead10:58:50
@atemu12:matrix.orgatemu12Again, that's just the kernel10:58:59
@atemu12:matrix.orgatemu12You still need the rest of Android to have been ported10:59:21
@angryant:envs.net@angryant:envs.netSubstituting the linked kernel in that process would not produce something usable?10:59:30
@atemu12:matrix.orgatemu12Sorry, could you clarify that question?10:59:51
@atemu12:matrix.orgatemu12Ah, you meant the Nothing kernel11:00:04
@angryant:envs.net@angryant:envs.netYes11:00:10
@atemu12:matrix.orgatemu12You'd get a build with a kernel that can (probably?) boot on a Nothing phone but with an Android system that can't properly use your hardware11:00:48
@atemu12:matrix.orgatemu12Android is not as "clean" as desktop Linux when it comes to drivers11:01:18
@angryant:envs.net@angryant:envs.netUgh11:01:26
@atemu12:matrix.orgatemu12They're not all contained in the kernel11:01:26
@atemu12:matrix.orgatemu12 It's like the Nvidia driver but for everything 11:01:37
@angryant:envs.net@angryant:envs.netThis is where the device tree in that repo comes in?11:01:55
@atemu12:matrix.orgatemu12Device Tree is part of the kernel11:02:20
@angryant:envs.net@angryant:envs.netAh. It was just weirdly called out separately in the repo description.11:02:42
@atemu12:matrix.orgatemu12I'm not too knowledgable about that but AFAIK ARM devices don't have standardised device discovery via PCIe and the like, so you need to declare where which device is upfront11:02:52
@atemu12:matrix.orgatemu12This bus is where x is, this memory range is mapped to device y and so on11:03:26
@atemu12:matrix.orgatemu12If someone has ported Android to your device (and open sourced that), you could build that using Robotnix11:04:11
@atemu12:matrix.orgatemu12Again, Robotnix "just" runs the AOSP build inside a Nix sandbox; the AOSP build still needs to work in general11:05:29
@atemu12:matrix.orgatemu12We can then inject custom kernels, µG, F-droid or custom webviews into that build process in a somewhat generic way11:06:07
@angryant:envs.net@angryant:envs.netCool. Thanks for the overview :) My knowledge of android is quite limited and I clearly made some Linux assumptions about it. Looks like there's some unofficial progress on Lineage on the Nothing phone, so it seems promising that eventually a robotnix path will be available :)11:10:43

Show newer messages


Back to Room ListRoom Version: 6