!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
7 Jun 2024
@erahhal:matrix.orgerahhalok16:56:46
@atemu12:matrix.orgatemu12This smells like there should be even more log here16:57:37
@erahhal:matrix.orgerahhalI wonder if it's because it's not pulling down the right kernel branch16:57:40
@erahhal:matrix.orgerahhalWhat I was talking about above. It's currently using main16:57:57
@erahhal:matrix.orgerahhalwhich is not right16:57:59
@atemu12:matrix.orgatemu12The avbtool might be a red herring16:58:01
@atemu12:matrix.orgatemu12This is clearly concerning the kernel build16:58:52
@atemu12:matrix.orgatemu12It's odd because I think it's only triggered from within the AOSP build?16:59:13
@erahhal:matrix.orgerahhalHere's the rest of that last line:16:59:16
@erahhal:matrix.orgerahhal robotnix-lineage_cheetah> avbtool add_hash_footer: error: argument --image: can't open 'out/soong/.intermediates/packages/modules/Virtualization/microdroid/microdroid_kernel_signed/android_arm64_armv8-2a_cortex-a55/4b56b5210baead69529bad02297ac604/microdroid_kernel': [Errno 13] Permission denied: 'out/soong/.intermediates/packages/modules/Virtualization/microdroid/microdroid_kernel_signed/android_arm64_armv8-2a_cortex-a55/4b56b5210baead69529bad02297ac604/microdroid_kernel' 16:59:28
@erahhal:matrix.orgerahhalThe kernel is pulled from AOSP for the pixel 7 pro17:00:02
@erahhal:matrix.orgerahhalIt's just using the wrong branch at the moment17:00:14
@atemu12:matrix.orgatemu12That looks like a different issue17:01:17
@atemu12:matrix.orgatemu12You shouldn't be getting permission denied on the build dir17:01:31
@atemu12:matrix.orgatemu12That smells like an issue we patch around where the build system copies the permissions of the src which in our case is in the nix store17:02:07
@erahhal:matrix.orgerahhalOk, I could have messed up the patches17:02:29
@erahhal:matrix.orgerahhalit's one of the first things I did when I started this. I'll review those17:02:40
@erahhal:matrix.orgerahhalI'll get the right branch of the kernel while I'm at it17:03:03
@atemu12:matrix.orgatemu12It could also simply be that there's now more places you need to patch 17:03:21
@atemu12:matrix.orgatemu12I had to do that for android 13 too17:03:26
@atemu12:matrix.orgatemu12You need to dig into the makefile of that step to figure out what function it uses17:05:46
@atemu12:matrix.orgatemu12Had an idea on that patch just now; we could perhaps try to fool the build system into thinking that the our bind-mounts are rw17:06:34
@atemu12:matrix.orgatemu12Then we wouldn't need to patch it in all the places where it tries to copyu17:06:51
@atemu12:matrix.orgatemu12 * Then we wouldn't need to patch it in all the places where it tries to copy17:06:53
@erahhal:matrix.orgerahhalthat sounds like it would be great if it could be made to work17:07:07
@jaen:matrix.orgjaenKind of out there, but maybe overlayfs could work (though not sure how reliable ZFS' support is)?17:13:09
8 Jun 2024
@atemu12:matrix.orgatemu12 I'm just not sure whether the nix store mounts are actually considered ro which is a necessary condition for overlayfs I think? 08:44:50
@jaen:matrix.orgjaen

The lower filesystem can be any filesystem supported by Linux and does not need to be writable.
Is what kernel docs say, so I guess it doesn't have to be r/o.

13:52:29
@jaen:matrix.orgjaen *

The lower filesystem can be any filesystem supported by Linux and does not need to be writable.

Is what kernel docs say, so I guess it doesn't have to be r/o.

13:52:40
@jaen:matrix.orgjaen *

The lower filesystem can be any filesystem supported by Linux and does not need to be writable.

Is what kernel docs say, so I guess it doesn't have to be r/o.

13:52:43

Show newer messages


Back to Room ListRoom Version: 6