aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7620
diff options
context:
space:
mode:
authorShiji Yang <yangshiji66@qq.com>2022-11-05 19:52:08 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-05 21:12:24 +0100
commit7a504c151d26210addc66f029dacda13fb662bdd (patch)
tree1cfc40adb0cee381f24b029e84b7cbef0b618fff /target/linux/ramips/mt7620
parenteba0a8deb65de70b0d913f9ec8910640a79d0191 (diff)
downloadupstream-7a504c151d26210addc66f029dacda13fb662bdd.tar.gz
upstream-7a504c151d26210addc66f029dacda13fb662bdd.tar.bz2
upstream-7a504c151d26210addc66f029dacda13fb662bdd.zip
ramips: add support for Youku X2
Specifications: SOC: MT7620AN + MT7612EN RAM: 128 MiB DDR2 Flash: 16 MiB (Winbond W25Q28FVFG) WLAN: 2.4G + 5G LAN: LAN ports *2 WAN: WAN port *1 USB: USB2.0 *1 SD Card: MicroSD *1 Buttons: Reset *1 LEDs: ethernet *3, system, usb, wlan2g, wlan5g MAC Address: use address source label 54:36:9b:xx:xx:ac lan lan 54:36:9b:xx:xx:ac factory.0x0028 wan 54:36:9b:xx:xx:ad factory.0x002e wlan2g 54:36:9b:xx:xx:ae factory.0x0004 wlan5g 54:36:9b:xx:xx:af factory.0x8004 Installation: 1. Apply initramfs-kernel.bin in stock firmware Web UI. 2. Install sysupgrade.bin on OpenWrt and do not retain any configuration. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips/mt7620')
-rw-r--r--target/linux/ramips/mt7620/base-files/etc/board.d/02_network5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
index 79df102056..ac1cf5e62a 100644
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -237,6 +237,10 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"5:lan" "4:wan" "6@eth0"
;;
+ youku,x2)
+ ucidef_add_switch "switch0" \
+ "1:lan:2" "4:lan:1" "0:wan" "6@eth0"
+ ;;
youku,yk-l1|\
youku,yk-l1c)
ucidef_add_switch "switch0" \
@@ -368,6 +372,7 @@ ramips_setup_macs()
ohyeah,oy-0001|\
wavlink,wl-wn530hg4|\
wevo,air-duo|\
+ youku,x2|\
youku,yk-l1|\
youku,yk-l1c)
wan_mac=$(mtd_get_mac_binary factory 0x2e)