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 allnet,all-wap02860ac|\
34 engenius,ens202ext-v1|\
35 engenius,enstationac-v1|\
37 glinet,gl-ar750s-nor|\
38 glinet,gl-ar750s-nor-nand|\
39 librerouter,librerouter-v1|\
65 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
67 buffalo,wzr-hp-ag300h)
68 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
71 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
74 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
76 glinet,gl-ar300m-lite|\
77 glinet,gl-ar300m-nand|\
78 glinet,gl-ar300m-nor|\
80 idx="$(find_mtd_index u-boot-env)"
82 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
87 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
93 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
100 openmesh,om2p-hs-v4|\
104 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
107 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
110 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
115 config_foreach ubootenv_add_app_config ubootenv