mat
5
So after compiling with kmod-mtd-rw I insert the module with insmod mtd-rw i-want-a-brick=1 and can then run fw_setenv bootcount 0
But it seems to me not the best solution, as every mtd device is now RW.
I would appreciate some tips how to make only mtd1 RW after boot. Thanks
Edit: So after grepping through the repo with the kernel parameter I found some differences between the old repo (domino-team) and the new repo (gl-inet).
domino-team: target/linux/ar71xx/image/legacy.mk
gl-ar300md_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(reserved),64k(art);spi0.1:2048k(kernel),-(ubi)
gl-inet: target/linux/ar71xx/image/legacy.mk
gl-ar300md_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(reserved),64k(art)ro;spi0.1:2048k(kernel),-(ubi)
So removing the read only parameter from u-boot-env will probably solve the issues.