From 4039bda21936b5bcfb1eeb13d60f9e46dc8ae4fc Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sat, 28 Sep 2024 15:27:25 +0200 Subject: [PATCH] asahi-btsync: 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-btsync/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asahi-btsync/src/main.rs b/asahi-btsync/src/main.rs index 71a4b24..de79826 100644 --- a/asahi-btsync/src/main.rs +++ b/asahi-btsync/src/main.rs @@ -68,7 +68,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/bluetooth".to_owned(); let bt_var = "BluetoothUHEDevices";