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|\
39 engenius,ens202ext-v1|\
40 engenius,enstationac-v1|\
43 glinet,gl-ar750s-nor|\
44 glinet,gl-ar750s-nor-nand|\
45 librerouter,librerouter-v1|\
71 ubnt,bullet-m-ar7240|\
72 ubnt,bullet-m-ar7241|\
74 ubnt,nanostation-loco-m|\
89 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
93 dongwon,dw02-412h-64m|\
94 dongwon,dw02-412h-128m|\
95 glinet,gl-ar300m-lite|\
96 glinet,gl-ar300m-nand|\
97 glinet,gl-ar300m-nor|\
99 idx="$(find_mtd_index u-boot-env)"
101 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
103 buffalo,wzr-hp-ag300h)
104 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
106 buffalo,wzr-hp-g300nh-rb|\
107 buffalo,wzr-hp-g300nh-s|\
109 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
112 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
115 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
118 netgear,wndr3700-v2|\
120 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
123 netgear,wndr3700-v4|\
127 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
132 openmesh,om2p-hs-v1|\
133 openmesh,om2p-hs-v2|\
134 openmesh,om2p-hs-v3|\
135 openmesh,om2p-hs-v4|\
139 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
142 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
148 ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x40000" "0x40000"
152 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
159 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
162 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
167 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
172 config_foreach ubootenv_add_app_config ubootenv