uboot-envtools: add support for Wallys DR342
[openwrt/staging/wigyori.git] / package / boot / uboot-envtools / files / ar71xx
index 503e593089415df08c01cba60e767aca9e6a60b0..6acfa69693ceab919c748d2cf7ae1cea4eef5b9b 100644 (file)
@@ -7,17 +7,17 @@
 
 touch /etc/config/ubootenv
 
-. /lib/ar71xx.sh
 . /lib/uboot-envtools.sh
 . /lib/functions.sh
 
-board=$(ar71xx_board_name)
+board=$(board_name)
 
 case "$board" in
 a40|\
 a60|\
 alfa-ap120c|\
 all0258n|\
+ap121f|\
 ap90q|\
 arduino-yun|\
 cap324|\
@@ -66,6 +66,7 @@ dap-2695-a1|\
 wzr-hp-ag300h)
        ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
        ;;
+dr342|\
 dr531)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
        ;;
@@ -76,6 +77,9 @@ rambutan)
 qihoo-c301)
        ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
        ;;
+wi2a-ac200i)
+       ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x8000" "0x10000"
+       ;;
 esac
 
 config_load ubootenv