openwrt-pf/target/linux/ath79
Zoltan Szalay 2644302c14
ath79: fix u-boot-env nvmem-layout on enterasys,ws-ap3705i
The u-boot-env0 partition on this board stores a redundant U-Boot
environment (4-byte CRC32 + 1-byte flag + data), with the flag byte
differing between the u-boot-env0/u-boot-env1 copies (0x00 vs 0x01).
The actual environment size used by U-Boot for the CRC calculation is
0x1000 bytes, not the full 0x10000 byte partition.

The DTS declared this as the plain, non-redundant "u-boot,env" layout
with no env-size, so the kernel's u-boot-env nvmem-layout driver
miscomputes the CRC and fails to probe:

  u-boot-env-layout ...nvmem-layout: Invalid calculated CRC32: 0xbc490a68 (expected: 0xfae56b95)
  u-boot-env-layout ...nvmem-layout: probe with driver u-boot-env-layout failed with error -22

Because the probe fails, the macaddr_uboot_ethaddr nvmem cell is never
created, so eth0's nvmem-cells reference never resolves and the
ag71xx-legacy platform device is stuck in "deferred probe pending"
forever - the device boots with no functioning Ethernet interface at
all.

Switch to "u-boot,env-redundant-count" (matching the redundant-env
layout already used on other boards from this vendor lineage, e.g.
qca9557_extreme-networks_ws-ap3805i.dts) and set env-size to the
verified 0x1000, which fixes CRC validation and lets eth0 probe
successfully.

Verified on real hardware: before the fix, eth0 never comes up
(confirmed against the official 25.12.5 release, matching CRC values
exactly); after the fix, eth0 links up normally and dmesg is free of
any CRC/nvmem-layout errors.

Signed-off-by: Zoltan Szalay <dealer@ddsweb.hu>
Signed-off-by: Zoltan Szalay <szazo@halycomp.hu>
Link: https://github.com/openwrt/openwrt/pull/24134
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-07-15 20:13:11 +02:00
..
base-files/etc/hotplug.d/ieee80211
dts ath79: fix u-boot-env nvmem-layout on enterasys,ws-ap3705i 2026-07-15 20:13:11 +02:00
files irq-ath79-intc: move irq_chip to private struct 2026-06-27 12:07:34 +02:00
generic ath79: add support for Ubiquiti NanoStation Loco M (XW v2) 2026-07-01 19:02:40 +02:00
image ath79: add support for Ubiquiti NanoStation Loco M (XW v2) 2026-07-01 19:02:40 +02:00
mikrotik ath79: mikrotik: also compile AG71XX_LEGACY as a module 2026-06-12 10:38:02 +02:00
nand ath79: add Cisco Meraki Z1 2026-05-28 10:38:36 +02:00
patches-6.12 kernel: bump 6.12 to 6.12.94 2026-06-23 09:03:54 +02:00
patches-6.18 ath79: move leds-reset driver to files 2026-06-19 22:30:14 +02:00
tiny ath79: tp-link: tl-wr902ac-v1: move to tiny 2026-05-11 14:46:17 +02:00
config-6.12 ath79: restore kernel 6.12 config files and patches 2026-04-11 21:11:06 +02:00
config-6.18 ath79: refresh 6.18 kernel config files 2026-04-11 21:11:06 +02:00
Makefile ath79: enable 6.18 testing kernel 2026-04-11 21:11:07 +02:00
modules.mk