Skip to content
Snippets Groups Projects
Commit 2a0fcc02 authored by John Crispin's avatar John Crispin
Browse files

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.

Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 44860
parent 29c36112
No related branches found
No related tags found
No related merge requests found
...@@ -274,6 +274,19 @@ tplink_pharos_board_detect() { ...@@ -274,6 +274,19 @@ tplink_pharos_board_detect() {
[ -n "$model" ] && AR71XX_MODEL="$model v$2" [ -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() { ar71xx_board_detect() {
local machine local machine
local name local name
...@@ -401,6 +414,7 @@ ar71xx_board_detect() { ...@@ -401,6 +414,7 @@ ar71xx_board_detect() {
;; ;;
*"GL-CONNECT INET v1") *"GL-CONNECT INET v1")
name="gl-inet" name="gl-inet"
gl_inet_board_detect
;; ;;
*"EnGenius ESR1750") *"EnGenius ESR1750")
name="esr1750" name="esr1750"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment