UniFi 6 LR v2 ethernet not working

I've bought a new 6 LR v2 on which OpenWrt and OpenWrt's U-Boot can't initialize ethernet. dmesg says:

[    9.436534] mtk_soc_eth 1b100000.ethernet eth0: validation of  with support 0000000,00000000,00006000 and advertisement 0000000,00000000,00000000 failed: -22
[    9.450806] mtk_soc_eth 1b100000.ethernet eth0: mtk_open: could not attach PHY: -22

Stock firmwares v6.0.21 and v6.2.44 work fine. I've tested every possible combination: stock bootloader + OpenWrt 22.03/snapshot, OpenWrt's U-Boot + 22.03/snapshot. Stock bootloader and firmware initialize eth just fine.

I'm using Ubiquity's U-POE-AT-EU power supply.

I checked out stock dmesg and nothing stands out that would indicate that I've got some kind of new HW revision:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.198 (builder@owrt1505-builder) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3979-2252731af4) ) #0 SMP Thu Aug 30 12:10:54 2018
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Memory limited to 495MB
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] PERCPU: Embedded 18 pages/cpu @ffffffc01ef86000 s34944 r8192 d30592 u73728
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 124911
[    0.000000] Kernel command line: ubootver= ramoops.mem_address=0x5efe0000 ramoops.mem_size=131072 ramoops.ecc=1 ramoops.record_size=32768 console=ttyS0,115200n1 mem=507775K ubntbootid=0
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] software IO TLB: mapped [mem 0x58f3f000-0x5cf3f000] (64MB)
[    0.000000] Memory: 369460K/507580K available (4960K kernel code, 396K rwdata, 1564K rodata, 47268K init, 379K bss, 138120K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000   (   246 GB)
[    0.000000]       .init : 0xffffff80086e3000 - 0xffffff800b50c000   ( 47268 KB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008559000   (  4964 KB)
[    0.000000]     .rodata : 0xffffff8008559000 - 0xffffff80086e3000   (  1576 KB)
[    0.000000]       .data : 0xffffff800b50c000 - 0xffffff800b56f3f8   (   397 KB)
[    0.000000]     vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000   (     8 GB maximum)
[    0.000000]               0xffffffbdc0000000 - 0xffffffbdc07bf7c0   (     7 MB actual)
[    0.000000]     fixed   : 0xffffffbffe7fb000 - 0xffffffbffec00000   (  4116 KB)
[    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc01efdf000   (   495 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 64.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] Architected cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.000055] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126102035 ns
[    0.000216] Console: colour dummy device 80x25
[    0.000232] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[    0.000239] pid_max: default: 32768 minimum: 301
[    0.000288] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    0.000293] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    0.000787] sched-energy: CPU device node has no sched-energy-costs
[    0.000793] Invalid sched_group_energy for CPU0
[    0.000797] CPU0: update cpu_capacity 1024
[    0.000823] ASID allocator initialised with 32768 entries
[    0.001621] Detected VIPT I-cache on CPU1
[    0.001651] Invalid sched_group_energy for CPU1
[    0.001653] CPU1: update cpu_capacity 1024
[    0.001655] CPU1: Booted secondary processor [410fd034]
[    0.001693] Brought up 2 CPUs
[    0.001704] SMP: Total of 2 processors activated.
[    0.001710] CPU features: detected feature: 32-bit EL0 Support
[    0.001716] CPU: All CPU(s) started at EL2
[    0.001727] alternatives: patching kernel code
[    0.001798] Invalid sched_group_energy for CPU1
[    0.001803] Invalid sched_group_energy for Cluster1
[    0.001806] Invalid sched_group_energy for CPU0
[    0.001810] Invalid sched_group_energy for Cluster0
[    0.005818] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.005844] futex hash table entries: 512 (order: 4, 65536 bytes)
[    0.005961] pinctrl core: initialized pinctrl subsystem
[    0.006500] NET: Registered protocol family 16
[    0.006610] ramoops: using module parameters
[    0.006950] pstore: Registered ramoops as persistent store backend
[    0.006955] ramoops: attached 0x20000@0x5efe0000, ecc: 16/0
[    0.007357] [SPM] spm_base = ffffff800802c000
[    0.007361] [SPM] spm_irq_0 = 6, spm_irq_1 = 7
[    0.007365] [SPM] spm_irq_2 = 8, spm_irq_3 = 9
[    0.007367] [SPM] set spm as wakeup devcie.
[    0.007373] [SPM] spm_rtc cnt: 24414.
[    0.016007] cpuidle: using governor menu
[    0.016065] vdso: 2 pages (1 code @ ffffff800855f000, 1 data @ ffffff800b510000)
[    0.016202] DMA: preallocated 256 KiB pool for atomic allocations
[    0.016288] Serial: AMBA PL011 UART driver
[    0.016338] [SPM] PWAKE_EN:1, PCMWDT_EN:0, BYPASS_SYSPWREQ:0, I2C_CHANNEL:2
[    0.016343] [SLP] SLEEP_DPIDLE_EN:1, REPLACE_DEF_WAKESRC:0, SUSPEND_LOG_EN:1
[    0.037859] vgaarb: loaded
[    0.038032] SCSI subsystem initialized
[    0.038654] lo: assigned ifindex: 1
[    0.039791] rbus 18000000.wbsys: PCI host bridge to bus 0000:00
[    0.039805] pci_bus 0000:00: root bus resource [mem 0x18000000-0x180fffff]
[    0.039812] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.039905] pci 0000:00:00.0: of_irq_parse_pci() failed with rc=-22
[    0.040292] clocksource: Switched to clocksource arch_sys_counter
[    0.044887] NET: Registered protocol family 2
[    0.045217] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.045250] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[    0.045306] TCP: Hash tables configured (established 4096 bind 4096)
[    0.045348] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.045362] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.045460] NET: Registered protocol family 1
[    0.142119] No memory allocated for crashlog
[    0.148374] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.148561] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.149008] fuse init (API version 7.23)
[    0.149651] io scheduler noop registered
[    0.149833] io scheduler cfq registered (default)
[    0.217095] mtk-pcie 1a143000.pcie: pcie rc 0 linkup success
[    0.217239] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0001:00
[    0.217250] pci_bus 0001:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.217256] pci_bus 0001:00: root bus resource [mem 0x20000000-0x27ffffff]
[    0.217264] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.217471] pci 0001:00:00.0: of_irq_parse_pci() failed with rc=-22
[    0.217590] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.224402] pci 0001:00:00.0: BAR 0: no space for [mem size 0xffffffff 64bit pref]
[    0.224409] pci 0001:00:00.0: BAR 0: failed to assign [mem size 0xffffffff 64bit pref]
[    0.224415] pci 0001:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    0.224424] pci 0001:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit pref]
[    0.224515] pci 0001:01:00.0: BAR 2: assigned [mem 0x20100000-0x20103fff 64bit pref]
[    0.224606] pci 0001:01:00.0: BAR 4: assigned [mem 0x20104000-0x20104fff 64bit pref]
[    0.224695] pci 0001:00:00.0: PCI bridge to [bus 01]
[    0.224706] pci 0001:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    0.224761] pcieport 0001:00:00.0: of_irq_parse_pci() failed with rc=-22
[    0.224776] pcieport 0001:00:00.0: enabling device (0000 -> 0002)
[    0.224947] pcieport 0001:00:00.0: Signaling PME through PCIe PME interrupt
[    0.224953] pci 0001:01:00.0: Signaling PME through PCIe PME interrupt
[    0.228798] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.229996] console [ttyS0] disabled
[    0.250158] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 232, base_baud = 1562500) is a ST16650V2
[    0.988555] console [ttyS0] enabled
[    1.012598] 11005000.serial: ttyS1 at MMIO 0x11005000 (irq = 233, base_baud = 1562500) is a ST16650V2
[    1.022561] Unable to detect cache hierarchy for CPU 0
[    1.030630] loop: module loaded
[    1.034269] dump_power_table[0] = { .cpufreq_khz = 1350000,	.cpufreq_ncpu = 2,	.cpufreq_power = 995 }
[    1.043500] dump_power_table[1] = { .cpufreq_khz = 1262500,	.cpufreq_ncpu = 2,	.cpufreq_power = 811 }
[    1.052723] dump_power_table[2] = { .cpufreq_khz = 1137500,	.cpufreq_ncpu = 2,	.cpufreq_power = 736 }
[    1.061948] dump_power_table[3] = { .cpufreq_khz = 1025000,	.cpufreq_ncpu = 2,	.cpufreq_power = 624 }
[    1.071170] dump_power_table[4] = { .cpufreq_khz = 1350000,	.cpufreq_ncpu = 1,	.cpufreq_power = 517 }
[    1.080393] dump_power_table[5] = { .cpufreq_khz = 812500,	.cpufreq_ncpu = 2,	.cpufreq_power = 492 }
[    1.089526] dump_power_table[6] = { .cpufreq_khz = 1262500,	.cpufreq_ncpu = 1,	.cpufreq_power = 377 }
[    1.098739] dump_power_table[7] = { .cpufreq_khz = 600000,	.cpufreq_ncpu = 2,	.cpufreq_power = 376 }
[    1.107866] dump_power_table[8] = { .cpufreq_khz = 1137500,	.cpufreq_ncpu = 1,	.cpufreq_power = 333 }
[    1.117078] dump_power_table[9] = { .cpufreq_khz = 437500,	.cpufreq_ncpu = 2,	.cpufreq_power = 295 }
[    1.126203] dump_power_table[10] = { .cpufreq_khz = 1025000,	.cpufreq_ncpu = 1,	.cpufreq_power = 258 }
[    1.135502] dump_power_table[11] = { .cpufreq_khz = 300000,	.cpufreq_ncpu = 2,	.cpufreq_power = 225 }
[    1.144715] dump_power_table[12] = { .cpufreq_khz = 812500,	.cpufreq_ncpu = 1,	.cpufreq_power = 204 }
[    1.153930] dump_power_table[13] = { .cpufreq_khz = 600000,	.cpufreq_ncpu = 1,	.cpufreq_power = 166 }
[    1.163143] dump_power_table[14] = { .cpufreq_khz = 437500,	.cpufreq_ncpu = 1,	.cpufreq_power = 140 }
[    1.172355] dump_power_table[15] = { .cpufreq_khz = 300000,	.cpufreq_ncpu = 1,	.cpufreq_power = 119 }
[    1.182692] [cal] calefuse1	= 0x7d64ab40
[    1.186620] [cal] calefuse2	= 0x38c010
[    1.190363] [cal] g_adc_ge_t	= 0x24a
[    1.193932] [cal] g_adc_oe_t	= 0x1f5
[    1.197500] [cal] g_degc_cali	= 0x2d
[    1.201069] [cal] g_adc_cali_en_t	= 0x1
[    1.204898] [cal] g_o_slope	= 0x0
[    1.208202] [cal] g_o_slope_sign	= 0x0
[    1.211944] [cal] g_id		= 0x0
[    1.214905] [cal] g_o_vtsmcu1	= 0x0
[    1.218387] [cal] g_o_vtsmcu2	= 0xe3
[    1.221956] [cal] g_o_vtsmcu3	= 0x0
[    1.225437] [cal] g_o_vtsmcu4	= 0x0
[    1.228920] [cal] g_ge		= 0xb4
[    1.231963] [cal] g_gain		= 0x27c4
[    1.235358] [cal] g_x_roomt1	= 0x1f50
[    1.242727] mtk-nor 11014000.spi: w25q512 (65536 Kbytes)
[    1.248218] 10 ofpart partitions found on MTD device mtk_nor
[    1.253942] Creating 10 MTD partitions on "mtk_nor":
[    1.258907] 0x000000000000-0x000000040000 : "Preloader"
[    1.264681] 0x000000040000-0x000000060000 : "ATF"
[    1.269967] 0x000000060000-0x0000000c0000 : "u-boot"
[    1.275367] 0x0000000c0000-0x0000000d0000 : "u-boot-env"
[    1.281115] 0x0000000d0000-0x000000110000 : "Factory"
[    1.286612] 0x000000110000-0x000000120000 : "EEPROM"
[    1.292024] 0x000000120000-0x000000130000 : "bs"
[    1.297090] 0x000000130000-0x000000230000 : "cfg"
[    1.302233] 0x000000230000-0x000002110000 : "kernel0"
[    1.307730] 0x000002110000-0x000003ff0000 : "kernel1"
[    1.313802] libphy: Fixed MDIO Bus: probed
[    1.318385] mtk_sgmii_init(): detect RTL8211_CARD
[    1.356905] libphy: mdio: probed
[    1.361260] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at mdio-bus:00 [uid=001cc916, driver=Generic PHY]
[    1.371854] eth0: assigned ifindex: 2
[    1.375808] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffff800b680000, irq 250
[    1.385038] i2c /dev entries driver
[    1.390386] MTK_WDT_NONRST_REG(20000000)
[    1.394488] mtk-wdt 10212000.watchdog: register restart_handler on reboot_notifier_list for psci reset
[    1.403796] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.411742] register cpuidle driver!!!!!!!!!!!!!!!!!
[    2.360499] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gdm1_to_gmac1_esw updated = 1
[    2.369634] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[    2.378415] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[    2.386853] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 1
[    2.396764] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[    3.416362] iio iio:device0: failed to read Who-Am-I register.
[    3.422208] st-accel-i2c: probe of 1-0018 failed with error -110
[    3.429721] nf_conntrack version 0.5.0 (2886 buckets, 11544 max)
[    3.436527] NET: Registered protocol family 10
[    3.441539] sit: IPv6 over IPv4 tunneling driver
[    3.446197] sit0: assigned ifindex: 3
[    3.450218] NET: Registered protocol family 17
[    3.454694] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.467301] 8021q: 802.1Q VLAN Support v1.8
[    3.471872] registered taskstats version 1
[    3.476453] rtl8367s_hw_reset(): RTL8211_CARD reset...
[    3.983271] [rtl8367s_swconfig_init]
[    3.986972] [SPM] pwrap node has not register regmap
[    3.992393] regulator regulator.3: info->modeset_reg 0xc = 0x181c32a2
[    3.999982] regulator regulator.3: info->modeset_reg 0xc = 0x101c32a2
[    4.032669] Freeing unused kernel memory: 47268K
[    4.037318] This architecture does not have kernel memory protection.
[    4.049547] init: Console is alive
[    4.053052] init: - watchdog -
[    4.061389] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.071000] usbcore: registered new interface driver usbfs
[    4.076556] usbcore: registered new interface driver hub
[    4.081920] usbcore: registered new device driver usb
[    4.087990] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    4.094848] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.106776] init: - preinit -
[    4.137053] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
/etc/rc.common: /etc/init.d/dropbear: line 13: extra_command: not found
[    4.292204] ramoops: pstore: pstore_read bprz type: -64 count 1 id ffffff800822b164
[    4.305865] ubnt_common: module license 'Proprietary' taints kernel.
[    4.312264] Disabling lock debugging due to kernel taint
[    4.318597] [UBNT_STA_HT] Initialize hash table
[    4.318712] random: procd: uninitialized urandom read (4 bytes read, 5 bits of entropy available)
[    4.332055] [UBNT_STA_HT] done
[    4.335114] creating /proc/ubnt_peek/
[    4.338784] creating /proc/ubnt_peek/peek_disable
[    4.343491] creating /proc/ubnt_peek/loop_check
[    4.348021] creating /proc/ubnt_peek/loop_debug
[    4.352550] creating /proc/ubnt_peek/loop_uif
[    4.356906] creating /proc/ubnt_peek/tcp_debug_mac
[    4.361694] creating /proc/ubnt_peek/tcp_debug_connections
[    4.367184] qos: registered
[    4.369977] creating /proc/ubnt_frame_id/
[    4.373985] creating /proc/ubnt_frame_id/netdevs
[    4.378620] ubnt_nfbypass: registered
[    4.382278] creating /proc/nfbypass/
[    4.385852] creating /proc/nfbypass/netdevs
[    4.390036] creating /proc/ui_bandsteer/
[    4.419764] ubnthal: Ubiquiti U6-LR
[    4.424055] Registering char device sflash (200) succeeds
[    4.463076] register mt_soc_drv
[    4.468608] 
[    4.468608] == pAd = ffffff800bd01000, size = 4062464, Status=0 ==
[    4.476273] AP Driver version-5.0.5.2
[    4.479945] read sub id = 1
[    4.482739] Use 1st iPAiLNA default bin.
[    4.486660] Use 1st /etc_ro/wlan/MT7622_EEPROM.bin default bin.
[    4.492586] <--mt7622_init()
[    4.496118] <-- RTMPAllocTxRxRingMemory, Status=0
[    4.501057] wevent: registered
[    4.504123] 80211> RFICType= 3, NumOfChan= 48
[    4.508517] 80211> Number of rate = 12
[    4.512259] 80211> CurTxPower = 0 dBm
[    4.515922] 80211> TxStream = 1
[    4.519309] 80211> CFG80211_Register
[    4.522888] ra0: VLAN features updated vwire/vport[0]!
[    4.528029] ra0: assigned ifindex: 4
[    4.532090] register mt_soc_drv
[    4.705300] register mt_drv
[    4.805522] mt_drv 0001:01:00.0: enabling device (0000 -> 0002)
[    4.816125] 
[    4.816125] 
[    4.816125] === pAd = ffffff800cd01000, size = 10171776 ===
[    4.816125] 
[    4.826663] <-- RTMPAllocAdapterBlock, Status=0
[    4.831198] PCI CSRBaseAddress =0xffffff800cc00000, csr_addr=0xffffff800cc00000!
[    4.838607] RTMPInitPCIeDevice():device_id=0x7915
[    4.843670] mt7915_init()-->
[    4.846572] Use 1st iPAiLNA default bin.
[    4.850590] <--mt7915_init()
[    4.853883] wevent: registered
[    4.857353] Rx[0] Ring: total 24576 bytes allocated
[    4.862349] Rx[1] Ring: total 24576 bytes allocated
[    4.867825] Rx[2] Ring: total 8192 bytes allocated
[    4.873534] Rx[3] Ring: total 16384 bytes allocated
[    4.878927] Rx[4] Ring: total 8192 bytes allocated
[    4.883766] <-- pci_alloc_tx_rx_ring_mem, Status=0
[    4.888595] 80211> RFICType= 3, NumOfChan= 48
[    4.892960] 80211> Number of rate = 12
[    4.896711] 80211> CurTxPower = 0 dBm
[    4.900376] 80211> TxStream = 4
[    4.903769] 80211> CFG80211_Register
[    4.907353] rai0: VLAN features updated vwire/vport[0]!
[    4.912580] rai0: assigned ifindex: 5
[    5.804186] sh (755): drop_caches: 1
[    6.541383] procd: - early -
[    6.544310] procd: - watchdog -
[    7.125743] procd: - watchdog -
[    7.129007] procd: - ubus -
[    7.133531] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.181419] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.190474] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.199446] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.208473] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.217446] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.226452] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.235457] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    7.244524] procd: - init -
Please press Enter to activate this console.
[    7.259375] reset-handler[1357]: [error] reset-handler.reset_handler_main(): Failed to register reset listener, error -5
[    7.283135] kmodloader: loading kernel modules from /etc/modules.d.sysinit/*
[    7.291005] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.372355] kmodloader: failed to load nf_nat_ipv6
[    7.378567] Bridge firewalling registered
[    7.385539] Ebtables v2.0 registered
[    7.389733] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.433465] Netfilter messages via NETLINK v0.30.
[    7.440792] xt_time: kernel timezone is -0000
[    7.446967] ip_set: protocol 6
[    7.452558] kmodloader: 2 modules could not be probed
[    7.457695] kmodloader: dependency not loaded nf_nat_ipv6
[    7.463150] kmodloader: - ip6table_nat - 1
[    7.467267] kmodloader: - nf_nat_ipv6 - 0
[    7.476895] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.499628] hidraw: raw HID events driver (C) Jiri Kosina
[    7.508464] u32 classifier
[    7.511170]     input device check on
[    7.514854]     Actions configured
[    7.518939] Mirror/redirect action on
[    7.527299] Bluetooth: Core ver 2.21
[    7.530946] NET: Registered protocol family 31
[    7.535396] Bluetooth: HCI device and connection manager initialized
[    7.541756] Bluetooth: HCI socket layer initialized
[    7.546636] Bluetooth: L2CAP socket layer initialized
[    7.551698] Bluetooth: SCO socket layer initialized
[    7.557464] [btmtk_info] main_driver_init, BTMTK uart version: 7.0.20120401
[    7.564460] [btmtk_info] btmtk_cif_register
[    7.568648] [btmtk_info] uart_register
[    7.572395] [btmtk_info] uart_register done
[    7.576574] [btmtk_info] btmtk_cif_register: Done
[    7.581275] [btmtk_info] btmtk_fops_init: Start
[    7.585802] [btmtk_info] btmtk_fops_init: g_fwlog init
[    7.591048] Bluetooth: btmtk_fops_init: BT_majorfwlog 249, devIDfwlog 261095424
[    7.598358] [btmtk_info] main_driver_init: Done
[    7.603019] kmodloader: done loading kernel modules from /etc/modules.d/*
[    7.634993] random: jshn: uninitialized urandom read (4 bytes read, 15 bits of entropy available)

Pinging @daniel as he's the author of the support for this device. Any ideas what's happening? Is it possible that this is a new HW revision?

And this is OpenWrt snapshot 2022-11-03 (separate post due to character limit):

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.76 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.3.0 r21170-6198eb3e64) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Nov 3 06:38:35 2022
[    0.000000] Machine model: Ubiquiti UniFi 6 LR v2
[    0.000000] Memory limited to 495MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005efdefff]
[    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-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000005efdefff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005efdefff]
[    0.000000] On node 0, zone DMA: 4129 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 17 pages/cpu s30040 r8192 d31400 u69632
[    0.000000] pcpu-alloc: s30040 r8192 d31400 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 124959
[    0.000000] Kernel command line: ubootver= ramoops.mem_address=0x5efe0000 ramoops.mem_size=131072 ramoops.ecc=1 ramoops.record_size=32768 console=ttyS0,115200n1 mem=507775K ubntbootid=0
[    0.000000] Unknown kernel command line parameters "ubootver= ubntbootid=0", will be passed to user space.
[    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] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 484956K/507772K available (8384K kernel code, 902K rwdata, 2216K rodata, 384K init, 305K bss, 22816K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000000] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.000189] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.000200] pid_max: default: 32768 minimum: 301
[    0.000295] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.000306] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.001419] rcu: Hierarchical SRCU implementation.
[    0.001524] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.001734] smp: Bringing up secondary CPUs ...
[    0.002077] Detected VIPT I-cache on CPU1
[    0.002123] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.002186] smp: Brought up 1 node, 2 CPUs
[    0.002196] SMP: Total of 2 processors activated.
[    0.002201] CPU features: detected: 32-bit EL0 Support
[    0.002205] CPU features: detected: CRC32 instructions
[    0.002299] CPU: All CPU(s) started at EL2
[    0.002311] alternatives: patching kernel code
[    0.005494] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005518] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.005623] pinctrl core: initialized pinctrl subsystem
[    0.006353] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.006606] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.006638] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.006664] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.006706] ramoops: using module parameters
[    0.006835] ramoops: uncorrectable error in header
[    0.006912] ramoops: uncorrectable error in header
[    0.006970] ramoops: uncorrectable error in header
[    0.007036] ramoops: uncorrectable error in header
[    0.007117] ramoops: uncorrectable error in header
[    0.007189] ramoops: uncorrectable error in header
[    0.007269] ramoops: uncorrectable error in header
[    0.012754] printk: console [ramoops-1] enabled
[    0.012854] pstore: Registered ramoops as persistent store backend
[    0.012954] ramoops: using 0x20000@0x5efe0000, ecc: 16
[    0.013195] thermal_sys: Registered thermal governor 'fair_share'
[    0.013199] thermal_sys: Registered thermal governor 'bang_bang'
[    0.013298] thermal_sys: Registered thermal governor 'step_wise'
[    0.013352] thermal_sys: Registered thermal governor 'user_space'
[    0.013635] ASID allocator initialised with 65536 entries
[    0.013996] ramoops: already initialized
[    0.014051] ramoops: probe of 42ff0000.ramoops failed with error -22
[    0.032110] cryptd: max_cpu_qlen set to 1000
[    0.034304] SCSI subsystem initialized
[    0.034512] libata version 3.00 loaded.
[    0.035503] clocksource: Switched to clocksource arch_sys_counter
[    0.035989] NET: Registered PF_INET protocol family
[    0.036180] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.036657] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.036722] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.036824] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.036948] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.037053] TCP: Hash tables configured (established 4096 bind 4096)
[    0.037206] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.037274] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.037464] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.037579] PCI: CLS 0 bytes, default 64
[    0.040020] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.042774] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.042886] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.074535] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.078209] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.092499] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.094445] printk: console [ttyS0] disabled
[    0.114734] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 124, base_baud = 1562500) is a ST16650V2
[    0.763446] printk: console [ttyS0] enabled
[    0.788428] 11005000.serial: ttyS1 at MMIO 0x11005000 (irq = 125, base_baud = 1562500) is a ST16650V2
[    0.798676] mtk_rng 1020f000.rng: registered RNG driver
[    0.798843] random: crng init done
[    0.809977] loop: module loaded
[    0.813187] Loading iSCSI transport class v2.0-870.
[    0.818946] mtk-ecc 1100e000.ecc: probed
[    0.825438] spi-nor spi0.0: w25q512jv (65536 Kbytes)
[    0.830626] 10 fixed-partitions partitions found on MTD device spi0.0
[    0.837186] OF: Bad cell count for /spi@11014000/flash@0/partitions
[    0.843511] OF: Bad cell count for /spi@11014000/flash@0/partitions
[    0.850211] OF: Bad cell count for /spi@11014000/flash@0/partitions
[    0.856543] OF: Bad cell count for /spi@11014000/flash@0/partitions
[    0.863005] Creating 10 MTD partitions on "spi0.0":
[    0.867932] 0x000000000000-0x000000040000 : "preloader"
[    0.873651] 0x000000040000-0x000000060000 : "atf"
[    0.878816] 0x000000060000-0x0000000c0000 : "u-boot"
[    0.884145] 0x0000000c0000-0x0000000d0000 : "u-boot-env"
[    0.889781] 0x0000000d0000-0x000000110000 : "factory"
[    0.895160] 0x000000110000-0x000000120000 : "eeprom"
[    0.900447] 0x000000120000-0x000000130000 : "bs"
[    0.905347] 0x000000130000-0x000000230000 : "cfg"
[    0.910388] 0x000000230000-0x000002110000 : "firmware"
[    0.916093] 2 fit-fw partitions found on MTD device firmware
[    0.921844] Creating 2 MTD partitions on "firmware":
[    0.926864] 0x000000000000-0x0000003d0000 : "kernel"
[    0.932273] 0x0000003e0000-0x000001ee0000 : "rootfs"
[    0.937523] mtd: device 10 (rootfs) set to be root filesystem
[    0.943515] 1 squashfs-split partitions found on MTD device rootfs
[    0.949748] 0x000000870000-0x000001ee0000 : "rootfs_data"
[    0.955592] 0x000002110000-0x000003ff0000 : "kernel1"
[    1.129771] mtk-spi-nor 11014000.spi: spi frequency: 46666653 Hz
[    1.154042] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc009540000, irq 134
[    1.163826] i2c_dev: i2c /dev entries driver
[    1.169138] mtk-wdt 10212000.watchdog: IRQ index 0 not found
[    1.174972] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.184554] NET: Registered PF_INET6 protocol family
[    1.190475] Segment Routing with IPv6
[    1.194252] In-situ OAM (IOAM) with IPv6
[    1.198281] NET: Registered PF_PACKET protocol family
[    1.203404] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.216667] 8021q: 802.1Q VLAN Support v1.8
[    1.222060] pstore: Using crash dump compression: deflate
[    1.236981] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.243642] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.249580] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.403339] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.409647] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.415192] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.422185] pci_bus 0000:00: scanning bus
[    1.426452] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    1.432747] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.442674] pci_bus 0000:00: fixups for bus
[    1.446993] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.453753] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.461952] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.469152] pci_bus 0000:01: scanning bus
[    1.473426] pci 0000:01:00.0: [14c3:7915] type 00 class 0x000280
[    1.479676] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    1.487124] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[    1.494561] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[    1.502589] pci 0000:01:00.0: supports D1 D2
[    1.506974] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.513667] pci 0000:01:00.0: PME# disabled
[    1.518286] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.558585] pci_bus 0000:01: fixups for bus
[    1.562903] pci_bus 0000:01: bus scan returning with max=01
[    1.568729] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.575484] pci_bus 0000:00: bus scan returning with max=01
[    1.581338] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    1.589242] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    1.597398] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    1.604426] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit pref]
[    1.612506] pci 0000:01:00.0: BAR 2: assigned [mem 0x20100000-0x20103fff 64bit pref]
[    1.620495] pci 0000:01:00.0: BAR 4: assigned [mem 0x20104000-0x20104fff 64bit pref]
[    1.628576] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.633671] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    1.640906] pcieport 0000:00:00.0: assign IRQ: got 139
[    1.646307] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.652552] pcieport 0000:00:00.0: enabling bus mastering
[    1.658265] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x44dbd0c0
[    1.665945] pcieport 0000:00:00.0: PME: Signaling with IRQ 139
[    1.672176] pcieport 0000:00:00.0: saving config space at offset 0x0 (reading 0x325814c3)
[    1.680513] pcieport 0000:00:00.0: saving config space at offset 0x4 (reading 0x100006)
[    1.688765] pcieport 0000:00:00.0: saving config space at offset 0x8 (reading 0x6040000)
[    1.697099] pcieport 0000:00:00.0: saving config space at offset 0xc (reading 0x10000)
[    1.705245] pcieport 0000:00:00.0: saving config space at offset 0x10 (reading 0xc)
[    1.713045] pcieport 0000:00:00.0: saving config space at offset 0x14 (reading 0x0)
[    1.720942] pcieport 0000:00:00.0: saving config space at offset 0x18 (reading 0x40010100)
[    1.729450] pcieport 0000:00:00.0: saving config space at offset 0x1c (reading 0x4200000)
[    1.737775] pcieport 0000:00:00.0: saving config space at offset 0x20 (reading 0x20102000)
[    1.746283] pcieport 0000:00:00.0: saving config space at offset 0x24 (reading 0x0)
[    1.754165] pcieport 0000:00:00.0: saving config space at offset 0x28 (reading 0x0)
[    1.761958] pcieport 0000:00:00.0: saving config space at offset 0x2c (reading 0x0)
[    1.769854] pcieport 0000:00:00.0: saving config space at offset 0x30 (reading 0x0)
[    1.777751] pcieport 0000:00:00.0: saving config space at offset 0x34 (reading 0x50)
[    1.785740] pcieport 0000:00:00.0: saving config space at offset 0x38 (reading 0x0)
[    1.793521] pcieport 0000:00:00.0: saving config space at offset 0x3c (reading 0x2018b)
[    1.803101] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.857438] VFS: Mounted root (squashfs filesystem) readonly on device 31:10.
[    1.864795] Freeing unused kernel memory: 384K
[    1.905898] Run /sbin/init as init process
[    1.910223]   with arguments:
[    1.913303]     /sbin/init
[    1.916094]   with environment:
[    1.919359]     HOME=/
[    1.921781]     TERM=linux
[    1.924549]     ubootver=
[    1.927245]     ubntbootid=0
[    3.742803] init: Console is alive
[    3.746451] init: - watchdog -
[    6.917861] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.355231] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.363532] init: - preinit -
[    9.436534] mtk_soc_eth 1b100000.ethernet eth0: validation of  with support 0000000,00000000,00006000 and advertisement 0000000,00000000,00000000 failed: -22
[    9.450806] mtk_soc_eth 1b100000.ethernet eth0: mtk_open: could not attach PHY: -22
ip: SIOCSIFFLAGS: Invalid argument
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
[   11.799133] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.806548] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[   11.817650] urandom-seed: Seed file not found (/etc/urandom.seed)
[   12.217265] procd: - early -
[   12.220305] procd: - watchdog -
[   13.024895] procd: - watchdog -
[   13.574762] procd: - ubus -
[   14.009754] procd: - init -
Please press Enter to activate this console.
[   15.572779] urngd: v1.0.2 started.
[   15.616913] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.054054] Loading modules backported from Linux version v5.15.74-0-ga3f2f5ac9d61
[   16.061744] Backport generated by backports.git v5.15.74-1-0-ge2d78967
[   16.170239] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   16.182999] mt7915e 0000:01:00.0: assign IRQ: got 139
[   16.188256] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[   16.194383] mt7915e 0000:01:00.0: enabling bus mastering
[   16.315648] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x44dbd0c0
[   17.121296] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[   17.121296] 
[   17.488112] mt7915e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20211222184017a
[   17.488112] 
[   19.014745] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[   20.436630] mt7915e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20211222184052
[   21.068592] mt7915e 0000:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20211222184111
[   21.553520] PPP generic driver version 2.4.2
[   21.560153] NET: Registered PF_PPPOX protocol family
[   21.568986] kmodloader: done loading kernel modules from /etc/modules.d/*
[   34.379353] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   34.395712] jffs2_build_filesystem(): unlocking the mtd device... 
[   34.396918] done.
[   34.405108] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   34.624329] mtk_soc_eth 1b100000.ethernet eth0: validation of  with support 0000000,00000000,00006000 and advertisement 0000000,00000000,00000000 failed: -22
[   34.646177] mtk_soc_eth 1b100000.ethernet eth0: mtk_open: could not attach PHY: -22
[   34.663806] br-lan: port 1(eth0) entered blocking state
[   34.669139] br-lan: port 1(eth0) entered disabled state
[   34.674637] device eth0 entered promiscuous mode

So that is apparently

                PHY_ID_MATCH_EXACT(0x001cc916),
                .name           = "RTL8211F Gigabit Ethernet",

which means this is a new hardware revision which comes with a different (1 GBit/s only! :frowning: ) Ethernet PHY instead of the Aquantia AQR112C which they had put there before (without ever advertising the product to be suitable for 2500Base-T -- now they reduced the actual spec to what they also advertise...)

Please build from source and try this change (just to confirm that this fixes it):

--- a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
+++ b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
@@ -169,9 +169,9 @@
                #address-cells = <1>;
                #size-cells = <0>;
 
-               phy0: ethernet-phy@8 {
-                       compatible = "ethernet-phy-ieee802.3-c45";
-                       reg = <0x8>;
+               phy0: ethernet-phy@0 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <0x0>;
                };
        };
 };

Yeah, that did the trick, however, phy-mode also has to change:

--- a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
+++ b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
@@ -160,18 +160,18 @@
                compatible = "mediatek,eth-mac";
                reg = <0>;
 
-               phy-mode = "2500base-x";
+               phy-mode = "sgmii";
                phy-handle = <&phy0>;
-               phy-connection-type = "2500base-x";
+               phy-connection-type = "sgmii";
        };
 
        mdio: mdio-bus {
                #address-cells = <1>;
                #size-cells = <0>;
 
-               phy0: ethernet-phy@8 {
-                       compatible = "ethernet-phy-ieee802.3-c45";
-                       reg = <0x8>;
+               phy0: ethernet-phy@0 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <0x0>;
                };
        };
 };

I'll test the U-Boot version later to confirm that the same fix applies to the bootloader.

1 Like

U-Boot version still doesn't work. I applied this patch:

--- a/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
+++ b/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
@@ -326,10 +326,10 @@
 +              #address-cells = <1>;
 +              #size-cells = <0>;
 +
-+              gphy: ethernet-phy@8 {
++              gphy: ethernet-phy@0 {
 +                      /* Marvell AQRate AQR112W - no driver */
