3 # Copyright (C) 2011-2014 OpenWrt.org
6 [ -e /etc
/config
/ubootenv
] && exit 0
8 touch /etc
/config
/ubootenv
10 .
/lib
/uboot-envtools.sh
22 glinet
,gl-ar750s-nor|\
23 glinet
,gl-ar750s-nor-nand|\
24 librerouter
,librerouter-v1|\
41 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x10000" "0x10000"
43 buffalo
,wzr-hp-ag300h
)
44 ubootenv_add_uci_config
"/dev/mtd3" "0x0" "0x10000" "0x10000"
47 ubootenv_add_uci_config
"/dev/mtd4" "0x0" "0x10000" "0x10000"
50 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x8000" "0x10000"
52 glinet
,gl-ar300m-lite|\
53 glinet
,gl-ar300m-nand|\
54 glinet
,gl-ar300m-nor|\
56 idx
="$(find_mtd_index u-boot-env)"
58 ubootenv_add_uci_config
"/dev/mtd$idx" "0x0" "0x10000" "0x10000"
63 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x20000" "0x10000"
69 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x40000" "0x20000"
72 ubootenv_add_uci_config
"/dev/mtd9" "0x0" "0x10000" "0x10000"
77 config_foreach ubootenv_add_app_config ubootenv