01-28-2020, 04:12 PM
(01-28-2020, 03:51 AM)as400 Wrote: Very useful info
Can you paste output of below command ?
Code:cat /proc/mtd0
On Manjaro
Code:
[tux@pinebook ~]$ cat /proc/mtd
dev: size erasesize name
mtd0: 01000000 00001000 "spi0.0"
[tux@pinebook ~]$ mtdinfo
Count of MTD devices: 1
Present MTD devices: mtd0
Sysfs interface supported: yes
[tux@pinebook ~]$ sudo flash_unlock -i /dev/mtd0
[sudo] password for tux:
Device: /dev/mtd0
Start: 0
Len: 0x1000000
Lock status: locked
Return code: 1
On Armbian
Code:
tux@pinebook:~$ cat /proc/mtd
dev: size erasesize name
mtd0: 003f8000 00001000 "loader"
mtd1: 00008000 00001000 "env"
mtd2: 00040000 00001000 "vendor"
tux@pinebook:~$ mtdinfo
Count of MTD devices: 3
Present MTD devices: mtd0, mtd1, mtd2
Sysfs interface supported: yes
tux@pinebook:~$ sudo flash_unlock -i /dev/mtd0
[sudo] password for tux:
flash_unlock: error!: could not check lock status device: /dev/mtd0
error 95 (Operation not supported)
tux@pinebook:~$ sudo flash_unlock -i /dev/mtd1
flash_unlock: error!: could not check lock status device: /dev/mtd1
error 95 (Operation not supported)
tux@pinebook:~$ sudo flash_unlock -i /dev/mtd2
flash_unlock: error!: could not check lock status device: /dev/mtd2
error 95 (Operation not supported)