-+                      compatible = "ethernet-phy-ieee802.3-c45";
-+                      reg = <0x8>;
++                      compatible = "ethernet-phy-ieee802.3-c22";
++                      reg = <0x0>;
 +              };
 +      };
 +};

But the network still doesn't work in U-Boot. Interestingly, it stopped working in OpenWrt as well, but nothing in dmesg indicates that something's wrong.

Probably you need to set

CONFIG_PHY_REALTEK=y

in configs/mt7622_ubnt_unifi-6-lr_defconfig as well to enable support for RealTek Ethernet PHYs also in U-Boot.

You mean after you changed the phy address and switched to Clause-22 MDIO in U-Boot it stopped working in Linux?!

Didn't help, ethernet still doesn't work.

I booted "ubootmod" version of initramfs with stock bootloader and the network was working fine. After flashing new U-Boot, initramfs and sysupgrade images, it stopped working after reboot (in the same OpenWrt images that worked on stock U-Boot).

Here's the full patch that I have currently applied:

diff --git a/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch b/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
index c475a7c597..e5adfaa287 100644
--- a/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
+++ b/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
@@ -110,6 +110,8 @@
 +CONFIG_PHY_AQUANTIA=y
 +CONFIG_PHY_ADDR_ENABLE=y
 +CONFIG_PHY_ADDR=8
