Skip to content

Commit

Permalink
asahi-btsync: Open MTD device by device name
Browse files Browse the repository at this point in the history
"nvram" will not be the sole MTD device on AsahiLinux devices with
m1n1-1.4.16 (AsahiLinux/m1n1#399) and
CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0".

Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Sep 28, 2024
1 parent 223e523 commit 4039bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asahi-btsync/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 4039bda

Please sign in to comment.