[PATCH v2 1/3] uboot-envtools: add support for GS108T v3 & GS110TPP v1

Stijn Segers foss at volatilesystems.org
Thu Apr 8 11:33:46 BST 2021


The Netgear GS108T v3 and its GS110TPP v1 sibling apparently label their
u-boot environment parition 'bdinfo' instead of 'u-boot-env'.

Signed-off-by: Stijn Segers <foss at volatilesystems.org>
---
 package/boot/uboot-envtools/files/realtek | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/boot/uboot-envtools/files/realtek b/package/boot/uboot-envtools/files/realtek
index 75a399208e..0ee81fe791 100644
--- a/package/boot/uboot-envtools/files/realtek
+++ b/package/boot/uboot-envtools/files/realtek
@@ -22,6 +22,12 @@ zyxel,gs1900-10hp)
 	[ -n "$idx2" ] && \
 		ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
 	;;
+netgear,gs108t-v3|\
+netgear,gs110tpp-v1)
+	idx="$(find_mtd_index u-boot-env)"
+	[ -n "$idx" ] && \
+		ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
+	;;
 *)
 	idx="$(find_mtd_index u-boot-env)"
 	[ -n "$idx" ] && \
-- 
2.30.2




More information about the openwrt-devel mailing list