Is the command changed lately? I can't do it:
root@OpenWrt:/tmp# mtd write /tmp/factory.bin factory
Could not open mtd device: factory
Can't open device for writing!
Is the command changed lately? I can't do it:
root@OpenWrt:/tmp# mtd write /tmp/factory.bin factory
Could not open mtd device: factory
Can't open device for writing!
What device? ubus call system board
kmod-mtd-rw ?
Snapshots doesn't have that afaik. I am doing some experiments.
Why wouldn't it ?
I checked on the make menuconfig, there is no such thing as kmod-mtd-rw?
There is in reality - (just a random example) https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/kmods/6.12.48-1-457143262baaa3b3c3261909ce3dcb61/.
Yeah but doesn't exist on my own compiled image, that's what I needed. I am doing experiments as I said.
The partition naming and access style varies a lot device. Are you talking about RT-AX59U (that is in your profile)?
According to OpenWrt wiki it does not have a 'factory' mtd partition. Instead most of stuff is inside a single ubi area, which is likely divided to several volumes (that you manipulate with ubi tools).
(That direct mtd write is mostly related to old simple nor flash devices.)