From baf3cf741301e696a5f614f8fb98d182a0ab0f1d Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 19 Feb 2024 03:13:35 +0100 Subject: [PATCH] devices/zyxel-nwa50ax: fix dual image mgmt after DTB expansion Signed-off-by: Raito Bezarius --- devices/zyxel-nwa50ax/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/devices/zyxel-nwa50ax/default.nix b/devices/zyxel-nwa50ax/default.nix index e991a9d..23a394a 100644 --- a/devices/zyxel-nwa50ax/default.nix +++ b/devices/zyxel-nwa50ax/default.nix @@ -235,9 +235,12 @@ services.zyxel-dual-image = config.boot.zyxel-dual-image.build { ensureActiveImage = "primary"; # TODO: use mtd names rather… + # primary and secondary are always /dev/mtd3 by virtue of the + # dtb being not too wrong… + # TODO: remove this hack. primaryMtdPartition = "/dev/mtd3"; - secondaryMtdPartition = "/dev/mtd6"; - bootConfigurationMtdPartition = "/dev/mtd10"; + secondaryMtdPartition = "/dev/mtd3"; + bootConfigurationMtdPartition = "/dev/mtd12"; }; # DEVICE_VENDOR := ZyXEL