]> git.ipfire.org Git - thirdparty/openwrt.git/commit
lantiq: xrx200: add env-size for P-2812HNU-F1 u-boot-env 21780/head
authorBurak Aydos <byhexadecimal@gmail.com>
Thu, 29 Jan 2026 19:25:04 +0000 (22:25 +0300)
committerRobert Marko <robimarko@gmail.com>
Sat, 31 Jan 2026 10:20:23 +0000 (11:20 +0100)
commit695284443668020ee161cb06836781a725d3dde5
tree2037c34996ded21492aa0fb3dddc381a7be718c3
parentb59a4c97c93deaf32b1b7e5a1e3666b92bbe03fb
lantiq: xrx200: add env-size for P-2812HNU-F1 u-boot-env

The u-boot-env partition on the Zyxel P-2812HNU-F1 is 128 KiB but
the actual environment data is only 8 KiB (0x2000 bytes). Without
the env-size property, the u-boot,env nvmem layout driver assumes
env-size equals the full partition size and computes an incorrect
CRC32 over the entire 128 KiB, causing all nvmem cell reads to fail
silently.

Add env-size = <0x2000> so the CRC32 is computed over the correct
8 KiB region, allowing nvmem-cells (such as ethaddr) to be read
properly by the kernel.

Signed-off-by: Burak Aydos <byhexadecimal@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21780
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f1.dts