!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
26 Nov 2024
@jack:unredacted.org@jack:unredacted.org
In reply to @jack:unredacted.org

Aside from this, I've also used unpack_bootimg.py to unpack the boot.img. That one has a perfectly normal ARM64 kernel image, but diffoscope still shows a large diff when comparing two builds of the same boot.img.unpacked/kernel. Do I need to preprocess this kernel image somehow before comparing? Not sure if I need to strip signatures from the image or how to do this, by the way.

Any idea on this one?
21:16:48
@samueldr:matrix.orgsamueldr https://github.com/GrapheneOS/platform_packages_modules_Virtualization/tree/9ec1c44084125875aa9619635e4e6fdf3172b57c/pvmfw#integration 21:17:07
@samueldr:matrix.orgsamueldr
In reply to @jack:unredacted.org
Any idea on this one?
nope
21:17:27
@jack:unredacted.org@jack:unredacted.org
In reply to @jack:unredacted.org

Aside from this, I've also used unpack_bootimg.py to unpack the boot.img. That one has a perfectly normal ARM64 kernel image, but diffoscope still shows a large diff when comparing two builds of the same boot.img.unpacked/kernel. Do I need to preprocess this kernel image somehow before comparing? Not sure if I need to strip signatures from the image or how to do this, by the way.

boot.img unpacked perfectly and has a perfect ARM64 kernel image, but I personally don't know how to compare different kernel images, maybe I have to strip signatures like I successfully did with the kernel modules before.
21:18:06
@jack:unredacted.org@jack:unredacted.org
In reply to @jack:unredacted.org

Aside from this, I've also used unpack_bootimg.pyto unpack the boot.img. That one has a perfectly normal ARM64 kernel image, but diffoscope still shows a large diff when comparing two builds of the same boot.img.unpacked/kernel. Do I need to preprocess this kernel image somehow before comparing? Not sure if I need to strip signatures from the image or how to do this, by the way.

*
21:18:20
@samueldr:matrix.orgsamueldr 21:18:41
@samueldr:matrix.orgsamueldr

The pVM firmware (pvmfw) is the first code executed by a pVM, similar to the boot ROM of a physical device.

21:18:52
@samueldr:matrix.orgsamueldrso it's definitely not a linux kernel21:19:09
@jack:unredacted.org@jack:unredacted.org

Yes, maybe unpack_bootimg.py isn't prepared to handle it, so it just considers whatever is in the supposed kernel position on the file.

21:20:19
27 Nov 2024
@oak:universumi.fioakI got a little forward by creating the FHS env, but I still can't completely run the mk-vendor-file.py for new Chromium version, now I get same errors I think it tries to pull some Google internal stuff they use for building ChromeOS and Chrome20:40:12
26 Nov 2024
@jack:unredacted.org@jack:unredacted.org

Apparently there is some tools I can build to handle pvmfw stuff: m pvmfw-tool pvmfw_bin

21:23:26
27 Nov 2024
@oak:universumi.fioak * I got a little forward by creating the FHS env, but I still can't completely run the mk-vendor-file.py for new Chromium version, now I get some errors I think it tries to pull some Google internal stuff they use for building ChromeOS and Chrome20:40:18
26 Nov 2024
@jack:unredacted.org@jack:unredacted.org *

Apparently there are some tools I can build to handle pvmfw stuff: m pvmfw-tool pvmfw_bin

21:23:37
28 Nov 2024
@oak:universumi.fioakActually it looks like there could be some useful stuff in how nixpkgs packages chromium03:04:42
27 Nov 2024
@jack:unredacted.org@jack:unredacted.org removed their profile picture.16:57:53
@jack:unredacted.org@jack:unredacted.org removed their display name jack.16:57:54
@jack:unredacted.org@jack:unredacted.org left the room.16:57:55
28 Nov 2024
@atemu12:matrix.orgatemu12 Ideally we'd have a little pkgs.chromium.override { withAndroid = true; withWebview = true; } and it'd spit out an APK 11:23:36
@atemu12:matrix.orgatemu12You could ask the upstream maintainers whether they'd accept you building in support for that11:24:05
@atemu12:matrix.orgatemu12(Upstream as in Nixpkgs upstream.)11:24:16
1 Dec 2024
@mighty-heron:digitalprivacy.diymighty-heron joined the room.12:38:10
@statecode47:unredacted.org@statecode47:unredacted.org joined the room.18:13:56
@statecode47:unredacted.org@statecode47:unredacted.orgRedacted or Malformed Event18:16:19
@statecode47:unredacted.org@statecode47:unredacted.org *

Does anyone here know how to remove the signature from an ARM64 Linux kernel images so that two images can be compared by diffoscope without the signatures differing?

$ file payload.bin.unpack/boot.img.unpacked/kernel
payload.bin.unpack/boot.img.unpacked/kernel: Linux kernel ARM64 boot executable Image, little-endian, 4K pages
18:16:43
5 Dec 2024
@statecode47:unredacted.org@statecode47:unredacted.org removed their profile picture.19:06:40
@statecode47:unredacted.org@statecode47:unredacted.org removed their display name statecode47.19:06:41
@statecode47:unredacted.org@statecode47:unredacted.org left the room.19:06:42
11 Dec 2024
@samueldr:matrix.orgsamueldr changed their profile picture.02:09:57
@samueldr:matrix.orgsamueldr changed their profile picture.02:11:19
@dguibert:beeper.comdguibert joined the room.12:13:51

Show newer messages


Back to Room ListRoom Version: 6