!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
18 Aug 2021
@withoutwithin:matrix.orgXe (xe/they)would have to transfer from an esim to a psim though17:56:03
@hmenke:matrix.orghmenke danielrf: We should maybe add to the installation docs that the user has to make sure they're flashing the correct device before running ./flash-all.sh. On the https://matrix.to/#/#grapheneos:grapheneos.org channel I heard that flashing the wrong image can brick the device. 18:30:23
@hmenke:matrix.orghmenke * danielrf: We should maybe add to the installation docs that the user has to make sure they're flashing the correct device before running ./flash-all.sh. On the #grapheneos:grapheneos.org channel I heard that flashing the wrong image can brick the device. 18:30:32
@danielrf:matrix.orgdanielrfRedacted or Malformed Event18:30:39
@danielrf:matrix.orgdanielrf hmenke: Hmm I thought there were checks that prevented that 18:32:31
@danielrf:matrix.orgdanielrf ah, so, for instance, in image-crosshatch-2021.04.22.20.zip that would get fastboot updated, there's an android-info.txt that contains this: 18:33:31
@danielrf:matrix.orgdanielrf
require partition-exists=product
require version-bootloader=b1c1-0.3-7065185
require version-baseband=g845-00166-210105-B-7062333
18:33:38
@danielrf:matrix.orgdanielrf *
require partition-exists=product
require version-bootloader=b1c1-0.3-7065185
require version-baseband=g845-00166-210105-B-7062333
18:34:01
@danielrf:matrix.orgdanielrf *
require board=crosshatch
require partition-exists=product
require version-bootloader=b1c1-0.3-7065185
require version-baseband=g845-00166-210105-B-7062333
18:34:10
@danielrf:matrix.orgdanielrf and it does prevent running fastboot update against a non-crosshatch device 18:34:59
@danielrf:matrix.orgdanielrf but maybe you're right that flash-all.sh which flashes the bootloader and radio as well don't have similar checks 18:35:30
@danielrf:matrix.orgdanielrfProbably still a good idea to add a note anyway18:37:00
@withoutwithin:matrix.orgXe (xe/they)when setting your own custom root of trust, is there a way to get rid of the custom OS warning?18:39:44
@danielrf:matrix.orgdanielrfNope, we can't change that.18:41:31
@danielrf:matrix.orgdanielrfAt least it's a "yellow" warning screen and not a "red" one :) https://source.android.com/security/verifiedboot/boot-flow#communicating-verified-boot-state-to-users18:41:43
@withoutwithin:matrix.orgXe (xe/they)ah, fair18:42:14
@cdesai:matrix.orgcde hmenke: danielrf 1177: Check for product name before flashing factory image | https://review.calyxos.org/c/CalyxOS/device_common/+/1177 18:51:22
@samueldr:matrix.orgsamueldroof, with bootloader flashed to the wrong thing I guess that could brick a device18:58:27
@samueldr:matrix.orgsamueldrthough it's "out of band" that the flashing happens, not through the usual route IIRC for radio18:58:50
@samueldr:matrix.orgsamueldr * though it's "out of band" that the flashing happens, not through the usual route IIRC for bootloader/radio18:58:56
@samueldr:matrix.orgsamueldrso I wonder why it doesn't check for an appropriate one18:59:05
@andreas.schraegle:helsinki-systems.deajs124if it's qualcomm, they normally have their recovery thing where it shows up as a serial device and you can just flash through that18:59:54
@cdesai:matrix.orgcdethere are checks already in some cases preventing wrong bootloader flashing19:05:58
@cdesai:matrix.orgcdebut sometimes it may not work, I don't know when exactly19:06:09
@cdesai:matrix.orgcdeand it's nothing I'd want to find out the hard way :P19:06:17
@cdesai:matrix.orgcdebut I have accidentally had a script flash the wrong bootloader to a device but the device rejected it19:06:30
@cdesai:matrix.orgcdeat the same time, a user tried to flash our sunfish build to their bramble (it was just released, nobody supported it then) and managed to brick19:06:48
@withoutwithin:matrix.orgXe (xe/they)is it a bad idea to distribute a robotnix build across multiple machines?20:45:24
@danielrf:matrix.orgdanielrfMost of the AOSP build takes place in one giant derivation, so there's not a ton of benefit unfortunately. (chromium and kernel builds could take place on another machine, though, and save some time)20:47:29
@danielrf:matrix.orgdanielrfThe other gotcha would be if you're using the Nix sandbox exception to access your signing keys--then you'd have to ensure the final derivations which sign the build take place on a machine with the sandbox exception20:48:40

Show newer messages


Back to Room ListRoom Version: 6