projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: add support for Xiaomi Mi Router 3 Pro
[openwrt/staging/wigyori.git]
/
package
/
boot
/
uboot-envtools
/
files
/
ramips
diff --git
a/package/boot/uboot-envtools/files/ramips
b/package/boot/uboot-envtools/files/ramips
index c5d7ecb364822aa774f307ef2da1b9d29c9c9947..b70f62656d686f02a7cba34aac54e72c61c6dbb0 100644
(file)
--- a/
package/boot/uboot-envtools/files/ramips
+++ b/
package/boot/uboot-envtools/files/ramips
@@
-7,21
+7,23
@@
touch /etc/config/ubootenv
touch /etc/config/ubootenv
-. /lib/ramips.sh
. /lib/uboot-envtools.sh
. /lib/functions.sh
. /lib/uboot-envtools.sh
. /lib/functions.sh
-board=$(
ramips_
board_name)
+board=$(board_name)
case "$board" in
case "$board" in
-all0239-3g|\
-all0256n|\
+alfa-network,ac1200rm|\
+alfa-network,awusfree1|\
+alfa-network,tube-e4g)
+ ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
+ ;;
+all0256n-4M|\
+all0256n-8M|\
all5002)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
;;
all5002)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
;;
-br6425|\
linkits7688|\
linkits7688|\
-linkits7688d|\
miwifi-nano|\
sk-wb8|\
wsr-1166|\
miwifi-nano|\
sk-wb8|\
wsr-1166|\
@@
-29,6
+31,10
@@
wsr-600|\
zbt-wg2626)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
;;
zbt-wg2626)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
;;
+xiaomi,mir3p|\
+mir3g)
+ ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
+ ;;
esac
config_load ubootenv
esac
config_load ubootenv