Tp-link AX80 EU v2 / AX80V. Need Advice

Can you send this patch and new bootlog?

Also. Google gives some interesting things when you search error string

Basically i tried to point it to EEPROM, and if it didnt find mac there, fallback to the one on the sticker (Or whatever you typed there), also remember that this code was generated by AI, im not a coder:
target/linux/mediatek/filogic/base-files/etc/board.d/02_network

tplink,archer-ax80-v1|\
	tplink,archer-ax80-v1-eu|\
	tplink,archer-ax80-v2-eu|\
	tplink,re6000xd)
		if [ -f "/tmp/tp_data/default-mac" ]; then
			label_mac=$(get_mac_binary "/tmp/tp_data/default-mac" 0)
		elif [ -f "/tmp/tp_data/MT7986_EEPROM.bin" ]; then
			label_mac=$(get_mac_binary "/tmp/tp_data/MT7986_EEPROM.bin" 4)
		else
			# Fallback if both flash structures are missing
			label_mac="20:e1:5d:02:3c:22"
		fi
		lan_mac=$label_mac
		;;

target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac

tplink,archer-ax80-v1|\
	tplink,archer-ax80-v1-eu|\
	tplink,archer-ax80-v2-eu|\
	tplink,be450|\
	tplink,re6000xd)
		if [ -f "/tmp/tp_data/default-mac" ]; then
			addr=$(get_mac_binary "/tmp/tp_data/default-mac" 0)
		elif [ -f "/tmp/tp_data/MT7986_EEPROM.bin" ]; then
			addr=$(get_mac_binary "/tmp/tp_data/MT7986_EEPROM.bin" 4)
		else
			# Fallback if both flash structures are missing
			addr="20:e1:5d:02:3c:22"
		fi
		[ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress
		[ "$PHYNBR" = "1" ] && macaddr_add $addr -1 > /sys${DEVPATH}/macaddress
		;;

target/linux/mediatek/filogic/base-files/lib/preinit/10_fix_eth_mac.sh

tplink,archer-ax80-v1|\
	tplink,archer-ax80-v1-eu|\
	tplink,archer-ax80-v2-eu|\
	tplink,re6000xd)
		if [ -f "/tmp/tp_data/default-mac" ]; then
			addr=$(get_mac_binary "/tmp/tp_data/default-mac" 0)
		elif [ -f "/tmp/tp_data/MT7986_EEPROM.bin" ]; then
			addr=$(get_mac_binary "/tmp/tp_data/MT7986_EEPROM.bin" 4)
		else
			# Fallback if both flash structures are missing
			addr="20:e1:5d:02:3c:22"
		fi
		ip link set dev eth1 address "$(macaddr_add $addr 1)"
		;;

The boot after patches, notice that these

"get_mac_binary: file /tmp/tp_data/default-mac not found!
ip: wrong address (1) length: expected 6 bytes"

