2 # Copyright (C) 2011-2014 OpenWrt.org
5 [ -e /etc/config/ubootenv ] && exit 0
7 touch /etc/config/ubootenv
9 . /lib/uboot-envtools.sh
17 alfa-network,ap121fe|\
20 alfa-network,pi-wifi4|\
22 alfa-network,tube-2hq|\
23 allnet,all-wap02860ac|\
24 araknis,an-300-ap-i-n|\
25 araknis,an-500-ap-i-ac|\
26 araknis,an-700-ap-i-ac|\
43 engenius,ens202ext-v1|\
44 engenius,enstationac-v1|\
47 glinet,gl-ar750s-nor|\
48 glinet,gl-ar750s-nor-nand|\
49 librerouter,librerouter-v1|\
75 ubnt,bullet-m-ar7240|\
76 ubnt,bullet-m-ar7241|\
78 ubnt,nanostation-loco-m|\
93 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
97 dongwon,dw02-412h-64m|\
98 dongwon,dw02-412h-128m|\
99 glinet,gl-ar300m-lite|\
100 glinet,gl-ar300m-nand|\
101 glinet,gl-ar300m-nor|\
103 idx="$(find_mtd_index u-boot-env)"
105 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
107 buffalo,wzr-hp-ag300h)
108 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
110 buffalo,wzr-hp-g300nh-rb|\
111 buffalo,wzr-hp-g300nh-s|\
113 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
116 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
119 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
122 netgear,wndr3700-v2|\
124 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
127 netgear,wndr3700-v4|\
131 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
136 openmesh,om2p-hs-v1|\
137 openmesh,om2p-hs-v2|\
138 openmesh,om2p-hs-v3|\
139 openmesh,om2p-hs-v4|\
143 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
146 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
152 ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x40000" "0x40000"
156 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
163 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
166 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
171 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
176 config_foreach ubootenv_add_app_config ubootenv