projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add user-space support for RB2011UAS
[openwrt.git]
/
target
/
linux
/
ar71xx
/
base-files
/
lib
/
ar71xx.sh
diff --git
a/target/linux/ar71xx/base-files/lib/ar71xx.sh
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index
900c9ad
..
05e1093
100755
(executable)
--- a/
target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/
target/linux/ar71xx/base-files/lib/ar71xx.sh
@@
-62,12
+62,22
@@
tplink_get_hwid() {
dd if=$part bs=4 count=1 skip=16 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
}
dd if=$part bs=4 count=1 skip=16 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
}
+tplink_get_mid() {
+ local part
+
+ part=$(find_mtd_part firmware)
+ [ -z "$part" ] && return 1
+
+ dd if=$part bs=4 count=1 skip=17 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
+}
+
tplink_board_detect() {
local model="$1"
local hwid
local hwver
hwid=$(tplink_get_hwid)
tplink_board_detect() {
local model="$1"
local hwid
local hwver
hwid=$(tplink_get_hwid)
+ mid=$(tplink_get_mid)
hwver=${hwid:6:2}
hwver="v${hwver#0}"
hwver=${hwid:6:2}
hwver="v${hwver#0}"
@@
-106,7
+116,12
@@
tplink_board_detect() {
model="TP-Link TL-WA901N/ND"
;;
"094100"*)
model="TP-Link TL-WA901N/ND"
;;
"094100"*)
- model="TP-Link TL-WR941N/ND"
+ if [ "$hwid" == "09410002" -a "$mid" == "00420001" ]; then
+ model="Rosewill RNX-N360RT"
+ hwver=""
+ else
+ model="TP-Link TL-WR941N/ND"
+ fi
;;
"104100"*)
model="TP-Link TL-WR1041N/ND"
;;
"104100"*)
model="TP-Link TL-WR1041N/ND"
@@
-117,7
+132,10
@@
tplink_board_detect() {
"254300"*)
model="TP-Link TL-WR2543N/ND"
;;
"254300"*)
model="TP-Link TL-WR2543N/ND"
;;
- "110101"*)
+ "001001"*)
+ model="TP-Link TL-MR10U"
+ ;;
+ "001101"*)
model="TP-Link TL-MR11U"
;;
"302000"*)
model="TP-Link TL-MR11U"
;;
"302000"*)
@@
-204,6
+222,9
@@
ar71xx_board_detect() {
*AP83)
name="ap83"
;;
*AP83)
name="ap83"
;;
+ *"Archer C7")
+ name="archer-c7"
+ ;;
*"Atheros AP96")
name="ap96"
;;
*"Atheros AP96")
name="ap96"
;;
@@
-333,6
+354,9
@@
ar71xx_board_detect() {
*"RouterBOARD 2011L")
name="rb-2011l"
;;
*"RouterBOARD 2011L")
name="rb-2011l"
;;
+ *"RouterBOARD 2011UAS")
+ name="rb-2011uas"
+ ;;
*"RouterBOARD 2011UAS-2HnD")
name="rb-2011uas-2hnd"
;;
*"RouterBOARD 2011UAS-2HnD")
name="rb-2011uas-2hnd"
;;