errors disappeared, although im 99% sure that fallback worked, cause i cant find any trace of MAC in EEPROM.

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.18.33 (asher@AsheR-PC) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r34657+1-8e724fc3b3) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Sat Jul  4 15:52:01 2026
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: TP-Link Archer AX80 v2 (EU)
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: legacy bootconsole [uart8250] enabled
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004303ffff (256 KiB) nomap non-reusable secmon@43000000
[    0.000000] OF: reserved mem: 0x000000004fc00000..0x000000004fcfffff (1024 KiB) nomap non-reusable wmcpu-reserved@4fc00000
[    0.000000] OF: reserved mem: 0x000000004fd00000..0x000000004fd3ffff (256 KiB) nomap non-reusable wo-emi@4fd00000
[    0.000000] OF: reserved mem: 0x000000004fd40000..0x000000004fd7ffff (256 KiB) nomap non-reusable wo-emi@4fd40000
[    0.000000] OF: reserved mem: 0x000000004fd80000..0x000000004ffbffff (2304 KiB) nomap non-reusable wo-data@4fd80000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004303ffff]
[    0.000000]   node   0: [mem 0x0000000043040000-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004ffbffff]
[    0.000000]   node   0: [mem 0x000000004ffc0000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 20 pages/cpu s43480 r8192 d30248 u81920
[    0.000000] pcpu-alloc: s43480 r8192 d30248 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GICv3 CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: ubi.mtd=ubi0 console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 init=/etc/preinit
[    0.000000] printk: log buffer data + meta data: 131072 + 458752 = 589824 bytes
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 1MB
[    0.000000] software IO TLB: mapped [mem 0x000000005fcc5000-0x000000005fdc5000] (1MB)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 131072
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTLR.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.008134] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.018537] pid_max: default: 32768 minimum: 301
[    0.024853] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.032199] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.043423] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.050101] rcu: Hierarchical SRCU implementation.
[    0.054916] rcu:     Max phase no-delay instances is 1000.
[    0.060278] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.068608] smp: Bringing up secondary CPUs ...
[    0.073414] Detected VIPT I-cache on CPU1
[    0.073448] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.073471] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.073779] Detected VIPT I-cache on CPU2
[    0.073803] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.073815] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.074127] Detected VIPT I-cache on CPU3
[    0.074145] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.074156] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.074191] smp: Brought up 1 node, 4 CPUs
[    0.130718] SMP: Total of 4 processors activated.
[    0.135437] CPU: All CPU(s) started at EL2
[    0.139544] CPU features: detected: 32-bit EL0 Support
[    0.144703] CPU features: detected: CRC32 instructions
[    0.149876] alternatives: applying system-wide alternatives
[    0.155574] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.164077] Memory: 486040K/524288K available (9664K kernel code, 946K rwdata, 2976K rodata, 960K init, 295K bss, 35184K reserved, 0K cma-reserved)
[    0.179624] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.189544] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.197023] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
[    0.205810] 29008 pages in range for non-PLT usage
[    0.205813] 520528 pages in range for PLT usage
[    0.211690] pinctrl core: initialized pinctrl subsystem
[    0.222373] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.228560] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.235660] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.243458] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.251694] thermal_sys: Registered thermal governor 'fair_share'
[    0.251697] thermal_sys: Registered thermal governor 'bang_bang'
[    0.257818] thermal_sys: Registered thermal governor 'step_wise'
[    0.263847] thermal_sys: Registered thermal governor 'user_space'
[    0.269938] ASID allocator initialised with 65536 entries
[    0.282037] pstore: Using crash dump compression: deflate
[    0.287456] pstore: Registered ramoops as persistent store backend
[    0.293665] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.299666] /soc/interrupt-controller@c000000: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.323431] SCSI subsystem initialized
[    0.327317] libata version 3.00 loaded.
[    0.332349] clocksource: Switched to clocksource arch_sys_counter
[    0.340365] NET: Registered PF_INET protocol family
[    0.345355] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.353443] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.361838] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.369629] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.377428] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.384762] TCP: Hash tables configured (established 4096 bind 4096)
[    0.391320] MPTCP token hash table entries: 512 (order: 2, 12288 bytes, linear)
[    0.398738] UDP hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.405396] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.412616] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.418315] PCI: CLS 0 bytes, default 64
[    0.422435] Unpacking initramfs...
[    0.433430] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.443374] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.449241] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.461352] cryptd: max_cpu_qlen set to 1000
[    0.502918] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.510335] printk: legacy console [ttyS0] disabled
[    0.535631] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 116, base_baud = 2500000) is a ST16650V2
[    0.544945] printk: legacy console [ttyS0] enabled
[    0.544945] printk: legacy console [ttyS0] enabled
[    0.554531] printk: legacy bootconsole [uart8250] disabled
[    0.554531] printk: legacy bootconsole [uart8250] disabled
[    0.566387] mtk_rng 1020f000.rng: registered RNG driver
[    0.566610] random: crng init done
[    0.577153] loop: module loaded
[    0.581769] spi-nand spi0.0: Must provide correct addr(length) for spinand calibration
[    0.589704] spi-nand spi0.0: calibration failed, fallback to default: 0x2
[    0.596500] spi-nand spi0.0: Failed to calibrate SPI-NAND (err = -22)
[    0.603090] spi-nand spi0.0: ESMT SPI NAND was found.
[    0.608144] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.289208] Freeing initrd memory: 4448K
[    1.297127] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.303495] Creating 6 MTD partitions on "spi0.0":
[    1.308272] 0x000000000000-0x000000200000 : "boot"
[    1.314671] 0x000000200000-0x000000300000 : "u-boot-env"
[    1.320786] 0x000000300000-0x000003500000 : "ubi0"
[    1.356906] 0x000003500000-0x000006700000 : "ubi1"
[    1.392477] 0x000006700000-0x000006f00000 : "userconfig"
[    1.403083] 0x000006f00000-0x000007700000 : "tp_data"
[    1.533606] mtk_soc_eth 15100000.ethernet: generated random MAC address 20:08:02:00:00:00
[    1.541779] mtk_soc_eth 15100000.ethernet: generated random MAC address 20:08:02:00:00:00
[    4.153036] Maxlinear Ethernet GPY211C mdio-bus:06: Firmware Version: 8.111 (0x886F)
[    4.164785] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc0859c0000, irq 120
[    4.174516] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc0859c0000, irq 120
[    4.184130] i2c_dev: i2c /dev entries driver
[    4.189746] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    4.198235] NET: Registered PF_INET6 protocol family
[    4.203860] Segment Routing with IPv6
[    4.207530] In-situ OAM (IOAM) with IPv6
[    4.211467] NET: Registered PF_PACKET protocol family
[    4.216598] 8021q: 802.1Q VLAN Support v1.8
[    4.303353] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[    4.312304] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control off
[    4.322366] mt7530-mdio mdio-bus:1f lan0 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=123)
[    4.347857] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=124)
[    4.373029] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=125)
[    4.398206] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=126)
[    4.413606] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[    4.420319] DSA: tree 0 setup
[    4.423442] ubi0: default fastmap pool size: 20
[    4.427958] ubi0: default fastmap WL pool size: 10
[    4.432742] ubi0: attaching mtd2
[    4.605365] ubi0: scanning is finished
[    4.682665] ubi0: attached mtd2 (name "ubi0", size 50 MiB)
[    4.688142] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.695006] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.701772] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.708717] ubi0: good PEBs: 400, bad PEBs: 0, corrupted PEBs: 0
[    4.714707] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    4.721907] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 902240130
[    4.730930] ubi0: available PEBs: 141, total reserved PEBs: 259, PEBs reserved for bad PEB handling: 20
[    4.740307] ubi0: background thread "ubi_bgt0d" started, PID 606
[    7.325572] block ubiblock0_2: created from ubi0:2(rootfs)
[    7.331063] ubiblock: device ubiblock0_2 (rootfs) set to be root filesystem
[    7.338098] clk: Disabling unused clocks
[    7.342248] PM: genpd: Disabling unused power domains
[    7.347773] Freeing unused kernel memory: 960K
[    7.352239] Run /init as init process
[    7.355898]   with arguments:
[    7.358850]     /init
[    7.361108]   with environment:
[    7.364237]     HOME=/
[    7.366582]     TERM=linux
[    7.503614] init: Console is alive
[    7.507093] init: - watchdog -
[    7.513552] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.524658] usbcore: registered new interface driver usbfs
[    7.530166] usbcore: registered new interface driver hub
[    7.535526] usbcore: registered new device driver usb
[    7.541053] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    7.552811] xhci-mtk 11200000.usb: xHCI Host Controller
[    7.558044] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    7.568504] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000200010
[    7.577653] xhci-mtk 11200000.usb: irq 127, io mem 0x11200000
[    7.583487] xhci-mtk 11200000.usb: xHCI Host Controller
[    7.588697] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    7.596080] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    7.603415] hub 1-0:1.0: USB hub found
[    7.607166] hub 1-0:1.0: 2 ports detected
[    7.611402] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    7.619718] hub 2-0:1.0: USB hub found
[    7.623496] hub 2-0:1.0: 1 port detected
[    7.632024] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.641838] init: - preinit -
[    7.717467] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    7.725952] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control off
[    7.741628] ubi1: default fastmap pool size: 8
[    7.746167] ubi1: default fastmap WL pool size: 4
[    7.750857] ubi1: attaching mtd5
[    7.754077] ubi1: MTD device 5 is write-protected, attach in read-only mode
[    7.788290] ubi1: scanning is finished
[    7.796892] ubi1 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 8, need 20
[    7.892632] ubi1: attached mtd5 (name "tp_data", size 8 MiB)
[    7.898284] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.905153] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.911920] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.918865] ubi1: good PEBs: 64, bad PEBs: 0, corrupted PEBs: 0
[    7.924769] ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
[    7.931969] ubi1: max/mean erase counter: 6/3, WL threshold: 4096, image sequence number: 1772660190
[    7.941079] ubi1: available PEBs: 0, total reserved PEBs: 64, PEBs reserved for bad PEB handling: 8
[    7.950108] ubi1: background thread "ubi_bgt1d" started, PID 734
[    7.953566] UBIFS (ubi1:0): read-only UBI device
[    7.961172] UBIFS (ubi1:0): Mounting in unauthenticated mode
[    7.993061] UBIFS (ubi1:0): recovery needed
[    8.036236] UBIFS (ubi1:0): recovery deferred
[    8.040635] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "tp_data", R/O mode
[    8.048972] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    8.058870] UBIFS (ubi1:0): FS size: 5079040 bytes (4 MiB, 40 LEBs), max 50 LEBs, journal size 1015809 bytes (0 MiB, 6 LEBs)
[    8.070062] UBIFS (ubi1:0): reserved for root: 239895 bytes (234 KiB)
[    8.076487] UBIFS (ubi1:0): media format: w5/r0 (latest is w5/r0), UUID FEC1FDB3-1F31-4B05-96C0-29A0E7672350, small LPT model
[    8.162412] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[    8.175744] mt7530-mdio mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   12.418513] mt7530-mdio mdio-bus:1f lan1: Link is Down
[   12.427440] procd: - early -
[   12.430356] procd: - watchdog -
[   12.945650] procd: - watchdog -
[   12.948905] procd: - ubus -
[   13.002388] procd: - init -
Please press Enter to activate this console.
[   13.122148] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.134638] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[   13.147022] Loading modules backported from Linux version v6.18.26-0-g1fe060681
[   13.154342] Backport generated by backports.git 6ecbb44
[   13.275445] urngd: v1.0.2 started.
[   13.555858] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20240823160739a
[   13.571910] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20240823160804
[   13.611062] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20260515120626
[   18.702350] mt798x-wmac 18000000.wifi: Retry message 00000002 (seq 13)
[   23.742349] mt798x-wmac 18000000.wifi: Message 00000002 (seq 13) timeout
[   23.749039] mt798x-wmac 18000000.wifi: Failed to start WA firmware
[   23.749056] Unable to handle kernel write to read-only memory at virtual address 0000000000000008
[   23.764051] Mem abort info:
[   23.766829]   ESR = 0x0000000096000045
[   23.770561]   EC = 0x25: DABT (current EL), IL = 32 bits
[   23.775857]   SET = 0, FnV = 0
[   23.778896]   EA = 0, S1PTW = 0
[   23.782021]   FSC = 0x05: level 1 translation fault
[   23.786884] Data abort info:
[   23.789748]   ISV = 0, ISS = 0x00000045, ISS2 = 0x00000000
[   23.795216]   CM = 0, WnR = 1, TnD = 0, TagAccess = 0
[   23.800249]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[   23.805546] user pgtable: 4k pages, 39-bit VAs, pgdp=00000000450ea000
[   23.811967] [0000000000000008] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[   23.820650] Internal error: Oops: 0000000096000045 [#1]  SMP
[   23.826290] Modules linked in: mt7915e(O+) mt76_connac_lib(O) mt76(O) mac80211(O) cfg80211(O) slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 compat(O) crypto_safexcel sha1 seqiv md5 libmd5 geniv des_generic libdes authencesn authenc leds_gpio xhci_plat_hcd xhci_pci xhci_mtk_hcd xhci_hcd gpio_button_hotplug(O) usbcore usb_common
[   23.58944] CPU: 2 UID: 0 PID: 42 Comm: kworker/u16:1 Tainted: G           O        6.18.33 #0 NONE
[   23.868052] Tainted: [O]=OOT_MODULE
[   23.871524] Hardware name: TP-Link Archer AX80 v2 (EU) (DT)
[   23.877077] Workqueue: mt76 mt7915_mac_reset_work [mt7915e]
[   23.882645] pstate: a0400005 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   23.889585] pc : mt76_txq_schedule_pending+0x78/0x21c [mt76]
[   23.895231] lr : mt76_txq_schedule_all+0x18/0x60 [mt76]
[   23.900441] sp : ffffffc0811cbc20
[   23.903740] x29: ffffffc0811cbc20 x28: ffffffffffff6600 x27: ffffff8003be2060
[   23.910858] x26: ffffff8003be2090 x25: ffffffc0811cbc80 x24: ffffff8003be2060
[   23.917974] x23: ffffff8003be2078 x22: ffffff8003be51e0 x21: ffffffffffff2e50
[   23.925091] x20: ffffff8003be2088 x19: ffffff8003be2060 x18: ffffffffffff6400
[   23.932208] x17: 0000000000000000 x16: 0000000000000000 x15: 000001196c977fb6
[   23.939324] x14: 0000000000000000 x13: 0000000000000020 x12: 0101010101010101
[   23.946441] x11: 7f7f7f7f7f7f7f7f x10: fefefefefefefeff x9 : 7f7f7f7f7f7f7f7f
[   23.953558] x8 : 8080808080808080 x7 : 0000000080808080 x6 : fefefefefefefeff
[   23.960676] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
[   23.967792] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
[   23.974909] Call trace:
[   23.977341]  mt76_txq_schedule_pending+0x78/0x21c [mt76] (P)
[   23.982985]  mt76_txq_schedule_all+0x18/0x60 [mt76]
[   23.987849]  mt7915_mac_reset_work+0xbdc/0xdc8 [mt7915e]
[   23.993148]  process_one_work+0x174/0x300
[   23.997145]  worker_thread+0x1ac/0x350
[   24.000879]  kthread+0xe4/0x1ac
[   24.004009]  ret_from_fork+0x10/0x20
[   24.007574] Code: f9401b00 eb00035f 54000120 a9430702 (f9000459)
[   24.013646] ---[ end trace 0000000000000000 ]---
[   24.020934] pstore: backend (ramoops) writing error (-28)
[   24.026315] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[   24.033168] SMP: stopping secondary CPUs
[   24.037078] Kernel Offset: disabled
[   24.040549] CPU features: 0x000000,00000000,00000001,0400400b
[   24.046276] Memory Limit: none
[   24.051909] Rebooting in 1 seconds.. 

