!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
7 Jun 2024
@atemu12:matrix.orgAtemuThis 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.orgAtemuThe avbtool might be a red herring16:58:01
@atemu12:matrix.orgAtemuThis is clearly concerning the kernel build16:58:52
@atemu12:matrix.orgAtemuIt'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.orgAtemuThat looks like a different issue17:01:17
@atemu12:matrix.orgAtemuYou shouldn't be getting permission denied on the build dir17:01:31
@atemu12:matrix.orgAtemuThat 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.orgAtemuIt could also simply be that there's now more places you need to patch 17:03:21
@atemu12:matrix.orgAtemuI had to do that for android 13 too17:03:26
@atemu12:matrix.orgAtemuYou need to dig into the makefile of that step to figure out what function it uses17:05:46
@atemu12:matrix.orgAtemuHad 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.orgAtemuThen we wouldn't need to patch it in all the places where it tries to copyu17:06:51
@atemu12:matrix.orgAtemu * 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.orgAtemu 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
@jaen:matrix.orgjaen But either way it doesn't seem to help, when I modify the unpack script to use overlayfs, the files remain unwritable. I even tried to use something called bindfs (apparently it's a FUSE bind mount) to map user/permission before mounting so the file permissions "look" like they are writable hoping that would be enough (since writes will go to the upper layer anyway), but that didn't seem to help. I didn't use overlayfs much previously (so I might be doing something wrong), but at least the obvious things don't seem to work, so maybe it was a bad idea after all. 13:52:45

Show newer messages


Back to Room ListRoom Version: 6