Re: Compiling MT76 on CURRENT
- In reply to: Goran Mekić : "Compiling MT76 on CURRENT"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 May 2023 08:33:14 UTC
On Wed, 17 May 2023, Goran Mekić wrote:
Hi,
> I read that this driver was added to base and I can find the source but I
> don't know how to compile it, because I don't get /boot/kernel/if_mt*.ko
> and I couldn't grep/find the tunable that enables building of this
> driver. Is there any doc that can tell me how to try it out? I know it's
> experimental and I have a laptop that has this wifi ready for
> experiments.
I haven't yet connected it to the build. I have an update for almost
all (but mt76 which is currently needing more things from LinuxKPI)
queued to get all drivers up to the same level before 14.0/15 happens
to make maintainance easier.
I haven't forgotten you and was planning to email back once this
happened.
If you in the meantime want to try it out (but no guarantees on how it
acts in main at this point) you want to apply somehting like this:
% git show ab8fc547e7dd336bde8e8a29d52c2dcc9e141c4f
commit ab8fc547e7dd336bde8e8a29d52c2dcc9e141c4f
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
Date: Tue Apr 18 14:33:32 2023 +0000
mt76: add to build
Add mediatek/mt76 drivers mt7915 and mt7921 as well as their
man pages to the build. There is interest by various people to
try/use and enhance support further.
MFC after: 2 months
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index 71d12055f4db..fa1f19bcfd1b 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -324,6 +324,8 @@ MAN= aac.4 \
mpt.4 \
mrsas.4 \
msk.4 \
+ mt7915.4 \
+ mt7921.4 \
mtio.4 \
multicast.4 \
muge.4 \
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index b9867f25df4e..dad19c864978 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -266,6 +266,7 @@ SUBDIR= \
msdosfs \
msdosfs_iconv \
msk \
+ ${_mt76} \
${_mthca} \
mvs \
mwl \
@@ -560,6 +561,7 @@ _iwlwifi= iwlwifi
.if ${MK_SOURCELESS_UCODE} != "no"
_iwlwififw= iwlwififw
.endif
+_mt76= mt76
_ossl= ossl
_rtw88= rtw88
.if ${MK_SOURCELESS_UCODE} != "no"
--
Bjoern A. Zeeb r15:7