Edit: Also i saw the UART conflicting with wifi post, i tried multiple times to bootm withour UART connection, tried "sleep 60; bootm". And yeah UART can conflict with this router, cause even OEM sometimes boots with broken wifi if UART is connected.

@asher1001 What serial adapter do you have? If something strange happens when serial is attached it is most likely the fault of bad serial adapter or settings. With original FTDI I never had an issue, and I used it on 20+ different routers.

My unit should arrive Wednesday or Thursday, hopefully it is an AX80 EU V2. Then I'm going to inspect it closely. Once I have a build ready it will be easier to debug things on your unit, as I can add debug code if necessary.

BTW, this is not going to work, if there is no mac at offset 4 in MT7986_EEPROM.bin:

elif [ -f "/tmp/tp_data/MT7986_EEPROM.bin" ]; then
			addr=$(get_mac_binary "/tmp/tp_data/MT7986_EEPROM.bin" 4)
		else
			# Fallback if both flash structures are missing
			addr="20:e1:5d:02:3c:22"
		fi

As /tmp/tp_data/MT7986_EEPROM.bin exists on your unit, thus it will read from it, if there is no mac at offset 4 addr will be empty like before

Just do this:

if [ -f "/tmp/tp_data/default-mac" ]; then
		addr=$(get_mac_binary "/tmp/tp_data/default-mac" 0)
