2 # Copyright (C) 2011-2014 OpenWrt.org
5 [ -e /etc/config/ubootenv ] && exit 0
7 touch /etc/config/ubootenv
9 . /lib/uboot-envtools.sh
16 alfa-network,ap121fe|\
19 alfa-network,pi-wifi4|\
21 alfa-network,tube-2hq|\
22 allnet,all-wap02860ac|\
23 araknis,an-300-ap-i-n|\
24 araknis,an-500-ap-i-ac|\
25 araknis,an-700-ap-i-ac|\
38 engenius,ens202ext-v1|\
39 engenius,enstationac-v1|\
41 glinet,gl-ar750s-nor|\
42 glinet,gl-ar750s-nor-nand|\
43 librerouter,librerouter-v1|\
78 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
80 buffalo,wzr-hp-ag300h)
81 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
83 buffalo,wzr-hp-g300nh-rb|\
84 buffalo,wzr-hp-g300nh-s)
85 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
88 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
90 dongwon,dw02-412h-64m|\
91 dongwon,dw02-412h-128m|\
92 glinet,gl-ar300m-lite|\
93 glinet,gl-ar300m-nand|\
94 glinet,gl-ar300m-nor|\
96 idx="$(find_mtd_index u-boot-env)"
98 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
101 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
104 netgear,wndr3700-v2|\
106 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
109 netgear,wndr3700-v4|\
113 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
118 openmesh,om2p-hs-v1|\
119 openmesh,om2p-hs-v2|\
120 openmesh,om2p-hs-v3|\
121 openmesh,om2p-hs-v4|\
125 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
128 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
132 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
139 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
142 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
147 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
152 config_foreach ubootenv_add_app_config ubootenv