2015-03-13 11:02:35 +00:00
|
|
|
From: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
|
|
Date: Fri, 13 Mar 2015 11:59:58 +0100
|
|
|
|
Subject: ar71xx: detect GL.iNet model
|
|
|
|
|
|
|
|
There are two versions of the GL.iNet, the 6408A and the 6416A. The only
|
|
|
|
difference is the flash size.
|
|
|
|
|
|
|
|
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
|
2015-03-18 19:18:54 +00:00
|
|
|
index 61a7936..a698ce5 100755
|
2015-03-13 11:02:35 +00:00
|
|
|
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
|
|
|
|
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
|
|
|
|
@@ -262,6 +262,19 @@ tplink_pharos_board_detect() {
|
|
|
|
[ -n "$model" ] && AR71XX_MODEL="$model v$2"
|
|
|
|
}
|
|
|
|
|
|
|
|
+gl_inet_board_detect() {
|
|
|
|
+ local size="$(mtd_get_part_size 'firmware')"
|
|
|
|
+
|
|
|
|
+ case "$size" in
|
|
|
|
+ 8192000)
|
|
|
|
+ AR71XX_MODEL='GL-iNet 6408A v1'
|
|
|
|
+ ;;
|
|
|
|
+ 16580608)
|
|
|
|
+ AR71XX_MODEL='GL-iNet 6416A v1'
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
ar71xx_board_detect() {
|
|
|
|
local machine
|
|
|
|
local name
|
|
|
|
@@ -380,6 +393,7 @@ ar71xx_board_detect() {
|
|
|
|
;;
|
|
|
|
*"GL-CONNECT INET v1")
|
|
|
|
name="gl-inet"
|
|
|
|
+ gl_inet_board_detect
|
|
|
|
;;
|
|
|
|
*"EnGenius ESR1750")
|
|
|
|
name="esr1750"
|