find_mtd_part() outputs /dev/mtdblockX, to which fw_setenv cannot write, "/dev/mtd$(find_mtd_index '<vol name>')" could be used instead. The envsize should also be changed to 0x1000 to make the CRC checksum valid and the env block recognized by the uboot-envtools, but the flash sector size remains 0x10000, otherwise the env block will be readable but not writable. The "read-only" mark within device tree is also removed. Signed-off-by: Edward Chow <equu@openmail.cc> Link: https://github.com/openwrt/openwrt/pull/23121 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|---|---|---|
| .. | ||
| base-files | ||
| boot | ||
| devel | ||
| firmware | ||
| kernel | ||
| libs | ||
| network | ||
| system | ||
| utils | ||
| Makefile | ||