From 4df248323c8267bb11c634422b44b0df0185fd94 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 7 Oct 2023 22:41:15 +0100 Subject: [PATCH] use MTD_SPI_NOR_USE_4K_SECTORS only on MIPS --- modules/flashimage.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/flashimage.nix b/modules/flashimage.nix index 2f68e2e..a27d499 100644 --- a/modules/flashimage.nix +++ b/modules/flashimage.nix @@ -38,6 +38,7 @@ in { kernel = { config = { 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 MTD_SPI_NOR_USE_4K_SECTORS = "n"; };