++CONFIG_PHY_REALTEK=y
++CONFIG_RTL8211F_PHY_FORCE_EEE_RXC_ON=y
 +CONFIG_MEDIATEK_ETH=y
 +CONFIG_MTD=y
 +# CONFIG_MMC is not set
@@ -326,10 +328,10 @@
 +		#address-cells = <1>;
 +		#size-cells = <0>;
 +
-+		gphy: ethernet-phy@8 {
++		gphy: ethernet-phy@0 {
 +			/* Marvell AQRate AQR112W - no driver */
-+			compatible = "ethernet-phy-ieee802.3-c45";
-+			reg = <0x8>;
++			compatible = "ethernet-phy-ieee802.3-c22";
++			reg = <0x0>;
 +		};
 +	};
 +};
diff --git a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
index 4231cc1f79..8883ccf2b9 100644
--- a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
+++ b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
@@ -160,18 +160,18 @@
 		compatible = "mediatek,eth-mac";
 		reg = <0>;
 
-		phy-mode = "2500base-x";
+		phy-mode = "sgmii";
 		phy-handle = <&phy0>;
-		phy-connection-type = "2500base-x";
+		phy-connection-type = "sgmii";
 	};
 
 	mdio: mdio-bus {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		phy0: ethernet-phy@8 {
-			compatible = "ethernet-phy-ieee802.3-c45";
-			reg = <0x8>;
+		phy0: ethernet-phy@0 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <0x0>;
 		};
 	};
 };

