Changeset 44860


Ignore:
Timestamp:
2015-03-17T10:43:13+01:00 (3 years ago)
Author:
blogic
Message:

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: Matthias Schiffer <mschiffer@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r44646 r44860  
    275275} 
    276276 
     277gl_inet_board_detect() { 
     278        local size="$(mtd_get_part_size 'firmware')" 
     279 
     280        case "$size" in 
     281        8192000) 
     282                AR71XX_MODEL='GL-iNet 6408A v1' 
     283                ;; 
     284        16580608) 
     285                AR71XX_MODEL='GL-iNet 6416A v1' 
     286                ;; 
     287        esac 
     288} 
     289 
    277290ar71xx_board_detect() { 
    278291        local machine 
     
    402415        *"GL-CONNECT INET v1") 
    403416                name="gl-inet" 
     417                gl_inet_board_detect 
    404418                ;; 
    405419        *"EnGenius ESR1750") 
Note: See TracChangeset for help on using the changeset viewer.