[openwrt/openwrt] ipq40xx: fix sysupgrade image for Netgear LBR20
LEDE Commits
lede-commits at lists.infradead.org
Mon Oct 27 04:42:07 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/89f3c51e88bf50dc67ab296042cae7cb5f5831f4
commit 89f3c51e88bf50dc67ab296042cae7cb5f5831f4
Author: Christoph Krapp <achterin at gmail.com>
AuthorDate: Sun Oct 26 21:41:39 2025 +0100
ipq40xx: fix sysupgrade image for Netgear LBR20
This fixes the sysupgrade image generation for the LBR20 as before
updating resulted in a brick which needed to be recovered using
nmrpflash.
UART log of a bricked unit:
Loading DNI firmware for checking...
Loading firmware 1 ...
NAND read: device 0 offset 0xa600000, size 0x20000
131072 bytes read: OK
NAND read: device 0 offset 0xa600000, size 0x380000
3670016 bytes read: OK
rootfs imge header corrupted !
Loading firmware 2 ...
NAND read: device 0 offset 0xa600000, size 0x20000
131072 bytes read: OK
NAND read: device 0 offset 0xa600000, size 0x380000
3670016 bytes read: OK
rootfs imge header corrupted !
Comparing the partition contents of a bricked and a working unit showed
that on the bricked one the fake uImage header was missing. The UBI
partition also showed significant changes. Both are fixed when the
base DniImage receipt is used.
Signed-off-by: Christoph Krapp <achterin at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20558
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/ipq40xx/image/generic.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk
index eeab128008..ca4107127f 100644
--- a/target/linux/ipq40xx/image/generic.mk
+++ b/target/linux/ipq40xx/image/generic.mk
@@ -882,7 +882,9 @@ define Device/netgear_orbi
endef
define Device/netgear_lbr20
- $(call Device/netgear_orbi)
+ $(call Device/DniImage)
+ SOC := qcom-ipq4019
+ DEVICE_VENDOR := NETGEAR
DEVICE_MODEL := LBR20
NETGEAR_BOARD_ID := LBR20
NETGEAR_HW_ID := 29766182+0+256+512+2x2+2x2+2x2+1
More information about the lede-commits
mailing list