I tried toggling CONFIG_RTL8211F_PHY_FORCE_EEE_RXC_ON on and off but nothing changes.

I just noticed CONFIG_PHY_ADDR but setting it to 0 also didn't change anything.

@daniel Looks like I didn't test it thoroughly: even on stock bootloader from 6.2.44 firmware, network doesn't work in OpenWrt unless it's used by U-Boot at least once with a command like tftpsrv. A simple invoke of tftpsrv, then Ctrl+C and booting OpenWrt is enough to get it working in Linux, but without that ethernet doesn't work at all.

I think this is the problem I've been having. I have one that I was never able to get working. I will try to test this out.

I just flashed a brand new UniFi 6 LR v2 with 22.03.2 and after the LED goes steady blue the device does not respond to anything on the Ethernet interface. This looks like what @danijeltudek is describing. I do not have a serial console hooked up, so I can not confirm the error messages.

There is nothing to see there. Ethernet will silently not work if it's not initialized by stock bootloader. I don't know what's missing, probably some low level initialization, but RTL8211F is not some exotic piece of hardware. Maybe @daniel has more ideas?

What I would do at this point is

  • compile OpenWrt kernel with /dev/mem support enabled:
CONFIG_KERNEL_DEVMEM=y
  • build busybox with custom option to enable devmem applet
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_BUSYBOX_CONFIG_DEVMEM=y
  • use devmem tool to poke around the SGMII registers (starting at 0x1b128000) in both, working and non-working state, then compare.

