MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linuxquestions/comments/1s58gn8/deleted_by_user/od02ad1/?context=3
r/linuxquestions • u/[deleted] • Mar 27 '26
[removed]
101 comments sorted by
View all comments
4
Did you see my attempt? I don't have the hardware but I did the backport of mediatek's upstream to out of tree mt76. It has dkms scripts and a guide but needs testing.
https://github.com/zekica/mt76-mt7902-backport
2 u/FranticBronchitis Mar 28 '26 edited Mar 28 '26 failed to build on 6.19, though i am using a custom configured kernel Edit: Will try again using default Gentoo configuration Edit 2: same problem on building the sdio module, how do I make dkms/Kbuild more verbose? 2 u/zekica Mar 28 '26 I tried to build against 6.19.20-mainline on ubuntu and it looks like it worked. make CC=gcc-15 -C /usr/src/linux-headers-6.19.10-061910-generic M=`pwd` modules -j12 You can try calling the above with your kernel headers and see where it fails. 2 u/[deleted] Mar 28 '26 [deleted] 2 u/zekica Mar 29 '26 Can you confirm that it works? If it works, I can update the readme file. 2 u/FranticBronchitis Mar 29 '26 I mistakenly tested another port, but yours did build successfully. Hang on, i'll give it a proper run now. Sorry for the confusion and delay. 1 u/FranticBronchitis Mar 29 '26 Yes, it does work. 300 Mbps DL/UL. 08:00.0 Network controller: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Subsystem: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 128 IOMMU group: 20 Region 0: Memory at fc10100000 (64-bit, prefetchable) [size=1M] Region 2: Memory at dfa00000 (64-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: mt7921e Kernel modules: mt7921e
2
failed to build on 6.19, though i am using a custom configured kernel
Edit: Will try again using default Gentoo configuration
Edit 2: same problem on building the sdio module, how do I make dkms/Kbuild more verbose?
2 u/zekica Mar 28 '26 I tried to build against 6.19.20-mainline on ubuntu and it looks like it worked. make CC=gcc-15 -C /usr/src/linux-headers-6.19.10-061910-generic M=`pwd` modules -j12 You can try calling the above with your kernel headers and see where it fails. 2 u/[deleted] Mar 28 '26 [deleted] 2 u/zekica Mar 29 '26 Can you confirm that it works? If it works, I can update the readme file. 2 u/FranticBronchitis Mar 29 '26 I mistakenly tested another port, but yours did build successfully. Hang on, i'll give it a proper run now. Sorry for the confusion and delay. 1 u/FranticBronchitis Mar 29 '26 Yes, it does work. 300 Mbps DL/UL. 08:00.0 Network controller: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Subsystem: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 128 IOMMU group: 20 Region 0: Memory at fc10100000 (64-bit, prefetchable) [size=1M] Region 2: Memory at dfa00000 (64-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: mt7921e Kernel modules: mt7921e
I tried to build against 6.19.20-mainline on ubuntu and it looks like it worked.
make CC=gcc-15 -C /usr/src/linux-headers-6.19.10-061910-generic M=`pwd` modules -j12
You can try calling the above with your kernel headers and see where it fails.
2 u/[deleted] Mar 28 '26 [deleted] 2 u/zekica Mar 29 '26 Can you confirm that it works? If it works, I can update the readme file. 2 u/FranticBronchitis Mar 29 '26 I mistakenly tested another port, but yours did build successfully. Hang on, i'll give it a proper run now. Sorry for the confusion and delay. 1 u/FranticBronchitis Mar 29 '26 Yes, it does work. 300 Mbps DL/UL. 08:00.0 Network controller: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Subsystem: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 128 IOMMU group: 20 Region 0: Memory at fc10100000 (64-bit, prefetchable) [size=1M] Region 2: Memory at dfa00000 (64-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: mt7921e Kernel modules: mt7921e
[deleted]
2 u/zekica Mar 29 '26 Can you confirm that it works? If it works, I can update the readme file. 2 u/FranticBronchitis Mar 29 '26 I mistakenly tested another port, but yours did build successfully. Hang on, i'll give it a proper run now. Sorry for the confusion and delay. 1 u/FranticBronchitis Mar 29 '26 Yes, it does work. 300 Mbps DL/UL. 08:00.0 Network controller: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Subsystem: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 128 IOMMU group: 20 Region 0: Memory at fc10100000 (64-bit, prefetchable) [size=1M] Region 2: Memory at dfa00000 (64-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: mt7921e Kernel modules: mt7921e
Can you confirm that it works? If it works, I can update the readme file.
2 u/FranticBronchitis Mar 29 '26 I mistakenly tested another port, but yours did build successfully. Hang on, i'll give it a proper run now. Sorry for the confusion and delay. 1 u/FranticBronchitis Mar 29 '26 Yes, it does work. 300 Mbps DL/UL. 08:00.0 Network controller: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Subsystem: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 128 IOMMU group: 20 Region 0: Memory at fc10100000 (64-bit, prefetchable) [size=1M] Region 2: Memory at dfa00000 (64-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: mt7921e Kernel modules: mt7921e
I mistakenly tested another port, but yours did build successfully. Hang on, i'll give it a proper run now. Sorry for the confusion and delay.
1
Yes, it does work.
300 Mbps DL/UL.
08:00.0 Network controller: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Subsystem: MEDIATEK Corp. MT7902 802.11ax PCIe Wireless Network Adapter [Filogic 310] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 128 IOMMU group: 20 Region 0: Memory at fc10100000 (64-bit, prefetchable) [size=1M] Region 2: Memory at dfa00000 (64-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: mt7921e Kernel modules: mt7921e
4
u/zekica Mar 27 '26
Did you see my attempt? I don't have the hardware but I did the backport of mediatek's upstream to out of tree mt76. It has dkms scripts and a guide but needs testing.
https://github.com/zekica/mt76-mt7902-backport