aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7620/base-files/etc/board.d
diff options
context:
space:
mode:
authorPawel Dembicki <paweldembicki@gmail.com>2020-04-17 22:31:11 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-09 20:02:17 +0200
commit426fb8cf84ae19b0edc2ed06f7a595bc7b1ed212 (patch)
tree38349f224413534aff2485e2615985162288aaf6 /target/linux/ramips/mt7620/base-files/etc/board.d
parenta8a1ef856871dc8403ea9c0a3bb347c7120b0e65 (diff)
downloadupstream-426fb8cf84ae19b0edc2ed06f7a595bc7b1ed212.tar.gz
upstream-426fb8cf84ae19b0edc2ed06f7a595bc7b1ed212.tar.bz2
upstream-426fb8cf84ae19b0edc2ed06f7a595bc7b1ed212.zip
ramips: add support for LB-Link BL-W1200
The BL-W1200 Wireless Router is based on the MT7620A SoC. Specification: - MediaTek MT7620A (580 Mhz) - 64 MB of RAM - 8 MB of FLASH - 1x 802.11bgn radio - 1x 802.11ac radio (MT7612E) - 5x 10/100/1000 Mbps Ethernet (MT7530) - 2x external, non-detachable antennas (Wifi 2.4G/5G) - 1x USB 2.0 - UART (R2) on PCB (57600 8n1) - 9x LED (1 GPIO controlled), 1x button - u-Boot bootloader Known issues: - No status LED. Used WPS LED during boot/failsafe/sysupgrade. Installation: 1. Apply initramfs image via factory web-gui. 2. Install sysupgrade image. How to revert to OEM firmware: - sysupgrade -n -F stock_firmware.bin Reviewed-by: Sungbo Eo <mans0n@gorani.run> Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Diffstat (limited to 'target/linux/ramips/mt7620/base-files/etc/board.d')
-rwxr-xr-xtarget/linux/ramips/mt7620/base-files/etc/board.d/02_network5
-rwxr-xr-xtarget/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches3
2 files changed, 8 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 8ae50b3df5..3f306d8506 100755
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -116,6 +116,7 @@ ramips_setup_interfaces()
"1:lan" "2:lan" "3:lan" "5:lan" "0:wan" "6@eth0"
;;
edimax,br-6478ac-v2|\
+ lb-link,bl-w1200|\
tplink,archer-c2-v1)
ucidef_add_switch "switch0"
ucidef_add_switch_attr "switch0" "enable" "false"
@@ -319,6 +320,10 @@ ramips_setup_macs()
iptime,a104ns)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary u-boot 0x1fc20)" 2)
;;
+ lb-link,bl-w1200)
+ wan_mac=$(mtd_get_mac_binary factory 0x2e)
+ label_mac=$wan_mac
+ ;;
lenovo,newifi-y1|\
lenovo,newifi-y1s|\
ohyeah,oy-0001|\
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches b/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches
index f2355fdb97..959991598c 100755
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches
@@ -22,6 +22,9 @@ head-weblink,hdrm200)
ucidef_add_gpio_switch "io4" "I/O 4" "14"
ucidef_add_gpio_switch "power_mpcie" "mPCIe power" "21" "1"
;;
+lb-link,bl-w1200)
+ ucidef_add_gpio_switch "eth_leds_enable" "ETH LEDs enable" "10" "1"
+ ;;
zbtlink,zbt-we826-e)
ucidef_add_gpio_switch "sim_switch" "SIM slot switch" "13"
ucidef_add_gpio_switch "power_mpcie" "mPCIe power" "14" "1"