projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uboot-envtools: ramips: add support for ALFA Network R36M-E4G
[openwrt/openwrt.git]
/
package
/
boot
/
uboot-envtools
/
files
/
ramips
diff --git
a/package/boot/uboot-envtools/files/ramips
b/package/boot/uboot-envtools/files/ramips
index 53cf9d3043f2dcf3d709481ba1c27358bf151a29..f6af232e96106cdd1553034a83050ceed51b6bb0 100644
(file)
--- a/
package/boot/uboot-envtools/files/ramips
+++ b/
package/boot/uboot-envtools/files/ramips
@@
-7,25
+7,35
@@
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 | \
-all5002)
+alfa-network,ac1200rm|\
+alfa-network,awusfree1|\
+alfa-network,r36m-e4g|\
+alfa-network,tube-e4g)
+ ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
+ ;;
+allnet,all0256n-4m|\
+allnet,all0256n-8m|\
+allnet,all5002)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
;;
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
;;
-linkits7688 | \
-linkits7688d | \
-wsr-600 | \
-wsr-1166 | \
-br6425)
+buffalo,wsr-1166dhp|\
+buffalo,wsr-600dhp|\
+mediatek,linkit-smart-7688|\
+samknows,whitebox-v8|\
+xiaomi,miwifi-nano|\
+zbtlink,zbt-wg2626)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
;;
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
;;
+xiaomi,mir3p|\
+xiaomi,mir3g)
+ ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
+ ;;
esac
config_load ubootenv
esac
config_load ubootenv