I just spent a couple days trying to figure out why I could not access a fresh install of openwrt on a new unifi 6 lr. After having to work around the fact that stock firmware 6.2.x now locks the mtd kernel partitions and mtd the cli tool isn't installed to unlock them, plus doesn't allow downgrade to 6.0.x, so shenanigans are needed to install in the first place. I suspect more users will be hitting this issue. Might be a good idea to note this on the wiki to prevent more lost time until a v3 release can be made. I can help with any non-uart testing or debugging if such is needed (or even possible), but don't want to disassemble my devices.

@webgeek1234 thanks for your post, you reminded me to add a note about this unlocking problem with newer firmware versions. I have spent significant time to figure this out:

# Unlock mtd partitions with some magic
$ echo "5edfacbf" > /proc/ubnthal/.uf

Let me know if this works for you. I personally have also a "v3", so a note would be great. So far I have not had the time to get it opened up and a serial console.

2 Likes

Definitely would be good to add a note to the wiki, I've been scratching my head for a bit now trying to figure out why mine just isn't working (and don't have the tools or energy to open it up right at the moment).

I am currently in the same situation, I do have a "v3" U6-LR that uses the Realtek ethernet, I managed to install OpenWrt, ethernet appers to be UP but only worked once :), I tried issuing a tftpsrv then boot from u-boot but without success, eth is not working.

