ramips: add support for JCG Q20
[openwrt/staging/dedeckeh.git] / package / boot / uboot-envtools / files / ramips
index a47e2950d3aedf13e410212fa36962ac41167f69..ee2d95115c2de6c16503e90ca1c308d67ab34638 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2011-2012 OpenWrt.org
 #
@@ -44,6 +43,9 @@ ravpower,rp-wd03)
        [ -n "$idx" ] && \
                ubootenv_add_uci_config "/dev/mtd$idx" "0x4000" "0x1000" "0x1000"
        ;;
+jcg,q20)
+       ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
+       ;;
 linksys,ea7300-v1|\
 linksys,ea7300-v2|\
 linksys,ea7500-v2|\
@@ -54,6 +56,11 @@ xiaomi,mi-router-ac2100|\
 xiaomi,redmi-router-ac2100)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
        ;;
+zyxel,nr7101)
+       idx="$(find_mtd_index Config)"
+       [ -n "$idx" ] && \
+               ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x80000"
+       ;;
 esac
 
 config_load ubootenv