Skip to content

Commit

Permalink
asahi-nvram: 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 4039bda commit e96f778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asahi-nvram/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn real_main() -> Result<()> {
.arg(clap::Arg::new("variable=value").multiple_values(true)),
)
.get_matches();
let default_name = "/dev/mtd0".to_owned();
let default_name = "/dev/mtd/by-name/nvram".to_owned();
let mut file = OpenOptions::new()
.read(true)
.write(true)
Expand Down

0 comments on commit e96f778

Please sign in to comment.