2017-09-06 19:19:45 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011-2012 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
|
|
|
|
. /lib/uboot-envtools.sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
|
2018-01-15 18:26:41 +08:00
|
|
|
board=$(board_name)
|
2017-09-06 19:19:45 +08:00
|
|
|
|
|
|
|
case "$board" in
|
2018-04-23 18:50:49 +08:00
|
|
|
alfa-network,ac1200rm|\
|
2019-03-20 14:38:13 +08:00
|
|
|
alfa-network,awusfree1|\
|
2019-12-10 19:48:48 -08:00
|
|
|
alfa-network,quad-e4g|\
|
|
|
|
alfa-network,r36m-e4g|\
|
2021-06-14 18:30:08 +08:00
|
|
|
alfa-network,tube-e4g)
|
2018-04-23 18:50:49 +08:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
|
|
|
|
;;
|
2020-02-06 21:45:40 +08:00
|
|
|
allnet,all0256n-4m|\
|
|
|
|
allnet,all0256n-8m|\
|
|
|
|
allnet,all5002)
|
2017-09-06 19:19:45 +08:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
|
|
|
;;
|
2021-06-14 18:30:08 +08:00
|
|
|
ampedwireless,ally-00x19k|\
|
|
|
|
ampedwireless,ally-r1900k)
|
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000" "4"
|
|
|
|
;;
|
2020-02-06 21:45:40 +08:00
|
|
|
buffalo,wsr-1166dhp|\
|
|
|
|
buffalo,wsr-600dhp|\
|
|
|
|
mediatek,linkit-smart-7688|\
|
|
|
|
samknows,whitebox-v8|\
|
2021-06-14 18:30:08 +08:00
|
|
|
xiaomi,mi-router-4c|\
|
2020-02-06 21:45:40 +08:00
|
|
|
xiaomi,miwifi-nano|\
|
2021-06-14 18:30:08 +08:00
|
|
|
zbtlink,zbt-wg2626|\
|
|
|
|
zte,mf283plus)
|
2017-09-06 19:19:45 +08:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
|
|
|
|
;;
|
2020-10-03 00:36:16 +08:00
|
|
|
hootoo,ht-tm05|\
|
|
|
|
ravpower,rp-wd03)
|
|
|
|
idx="$(find_mtd_index u-boot-env)"
|
|
|
|
[ -n "$idx" ] && \
|
|
|
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x4000" "0x1000" "0x1000"
|
|
|
|
;;
|
2021-05-21 13:44:01 +08:00
|
|
|
jcg,q20)
|
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
|
|
|
|
;;
|
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
431fb8c mac80211: add AQL improvements
6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
0106820 mac80211: add missing return code checks in AQL improvements
e7f7101 mac80211: rework encapsulation offload support
[package]
base-files: add function for generating random MAC
dnsmasq: abort dhcp_check on interface state
boot: sync upstream source code
ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD
[script]
download: add China Mirror Station
[target]
Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
mediatek, mvebu, octeon, oxnas, pistachio, uml
Sync most of the target patches.
Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
|
|
|
linksys,ea7300-v1|\
|
2020-05-22 10:53:12 +08:00
|
|
|
linksys,ea7500-v2|\
|
2021-06-14 18:30:08 +08:00
|
|
|
linksys,ea8100-v1|\
|
2019-03-20 14:38:13 +08:00
|
|
|
xiaomi,mir3p|\
|
2020-03-17 01:39:45 +08:00
|
|
|
xiaomi,mir3g|\
|
2020-07-03 12:06:27 +08:00
|
|
|
xiaomi,mir4|\
|
|
|
|
xiaomi,miwifi-r3|\
|
|
|
|
xiaomi,mi-router-ac2100|\
|
2020-05-01 12:23:28 +08:00
|
|
|
xiaomi,redmi-router-ac2100)
|
2018-01-15 18:26:41 +08:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
|
|
|
|
;;
|
2021-07-13 21:11:06 +08:00
|
|
|
xiaomi,mi-router-cr660x)
|
2021-04-27 22:58:52 +08:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x20000"
|
|
|
|
;;
|
2021-06-14 18:30:08 +08:00
|
|
|
zyxel,nr7101)
|
|
|
|
idx="$(find_mtd_index Config)"
|
|
|
|
[ -n "$idx" ] && \
|
|
|
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x80000"
|
|
|
|
;;
|
2017-09-06 19:19:45 +08:00
|
|
|
esac
|
|
|
|
|
|
|
|
config_load ubootenv
|
|
|
|
config_foreach ubootenv_add_app_config ubootenv
|
|
|
|
|
|
|
|
exit 0
|