From 92284fa9ba12a9aba9180d4b55a55aae12684e1f Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 3 Jan 2025 00:19:17 +0000 Subject: [PATCH] mtdimage can't be a default import it adds kernel config that depend on openwrt patches, which aren't used/needed on all devices --- modules/outputs.nix | 2 +- modules/outputs/mtdimage.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/outputs.nix b/modules/outputs.nix index 85e66d5d..6bd8e650 100644 --- a/modules/outputs.nix +++ b/modules/outputs.nix @@ -19,7 +19,7 @@ in ./outputs/uimage.nix ./outputs/updater ./outputs/ubimage.nix - ./outputs/mtdimage.nix +# ./outputs/mtdimage.nix ]; options = { system.outputs = { diff --git a/modules/outputs/mtdimage.nix b/modules/outputs/mtdimage.nix index d817679d..99a09eaf 100644 --- a/modules/outputs/mtdimage.nix +++ b/modules/outputs/mtdimage.nix @@ -60,6 +60,7 @@ in { config = { kernel = { config = { + # this needs to be conditional on "not qemu" MTD_SPLIT_UIMAGE_FW = "y"; } // lib.optionalAttrs (pkgs.stdenv.isMips) { # https://stackoverflow.com/questions/26466470/can-the-logical-erase-block-size-of-an-mtd-device-be-increased