[PATCH] uboot-envtools: add support for GS108T v3 & GS110TPP v1

Stijn Segers foss at volatilesystems.org
Sat Feb 27 17:05:14 EST 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 9573e8944f..966c8509c8 100644
--- a/package/boot/uboot-envtools/files/realtek
+++ b/package/boot/uboot-envtools/files/realtek
@@ -18,6 +18,12 @@ zyxel,gs1900-10hp)
 	[ -n "$idx" ] && \
 		ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
 	;;
+netgear,gs108t-v3|\
+netgear,gs110tpp-v1)
+	idx="$(find_mtd_index bdinfo)"
+	[ -n "$idx" ] && \
+		ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
+	;;
 *)
 	idx="$(find_mtd_index u-boot-env)"
 	[ -n "$idx" ] && \
-- 
2.30.1




More information about the openwrt-devel mailing list