From nobody Tue May 23 08:33:14 2023 X-Original-To: freebsd-wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQSJK1Qwtz4CBK2 for ; Tue, 23 May 2023 08:33:21 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQSJK1040z4L3H; Tue, 23 May 2023 08:33:21 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684830801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=48DZ5S0EwtiIqxf44g9lvcCJ/+K9P2wW68KsYOghkBw=; b=LJ3Ziyx46Mtx7q/pn5MfQNLo6SC4bamiDHlZgdv8hIt4YwPYngQN9vZT0by9ZTC841Kds8 bJiLhUpK12TEjh0NWtBuwSDG3aCoeTLehcpc6ASf0x4X0fbgKkBr8odbeWJRcD5uiW9DyI Qc0lUj70zrqCcEdayV36B1t3PBDja3GYsrwvVNfvbpmyAMpwjb0Mm8YjGHDwm2c00lxb3Q 9tYW5gVkoCn7+bk+97VFv0X+EM3UpayQVDsu4p1O1tgLHHQvley7ufAYVIm+6ih9L46qxR AmSddfnhzsYFR7PD4vUkglEwL0C23liEtRXIUnK059KrsSK5LwmV+DC8pT/uKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684830801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=48DZ5S0EwtiIqxf44g9lvcCJ/+K9P2wW68KsYOghkBw=; b=xgi31DtxWVtIDMPVNtfmFBQXTVxhwa3mqH0G7jAAR3GT5dWJ/6Ez2NWoWQEQemgdjTwU9/ 00ur/YM0DFlSJGJJ8SVXJ8vovDaBAh7uuYIz4h+HtTQWagW8p+2VDrZIorl59UhCzxAasU SjcluJi+bXzN9/Zj1HodPVnmsvI0sfV7zsJtZfvhbcVCg6nM+t5oC8AUA7gZ6rEKOa7gtp 4yTT314CJoiKNFeKL4CekwRCj1dAs3G/KpPU0KGBMh7EWx8IWntsCt9zOf18tkShcCZWSt bVEkTaxPKXYrDExtceVXp3KwFI/vyyn3DGbHZB53+X+wMH9cOyjW4s4oPyDqNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684830801; a=rsa-sha256; cv=none; b=We0l846Rrr+2M53/U4MXygrqLkpPxH/NUedmXHm+n8tfU0CFFC2atMmThctWnIi5VANXqC Psj1ZJpwU9cdmwL13Jn2GIUvy70s4CGtDD6MyDXGyK9ZcmXWjeg4KHQw04zEeMXArO7CIU WC4klrbV04G3C+zYWBG8QugEKOF/CMbYiVQhkR4024mEAoIczauRT6eXZ/Cq0W3+xTF6OC gimzLCR25kl+k24rNmcndU/BdSJ/wKuFhTbM1xS3MyyN0ilhd32uLony3jWzH//4ERPdH4 MfeZzUTNkmnV4mZzNtZD7SOaLetWHnn+N4Mj6PA6rJ4RZVxlt0vmMqlEYVQocw== Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QQSJJ5pZQzSM6; Tue, 23 May 2023 08:33:20 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id B0D088D4A220; Tue, 23 May 2023 08:33:17 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 1ACAA5C3A832; Tue, 23 May 2023 08:33:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id k5g5YNZNXS9E; Tue, 23 May 2023 08:33:15 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 74B0C5C3A82F; Tue, 23 May 2023 08:33:15 +0000 (UTC) Date: Tue, 23 May 2023 08:33:14 +0000 (UTC) From: "Bjoern A. Zeeb" To: =?UTF-8?Q?Goran_Meki=C4=87?= cc: freebsd-wireless@freebsd.org Subject: Re: Compiling MT76 on CURRENT In-Reply-To: Message-ID: <0s3p5624-6nr5-9qp2-4153-2875q7s3555q@SerrOFQ.bet> References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1098556516-493947036-1684830795=:48381" X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1098556516-493947036-1684830795=:48381 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT 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 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 --1098556516-493947036-1684830795=:48381--