else
		# Fallback 
		addr="20:e1:5d:02:3c:22"
fi

Usually a fallback would be using an existing mac, from the lan if, but for simplicity to check if this fixes your boot do it the easy way.

I bought a cheap USB-TTL-UART adapter based on CH340G chip.
(It's my first time flashing OWRT, before i meddled a bit in my ISP-provided, heavily modified OWRT router)


If you think it screws things over, could you recommend me something over this thing?

I really think that it used a fallback either way, but why not, i'll check it after work.

From the issue above:

Chipsets that have been used successfully:

  • Silicon Labs CP210x
  • FTDI FT232
  • Other WinChipHead CH340 (non-G) devices

USB-to-serial chipsets known to cause this include:

  • Prolific PL2303
  • WinChipHead CH340G

(Mine is Olimex BB-CH340T, used it only with this router)

I have these two:

https://ftdichip.com/products/ttl-232r-3v3/
https://ftdichip.com/products/ttl-232r-3v3-aj/

On my main routers I usually attach a 3.5 audio jack to the serial connector of the router, then I just have to open the case once :grinning_face:

FYI. I received my AX80 EU V2 today. Opening up was indeed difficult, but managed to do it without a scratch. Serial is hooked up.

@pheegoog, did your unit come with the header pins? At least on mine I had to solder a header to it.

I already created the build, but will flash after some break.

No, I've soldered myself

OK, flashed as described in the pr and worked like a charm:

BTW, on mine default-mac is there:

ls /tmp/tp_data/
MT7986_BTNFLAG.bin  default-mac         pin
MT7986_EEPROM.bin   device-id           product-info

@asher1001, your output of the HW/SW version looks wrong, have you updated the firmware prior flashing?

[   12.556344] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20260515120518a 
[   12.694592] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20260515120536 
[   12.778071] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20260515120626 
[   12.924527] mt798x-wmac 18000000.wifi: eeprom load fail, use default bin 
[   12.931274] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7986_eeprom_mt7975_dual.bin failed with error -2 
[   12.942383] mt798x-wmac 18000000.wifi: Falling back to sysfs fallback for: mediatek/mt7986_eeprom_mt7975_dual.bin 
[   13.012438] PPP generic driver version 2.4.2

@pheegoog, I just checked the leds on mine, seems like internet,wifi leds not working, do they work on your unit? Maybe there is some driver missing in the defaults for this unit.

Update: Found the problem, in /etc/board.d/01_leds definitions for the other leds are missing:

ucidef_set_led_netdev "wan" "WAN" "white:wan-online" "eth1" "link tx rx" 
ucidef_set_led_netdev "wlan2g" "WLAN2G" "white:wlan-2ghz" "phy0.0-ap0" 
ucidef_set_led_netdev "wlan5g" "WLAN5G" "white:wlan-5ghz" "phy1.0-ap0"

But not a dealbreaker, as they can be set via webif.

FYI: While I was playing a bit more with the AX80. I had a problem with the wifi driver:

[   12.265524] mt798x-wmac 18000000.wifi: Failed to get patch semaphore 
[   12.271928] mt798x-wmac 18000000.wifi: probe with driver mt798x-wmac failed with error -11

I was not able to get wifi into working state again with the trunk build. I powered down let it sit, no chance.
Maybe it would have worked again if it cooled down for half an hour, but a few minutes did nothing.

So I just merged the changes to the 25.12 build I have been using on my Asus AX4200 with kernel 6.12.
Flashed it and wifi was back.

IMHO there is some bug in master that affects this device.

@asher1001 , if you want to test just flash via webif: 25.12 AX80 V2

It's a nice thing to have out-of-box. But I am not sure if it is ok to include something into the current pr as it it in the process of being merged

Is it possible to check snapshot on this router to confirm the issue?

No, i havent updated anything prior to flashing, it came with 1.2.0 firmware.

I'll try it today, thanks.

Would be possible, but it may be device specific. The AX4200 also has some strange issue. It happened to me twice, after reboot, ethernet was dead. In this case I always have to power it down for a few minutes. That's why I was looking for another MT7986. Usually these kind of issues come from missing register resets. Then if power is removed it takes a while until capacitors are drained.

For the AX80 It makes sense to go through TP-Link firmware and check if there is anything special in that regard.

Failed to get patch semaphore

Could be a timing issue, depending on what features have been included in kernel, e.g. modules and in what order they get loaded. An the AX4200 you don't have to mount tp_data partition, so startup is a bit different. But I did not really try to dissect this, and just quickly switched to the 25.12 build, I wasn't sure if the unit had some failure.

I don't think this should not block the PR though. Once more people can play with it we get more feedback.

@pheegoog, does your usb port work? I just noticed, at least on my 25.12 build, usb is not working. The hub ist listed in dmesg, but there is no power on the port.

No. I've tried to insert usb drive with not luck, read that it requires some modules and drivers to be installed. And decided to think about it later.

@pheegoog I found the problem, you need to add usb_power definition right after the reg_5v:

reg_5v: regulator-5v {
	compatible = "regulator-fixed";
	regulator-name = "fixed-5V";
	regulator-min-microvolt = <5000000>;
	regulator-max-microvolt = <5000000>;
	regulator-boot-on;
	regulator-always-on;
};

usb_power: usb-power {
	compatible = "gpio-leds";
	usb_vbus {
		label = "usb_vbus";
		gpios = <&pio 13 GPIO_ACTIVE_HIGH>;
		default-state = "on";
	};
};

USB is now working, as I suspected power for the usb was not activated.