diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-03-11 03:56:35 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-05-18 02:41:49 +0100 |
commit | 7cbe34170e3d8471c1ebacde33a2372c92433be4 (patch) | |
tree | 758e37d3e4620cf72f3df446f44b953d008d7403 /target/linux/mediatek/base-files | |
parent | a67f2ab745093cd37801578c2d4779ce5db69579 (diff) | |
download | upstream-7cbe34170e3d8471c1ebacde33a2372c92433be4.tar.gz upstream-7cbe34170e3d8471c1ebacde33a2372c92433be4.tar.bz2 upstream-7cbe34170e3d8471c1ebacde33a2372c92433be4.zip |
mediatek: add support for the GL.iNet GL-MT3000
The MT-3000 is a pocket-sized Wi-Fi 6 router based on MediaTek MT7981.
Specification:
- SoC: MediaTek MT7981B
- CPU: 2x 1.3 GHz Cortex-A53
- Flash: 256 MiB Macronix SPI NAND
- RAM: 512 MiB Nanya DDR4
- WLAN: 2.4 GHz, 5 GHz (MediaTek MT7976CN)
- Ethernet:
- 1x 10/100/1000 Mbps built-in PHY (LAN)
- 1x 10/100/1000/2500 Mbps MaxLinear GPY211 PHY (WAN)
- USB 3.0 port
- Buttons: 1 button, 1 switch
- LEDs: 1x light-blue, 1x warm-white
- Serial console: internal 4-pin header, 115200 8n1
- PWM controlled fan with tacho
- Power: 5 VDC, 3 A (USB Type-C)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/base-files')
-rw-r--r-- | target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface index 3ac856d1c4..5e7fc81ad8 100644 --- a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface +++ b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface @@ -1,11 +1,15 @@ set_preinit_iface() { - ip link set eth0 up - case $(board_name) in + glinet,gl-mt3000) + ip link set eth1 up + ifname=eth1 + ;; ubnt,unifi-6-lr) + ip link set eth0 up ifname=eth0 ;; *) + ip link set eth0 up ifname=lan1 ;; esac |