Skip to content

Commit 479f140

Browse files
joelinux60hauke
authored andcommitted
mediatek: add support for device zbt-z8103ax-c
- adopted MTD partition size increase from 64M to 128M -> this allows boot to complete - moved MAC addressing stuff out of partition definitions - all MAC addressing stuff is in .dtsi Specifications: SoC: MediaTek MT7981B RAM: 256MiB Flash: Winbond SPI-NAND 128 MiB Switch: 1 WAN, 3 LAN (Gigabit) MediaTek MT7531 Buttons: Reset, Mesh Power: DC 12V 1A WiFi: MT7981B 2.4Ghz & 5.8Ghz Led Layout from bottom to top: Power Mesh (RGB Led, user controllable, default set to OpenWrt Status) WLAN 2 GHz (user controllable) WAN (user controllable) LAN3 LAN2 LAN1 WLAN 5 GHz (Not on front panel but blinks through enclosure, user controllable) Buttons: Reset Mesh (user controllable, no default function) Installation: A. Through U-Boot menu: - Prepare your connecting computer to use a static IP in network 192.168.1.0/24 - Power down the router and hold in the Reset button. - While holding in the button power up the router again. - Hold the button in for 10 seconds and then release. - Use your browser to go to 192.168.1.1 - If you see a GUI allowing for flashing firmware then you got the right model. - Upload the sysupgrade file. Note: Recovery GUI can be used to recover from an incorrect firmware flash. B. Through OpenWrt Dashboard: If your router comes with OpenWrt preinstalled (modified by the seller), you can easily upgrade by going to the dashboard (192.168.1.1) and then navigate to System -> Backup/Flash firmware, then flash the firmware MAC Addresses were found in Factory partition: offset 0x4 F8:5E:3C:xx:xx:aa --> Router Label -2 offset 0xa F8:5E:3C:xx:xx:bb --> Router Label -1 offset 0x24 F8:5E:3C:xx:xx:cc --> Router Label +1 offset 0x2a F8:5E:3C:xx:xx:yy --> printed on Router Label Signed-off-by: Jörg Seitz <github.joeterminal@xoxy.net> Link: openwrt/openwrt#19823 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent b21b019 commit 479f140

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2+
3+
/dts-v1/;
4+
5+
#include "mt7981b-zbtlink-zbt-z8103ax.dtsi"
6+
7+
/ {
8+
model = "Zbtlink 3000M(WiFi6) ZBT-Z8103AX-C";
9+
compatible = "zbtlink,zbt-z8103ax-c", "mediatek,mt7981b";
10+
};

target/linux/mediatek/filogic/base-files/etc/board.d/01_leds

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ xiaomi,redmi-router-ax6000-stock|\
306306
xiaomi,redmi-router-ax6000-ubootmod)
307307
ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan"
308308
;;
309-
zbtlink,zbt-z8103ax)
309+
zbtlink,zbt-z8103ax|\
310+
zbtlink,zbt-z8103ax-c)
310311
ucidef_set_led_netdev "wan" "wan" "green:wan" "eth1" "link tx rx"
311312
;;
312313
zyxel,ex5601-t0-stock|\

target/linux/mediatek/filogic/base-files/etc/board.d/02_network

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ mediatek_setup_interfaces()
1919
nokia,ea0326gmp|\
2020
mercusys,mr80x-v3|\
2121
routerich,ax3000-v1|\
22-
zbtlink,zbt-z8103ax)
22+
zbtlink,zbt-z8103ax|\
23+
zbtlink,zbt-z8103ax-c)
2324
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1
2425
;;
2526
acelink,ew-7886cax)

target/linux/mediatek/image/filogic.mk

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,6 +3074,23 @@ define Device/zbtlink_zbt-z8103ax
30743074
endef
30753075
TARGET_DEVICES += zbtlink_zbt-z8103ax
30763076

3077+
define Device/zbtlink_zbt-z8103ax-c
3078+
DEVICE_VENDOR := Zbtlink
3079+
DEVICE_MODEL := ZBT-Z8103AX-C
3080+
DEVICE_DTS := mt7981b-zbtlink-zbt-z8103ax-c
3081+
DEVICE_DTS_DIR := ../dts
3082+
DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
3083+
KERNEL_IN_UBI := 1
3084+
UBINIZE_OPTS := -E 5
3085+
BLOCKSIZE := 128k
3086+
PAGESIZE := 2048
3087+
IMAGE_SIZE := 65536k
3088+
IMAGES += factory.bin
3089+
IMAGE/factory.bin := append-ubi | check-size $$(IMAGE_SIZE)
3090+
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
3091+
endef
3092+
TARGET_DEVICES += zbtlink_zbt-z8103ax-c
3093+
30773094
define Device/zyxel_ex5601-t0-stock
30783095
DEVICE_VENDOR := Zyxel
30793096
DEVICE_MODEL := EX5601-T0

0 commit comments

Comments
 (0)