W dniu 15.08.2021 o 13:18, Lech Perczak pisze: > W dniu 2021-08-15 o 13:03, open...@aiyionpri.me pisze: >> >> On 8/15/21 11:39 AM, Lech Perczak wrote: >>> [...] >>> I rather meant checking if it is possible to 'saveenv' from within stock >>> U-boot, rebooting and seeing if changes to the environment change stay >>> there. >>> Given, that the typical SPI-NOR sector size on this target is 64k, it's >>> very unlikely that there is writable environment there, as the MAC part >>> doesn't follow its format, and U-boot would need to use 4k page erase >>> for that, >>> as does pepe2k's u-boot_mod, but OpenWrt currently cannot reliably >>> support writing such environment. >> The command "saveenv" is not available in the stock uboot. > So, we've got the answer - the flash layout in device tree is then correct.
Yep, and thanks for chiming in. With that the MAC can be safely extracted by nvmem. Reviewed-by: Tomasz Maciej Nowak <tmn...@gmail.com> Regards -- TMN _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel