From 1649e9e22f9e94dc864b2a996bc2f6ffd7c3b65f Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 31 Aug 2024 21:08:08 +0000 Subject: [PATCH] moby: remove outdated documentation --- hosts/modules/hal/pine64.nix | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/hosts/modules/hal/pine64.nix b/hosts/modules/hal/pine64.nix index 5c5fbf720..a077ca822 100644 --- a/hosts/modules/hal/pine64.nix +++ b/hosts/modules/hal/pine64.nix @@ -615,7 +615,6 @@ in # without this some GUI apps fail: `DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory` # this is because they can't allocate enough video ram. # see related nixpkgs issue: - # TODO(2023/12/03): remove once mesa 23.3.1 lands: # # the default CMA seems to be 32M. # i was running fine with 256MB from 2022/07-ish through 2022/12-ish, but then the phone quit reliably coming back from sleep (phosh): maybe a memory leak? @@ -631,7 +630,7 @@ in ]; # defined: https://www.freedesktop.org/software/systemd/man/machine-info.html - # XXX colin: diabled until/unless it's actually needed. + # XXX colin: disabled until/unless it's actually needed. # environment.etc."machine-info".text = '' # CHASSIS="handset" # ''; @@ -653,28 +652,14 @@ in }) ]; - ## TOW-BOOT: - # docs (pinephone specific): - # LED and button behavior is defined here: - # - hold VOLDOWN: enter recovery mode - # - LED will turn aqua instead of yellow - # - recovery mode would ordinarily allow a selection of entries, but for pinephone i guess it doesn't do anything? - # - hold VOLUP: force it to load the OS from eMMC? - # - LED will turn blue instead of yellow - # boot LEDs: - # - yellow = entered tow-boot - # - 10 red flashes => poweroff means tow-boot couldn't boot into the next stage (i.e. distroboot) - # - distroboot: ) - # we need space in the GPT header to place tow-boot. + # docs (pinephone specific; tow-boot instead of u-boot but close enough): + # we need space in the GPT header to place u-boot. # only actually need 1 MB, but better to over-allocate than under-allocate sane.image.extraGPTPadding = 16 * 1024 * 1024; sane.image.firstPartGap = 0; sane.image.installBootloader = '' dd if=${pkgs.u-boot-pinephone}/u-boot-sunxi-with-spl.bin of=$out bs=1024 seek=8 conv=notrunc ''; - # sane.image.installBootloader = '' - # dd if=${pkgs.tow-boot-pinephone}/Tow-Boot.noenv.bin of=$out bs=1024 seek=8 conv=notrunc - # ''; sane.programs.geoclue2.suggestedPrograms = [ "gps-share"