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|\
42 engenius,ens202ext-v1|\
43 engenius,enstationac-v1|\
46 glinet,gl-ar750s-nor|\
47 glinet,gl-ar750s-nor-nand|\
48 librerouter,librerouter-v1|\
74 ubnt,bullet-m-ar7240|\
75 ubnt,bullet-m-ar7241|\
77 ubnt,nanostation-loco-m|\
92 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
96 dongwon,dw02-412h-64m|\
97 dongwon,dw02-412h-128m|\
98 glinet,gl-ar300m-lite|\
99 glinet,gl-ar300m-nand|\
100 glinet,gl-ar300m-nor|\
102 idx="$(find_mtd_index u-boot-env)"
104 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
106 buffalo,wzr-hp-ag300h)
107 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
109 buffalo,wzr-hp-g300nh-rb|\
110 buffalo,wzr-hp-g300nh-s|\
112 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
115 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
118 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
121 netgear,wndr3700-v2|\
123 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
126 netgear,wndr3700-v4|\
130 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
135 openmesh,om2p-hs-v1|\
136 openmesh,om2p-hs-v2|\
137 openmesh,om2p-hs-v3|\
138 openmesh,om2p-hs-v4|\
142 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
145 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
151 ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x40000" "0x40000"
155 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
162 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
165 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
170 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
175 config_foreach ubootenv_add_app_config ubootenv