aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621/base-files/etc
diff options
context:
space:
mode:
authorChukun Pan <amadeus@jmu.edu.cn>2021-02-08 16:28:10 +0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-02-09 13:10:33 +0100
commit82032f350991af08a918f0fcaac81ff82e836d88 (patch)
treeff831861c93a578b7397c209a43e6659b0e2fb24 /target/linux/ramips/mt7621/base-files/etc
parent98d61b516fa2087dab8d3e3eb845c47b55e2b704 (diff)
downloadupstream-82032f350991af08a918f0fcaac81ff82e836d88.tar.gz
upstream-82032f350991af08a918f0fcaac81ff82e836d88.tar.bz2
upstream-82032f350991af08a918f0fcaac81ff82e836d88.zip
ramips: add support for JCG Y2
JCG Y2 is an AC1300M router Hardware specs: SoC: MediaTek MT7621AT Flash: Winbond W25Q128JVSQ 16MiB RAM: Nanya NT5CB128M16 256MiB WLAN: 2.4/5 GHz 2T2R (1x MediaTek MT7615) Ethernet: 10/100/1000 Mbps x5 LED: POWER, INTERNET, 2.4G, 5G Button: Reset Power: DC 12V,1A Flash instructions: Upload factory.bin in stock firmware's upgrade page. MAC addresses map: 0x0004 *:c8 wlan2g/wlan5g/label 0xe000 *:c7 lan 0xe006 *:c6 wan Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Diffstat (limited to 'target/linux/ramips/mt7621/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/01_leds1
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network15
2 files changed, 9 insertions, 7 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
index 8d91b36346..5fa9ad3fe8 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
@@ -19,6 +19,7 @@ d-team,newifi-d2)
;;
d-team,pbr-m1|\
gehua,ghl-r-001|\
+jcg,y2|\
xzwifi,creativebox-v1)
ucidef_set_led_netdev "internet" "internet" "blue:internet" "wan"
;;
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index dbb8e04abb..46cb65ffbe 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -113,6 +113,14 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
label_mac=$wan_mac
;;
+ jcg,y2|\
+ wavlink,wl-wn531a6|\
+ winstars,ws-wn583a6|\
+ zbtlink,zbt-we1326|\
+ zbtlink,zbt-wg3526-16m|\
+ zbtlink,zbt-wg3526-32m)
+ label_mac=$(mtd_get_mac_binary factory 0x4)
+ ;;
linksys,ea7300-v1|\
linksys,ea7300-v2|\
linksys,ea7500-v2)
@@ -128,13 +136,6 @@ ramips_setup_macs()
wan_mac=$label_mac
lan_mac=$(macaddr_add $label_mac 1)
;;
- wavlink,wl-wn531a6|\
- winstars,ws-wn583a6|\
- zbtlink,zbt-we1326|\
- zbtlink,zbt-wg3526-16m|\
- zbtlink,zbt-wg3526-32m)
- label_mac=$(mtd_get_mac_binary factory 0x4)
- ;;
esac
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac