!UUYziobKGGxpovWyAN:nixos.org

Robotnix

225 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix68 Servers

Load older messages


SenderMessageTime
27 Jan 2025
@atemu12:matrix.orgAtemuYup09:33:11
@autra:trancart.euautraThe rest of the tree is somewhere else? In cachix?09:33:35
@atemu12:matrix.orgAtemuThe rest of what tree?09:33:52
@atemu12:matrix.orgAtemuThe cachix contains nothing of interest FWIW09:36:44
@autra:trancart.euautraok I'm just suprised by what you said (new devices only need the device dir update), because my experience with android build is that you need the whole lineage os tree to build, but I guess I'll see all these downloads later ;-)09:53:01
@atemu12:matrix.orgAtemuThe updater really is just thatz an updater09:53:53
@atemu12:matrix.orgAtemu * 09:54:00
@atemu12:matrix.orgAtemuThe sources for the build are fetched via nix09:54:18
@atemu12:matrix.orgAtemuThe updaters just generate lockfiles09:54:34
@autra:trancart.euautra ok thanks! So I've launched the nix-build comamnd and my config evaluates correctly now, and indeed, it seems that I'm now downloading the entire internet ;-) 10:06:24
@atemu12:matrix.orgAtemuYeah it's a ~70GiB download10:34:07
@atemu12:matrix.orgAtemuThat's much preferable to the couple hundred gigs you'd normally have to download though10:34:48
@atemu12:matrix.orgAtemuMake sure you've set the correct androidVersion10:34:58
@autra:trancart.euautrayep, currently on 14 just to check if everything is ok, then I'll switch to 1510:38:48
@autra:trancart.euautraouch I thought that with 32Gb of ram, it'll be enough to build, but no :-(11:11:00
@atemu12:matrix.orgAtemuYou need 3-4GiB per thread15:45:01
@atemu12:matrix.orgAtemuAnd your tmpdir must be on large enough persistent storage15:45:30
@atemu12:matrix.orgAtemuI don't know the exact size off the top of my head for new versions of AOSP but it should be around 30-50GiB15:46:29
@atemu12:matrix.orgAtemu * 15:47:01
@autra:trancart.euautraIt peaked around 25-30, but I solved it by adding a temporary swap file ;-) It was enough to avoid the oom killer20:43:26
@autra:trancart.euautrathe build worked like a charm :-)20:43:40
@atemu12:matrix.orgAtemuNeat :)20:43:49
@autra:trancart.euautraon "https://docs.robotnix.org/installation.html", step 5, it mentions a ./flash-all.sh, but I don't have this file. A sideload is ok right?20:44:25
@atemu12:matrix.orgAtemuI usually just flash ota20:44:52
@autra:trancart.euautraota works whichever os I was on, provided it's the same major version?20:45:34
@atemu12:matrix.orgAtemuYour SPL needs to be the same or higher20:47:08
@atemu12:matrix.orgAtemuBut if you're not wiping data, you need to run a migration script20:47:21
@atemu12:matrix.orgAtemuAnd it needs to have been LOS before I think20:47:37
@atemu12:matrix.orgAtemu cyclopentane ⭔: figured out that you can relatively easily skip SPL checks by modifying the OTA zip's META-INF/android/something/metadata* files 20:48:26
@atemu12:matrix.orgAtemuAnd changing the SPL level20:48:34

Show newer messages


Back to Room ListRoom Version: 6