VCh wrote:Hi,
Thanks a lot, aport, for your help, this is probably the solution for my problem.
But I've the following error when writing the file :
root@OpenWrt:/tmp# mtd -r write caldata art
Could not open wtd device : art
Can't open device for writing!
No more success using "unlock art" or mtd4 instead of art
Here are the /proc/mtd list for information :
mtd0: xx "u-boot"
mtd1: xx "u-boot-env"
mtd2: xx "kernel"
mtd3: xx "rootfst"
mtd4: xx "art"
mtd5: xx "firmware"
I read something about building another firmware/kernel with specific option to allow writing... : Impossible due to my Linux level...
Is there no other way to write this damned file ?
Ps.
I've changed the MAC at 120C but, there is another MAC for wireless...
Maybe a third if WAN/LAN are not on the same...
The partition is masked which disables writing.
In trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c:
static struct mtd_partition wndr3700_partitions[] = {
{
.name = "uboot",
.offset = 0,
.size = 0x050000,
.mask_flags = MTD_WRITEABLE,
} , {
.name = "env",
.offset = 0x050000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
} , {
.name = "rootfs",
.offset = 0x070000,
.size = 0x720000,
} , {
.name = "config",
.offset = 0x790000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
} , {
.name = "config_bak",
.offset = 0x7a0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
} , {
.name = "pot",
.offset = 0x7b0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
} , {
.name = "traffic_meter",
.offset = 0x7c0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
} , {
.name = "language",
.offset = 0x7d0000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
} , {
.name = "caldata",
.offset = 0x7f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
}
};
should let you write to the partition.
Odd though, this mapping doesn't match the partitions on my wndr3700... A bit confused by this one.