uboot-envtools: add support for APRESIA ApresiaLightGS120GT-SS
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 9 Oct 2022 08:43:13 +0000 (17:43 +0900)
committerSander Vanheule <sander@svanheule.net>
Mon, 13 Feb 2023 11:22:17 +0000 (12:22 +0100)
This patch adds support for APRESIA ApresiaLightGS120GT-SS to
uboot-envtools.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
package/boot/uboot-envtools/files/realtek

index f191503876822b42d960f2e7ea8d2610009ae5e8..cd2446432d7dac968a8a2d006d128b40ab336ace 100644 (file)
@@ -8,6 +8,14 @@ touch /etc/config/ubootenv
 board=$(board_name)
 
 case "$board" in
+apresia,aplgs120gtss)
+       idx="$(find_mtd_index u-boot-env)"
+       [ -n "$idx" ] && \
+               ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x10000"
+       idx2="$(find_mtd_index u-boot-env2)"
+       [ -n "$idx2" ] && \
+               ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x40000" "0x10000"
+       ;;
 d-link,dgs-1210-10mp|\
 d-link,dgs-1210-10p|\
 d-link,dgs-1210-16|\