Skip to content
Snippets Groups Projects
Select Git revision
  • 8fbe5d88e00049b632a6fc5006714acb260f3740
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

0024-ar71xx-detect-GL.iNet-model.patch

Blame
  • Forked from firmware / FFS Gluon
    4916 commits behind the upstream repository.
    user avatar
    Matthias Schiffer authored
    8fbe5d88
    History
    0024-ar71xx-detect-GL.iNet-model.patch 1007 B
    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
    index 61a7936..a698ce5 100755
    --- 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"