summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBurak Aydos2026-01-29 19:25:04 +0000
committerHauke Mehrtens2026-02-01 19:41:52 +0000
commitba7cb3771b9a77f5dea8657e25345b40787a7b8c (patch)
treec6711062048ea149e9236e75c802f532204532db
parentcca2f560231186b2b0357f51420f7490c1fc278b (diff)
downloadopenwrt-ba7cb3771b9a77f5dea8657e25345b40787a7b8c.tar.gz
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> (cherry picked from commit 695284443668020ee161cb06836781a725d3dde5) Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f1.dts1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f1.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f1.dts
index 74858ec118..8657e8b81d 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f1.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f1.dts
@@ -47,6 +47,7 @@
nvmem-layout {
compatible = "u-boot,env";
+ env-size = <0x2000>;
macaddr_uboot_ethaddr: ethaddr {
#nvmem-cell-cells = <1>;