PS: I patched OpenWrt and build accoring to @danijeltudek.

I have serial access to the device, I can provide any sort of info that might help.

Thanks!

I have the same problem here.. Last year i ordered three of them and they are working perfectly. Now i ordered a bunch of them and sadly discovered that the network problem isn't a problem of my custom default-config.. They came with a preinstalled version 6.0.24. This version is not even downloadable at unify's downloadpage?!
I tried two of them with different openwrt-builds and thought i can revert through tftp. But sadly at this point i didn't know that it's a driver issue related to changed hardware. That's why i tftp-recovered 6.0.21 (mid last year).
Afterwards there is only a "white-ring-of-death", which means that the white led is permanently on. The "official" recovery build broke the uboot of the device and now uboot/tftp seems to be gone forever on these two devices..
It's so sad that unify doesn't publish so relevant hardware changes nor uses a revision tag.

EDIT:

Shouldn't that also be changed?

Let me tell why I choose to install OpenWrt in the first place: The U6-LR was brand new, I powered it up, it appears on the UI controller, I adopted the device and right after that the U6 goes offline and it is stuck with the white ring light, didn't do any sort of firmware update.

After this happened I decided to hook up the console and see the boot log:
https://pastebin.com/embed_js/45DxVSTK

What's interesting is this:

