From 6f655c369611848d2a44fc3cc00cb0b380c172b0 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sat, 28 Sep 2024 15:27:25 +0200 Subject: [PATCH] asahi-wifisync: Open MTD device by device name "nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (https://github.com/AsahiLinux/m1n1/pull/399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau --- asahi-wifisync/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asahi-wifisync/src/main.rs b/asahi-wifisync/src/main.rs index 8de9806..ea4aa30 100644 --- a/asahi-wifisync/src/main.rs +++ b/asahi-wifisync/src/main.rs @@ -57,7 +57,7 @@ fn real_main() -> Result<()> { ) .get_matches(); - let default_name = "/dev/mtd0ro".to_owned(); + let default_name = "/dev/mtd/by-name/nvram".to_owned(); let default_config = "/var/lib/iwd".to_owned(); let wlan_var = "preferred-networks";