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|\
45 engenius,ens202ext-v1|\
46 engenius,enstationac-v1|\
49 glinet,gl-ar750s-nor|\
50 glinet,gl-ar750s-nor-nand|\
51 librerouter,librerouter-v1|\
78 ubnt,bullet-m-ar7240|\
79 ubnt,bullet-m-ar7241|\
81 ubnt,nanostation-loco-m|\
96 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
101 dongwon,dw02-412h-64m|\
102 dongwon,dw02-412h-128m|\
103 glinet,gl-ar300m-lite|\
104 glinet,gl-ar300m-nand|\
105 glinet,gl-ar300m-nor|\
108 glinet,gl-s200-nor-nand)
109 idx="$(find_mtd_index u-boot-env)"
111 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
113 buffalo,wzr-hp-ag300h)
114 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
116 buffalo,wzr-hp-g300nh-rb|\
117 buffalo,wzr-hp-g300nh-s|\
119 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
122 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
125 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
128 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x20000" "0x20000"
131 netgear,wndr3700-v2|\
133 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
136 netgear,wndr3700-v4|\
140 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
145 openmesh,om2p-hs-v1|\
146 openmesh,om2p-hs-v2|\
147 openmesh,om2p-hs-v3|\
148 openmesh,om2p-hs-v4|\
152 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
155 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
161 ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x40000" "0x40000"
165 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
172 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
175 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
180 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
185 config_foreach ubootenv_add_app_config ubootenv