fix(uconsole): disable GPIO 23 service (causes CM5 freeze) + open SSH
GPIO 23 service used gpioset 0 23=1 on BCM2712 chip 0 instead of the RP1 chip (base 512), writing to a critical pin and freezing the system. Commented out until correct chip is confirmed. SSH opened with PasswordAuthentication + PermitRootLogin for first deployment. Lock down after initial boot.
This commit is contained in:
@@ -32,8 +32,9 @@ in
|
|||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
# TODO: lock down after first deployment
|
||||||
settings.PasswordAuthentication = lib.mkForce false;
|
settings.PermitRootLogin = lib.mkForce "yes";
|
||||||
|
settings.PasswordAuthentication = lib.mkForce true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# User
|
# User
|
||||||
@@ -216,20 +217,22 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# Internal USB Hub Enable (GPIO 23)
|
# Internal USB Hub Enable (GPIO 23) — DISABLED
|
||||||
# The Hacker Gadgets AIO V2 board has an internal USB hub for
|
# This service freeze the CM5 because gpioset 0 23=1 writes
|
||||||
# the AC1200 WiFi, SDR, and other peripherals. GPIO 23 must be
|
# to the wrong GPIO chip (BCM2712 native, not RP1).
|
||||||
# HIGH to power the hub. CM5 defaults GPIO 23 to LOW.
|
# Enable manually after boot once the correct chip is confirmed:
|
||||||
|
# gpioset 0 23=1 # on chip 0 (BCM2712, CORE_VOLT or critical)
|
||||||
|
# gpioset 512 23=1 # on chip 512 (RP1, likely correct)
|
||||||
# ============================================================
|
# ============================================================
|
||||||
systemd.services.enable-gpio23-usb-hub = {
|
# systemd.services.enable-gpio23-usb-hub = {
|
||||||
description = "Enable Internal USB Hub (GPIO 23)";
|
# description = "Enable Internal USB Hub (GPIO 23)";
|
||||||
before = [ "network.target" ];
|
# before = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
# wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
# serviceConfig = {
|
||||||
Type = "oneshot";
|
# Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
# RemainAfterExit = true;
|
||||||
ExecStart = "${pkgs.libgpiod}/bin/gpioset 0 23=1";
|
# ExecStart = "${pkgs.libgpiod}/bin/gpioset 0 23=1";
|
||||||
ExecStop = "${pkgs.libgpiod}/bin/gpioset 0 23=0";
|
# ExecStop = "${pkgs.libgpiod}/bin/gpioset 0 23=0";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user