[    4.562518] ra0: assigned ifindex: 4
[    4.566564] register mt_soc_drv
[    7.929919] ubnt security failedmt_soc_drv
[    7.934033] Register PCI device driver failed(-22)!
[    7.961516] modprobe: 1 module could not be probed
[    7.966385] modprobe: - mt_soc_wifi
[    8.041767] register mt_drv
[   11.405962] Register PCI device driver failed(-22)!
[   11.438513] modprobe: 1 module could not be probed
[   11.443377] modprobe: - ax_wifi
Could not find cfg type: 1
Could not find cfg type: 2
[   23.203327] sh (755): drop_caches: 1
[   28.905533] procd: - early -
[   28.908458] procd: - watchdog -
[   28.957117] Unable to handle kernel paging request at virtual address ffffff800089fb98
[   28.965088] pgd = ffffffc016006000
[   28.968500] [ffffff800089fb98] *pgd=000000005d3a2003, *pud=000000005d3a2003, *pmd=0000000000000000
[   28.977486] Internal error: Oops: 96000007 [#1] SMP
[   28.982354] Modules linked in: gpiodev(P) ax_wifi_ubntskutbl(P) ax_wifi_powerlimit(P) ubnthal(P) ubnt_common(P) gpio_keys usbcore usb_common
[   28.994997] Firmware Version: 6.2.41
[   28.998568] CPU: 1 PID: 915 Comm: udevtrigger Tainted: P                4.4.198 #0
[   29.006126] Hardware name: Ubiquiti Networks, Inc. U6-LR (DT)
[   29.011863] task: ffffffc01d344200 task.stack: ffffffc016088000
[   29.017782] PC is at dev_uevent+0x104/0x188
[   29.021960] LR is at kobject_uevent_env+0x190/0x4c0

And after this a big stacktrace begins.

Do you think I am facing a actual hardware failure ? If so, what do you suspect, the MT7915 or the MT7622A ? I can replace both as I do have all the tools and experience to work with BGA's, I just have to find some donner boards.

My new findings:
I came from 6.2.49 stock.

Did the instructions (including unlocking mtd) from wiki.

My patch-file:

diff --git a/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch b/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
index 6c35e07870..10a6ed59d8 100644
--- a/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
+++ b/package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
@@ -106,10 +106,9 @@
 +CONFIG_CLK=y
 +CONFIG_PHY=y
 +CONFIG_PHY_FIXED=y
 +CONFIG_PHYLIB_10G=y
 +CONFIG_PHY_AQUANTIA=y
 +CONFIG_PHY_ADDR_ENABLE=y
-+CONFIG_PHY_ADDR=8
++CONFIG_PHY_ADDR=0
++CONFIG_PHY_REALTEK=y
 +CONFIG_MEDIATEK_ETH=y
 +CONFIG_MTD=y
 +# CONFIG_MMC is not set
@@ -327,10 +326,10 @@
 +		#address-cells = <1>;
 +		#size-cells = <0>;
 +
-+		gphy: ethernet-phy@8 {
++		gphy: ethernet-phy@0 {
 +			/* Marvell AQRate AQR112W - no driver */
-+			compatible = "ethernet-phy-ieee802.3-c45";
-+			reg = <0x8>;
++			compatible = "ethernet-phy-ieee802.3-c22";
++			reg = <0x0>;
 +		};
 +	};
 +};
diff --git a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
index 4231cc1f79..8883ccf2b9 100644
--- a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
+++ b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi
@@ -160,18 +160,18 @@
 		compatible = "mediatek,eth-mac";
 		reg = <0>;
 
-		phy-mode = "2500base-x";
+		phy-mode = "sgmii";
 		phy-handle = <&phy0>;
-		phy-connection-type = "2500base-x";
+		phy-connection-type = "sgmii";
 	};
 
 	mdio: mdio-bus {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		phy0: ethernet-phy@8 {
-			compatible = "ethernet-phy-ieee802.3-c45";
-			reg = <0x8>;
+		phy0: ethernet-phy@0 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <0x0>;
 		};
 	};
 };

Build from latest snapshot (including recent mediatek patches from openwrt).
Observations so far:

  • Boot works, reboot works, Network is fine.

Maybe @daniel can review and eventually create a new v3 target?

EDIT:
No wifi issues so far!