From nobody Thu Mar 28 09:18:15 2024 X-Original-To: freebsd-current@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 4V4yd86YpSz5FMSb for ; Thu, 28 Mar 2024 09:18:20 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V4yd75mddz44bL for ; Thu, 28 Mar 2024 09:18:19 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de Received: from [212.222.85.114] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rplto-006nv2-VN; Thu, 28 Mar 2024 10:18:16 +0100 Received: from localhost.my.domain (c720-1400094 [127.0.0.1]) by localhost.unixarea.de (8.17.1/8.14.9) with ESMTP id 42S9IGTj003732; Thu, 28 Mar 2024 10:18:16 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.17.1/8.14.9/Submit) id 42S9IFb0003731; Thu, 28 Mar 2024 10:18:15 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 28 Mar 2024 10:18:15 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org, Michael Gmelin Subject: Re: CURRENT on laptop ASUS VivoBook Pro 14 90NB0VZ2-M01230 Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-current@freebsd.org, Michael Gmelin References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bqtZ2oA6fjYMiWZP" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 14.0-CURRENT r1400094 (amd64) X-message-flag: Mails in HTML will not be read! Please send only text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 212.222.85.114 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[unixarea.de]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; HAS_ATTACHMENT(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ARC_NA(0.00)[]; HAS_XAW(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; HAS_REPLYTO(0.00)[guru@unixarea.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; HAS_XOIP(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; REPLYTO_EQ_FROM(0.00)[] X-Rspamd-Queue-Id: 4V4yd75mddz44bL --bqtZ2oA6fjYMiWZP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit El día miércoles, marzo 27, 2024 a las 03:51:33p. m. +0100, Matthias Apitz escribió: > The WLAN card seems to be: > > none2@pci0:1:0:0: class=0x028000 rev=0x00 hdr=0x00 vendor=0x14c3 device=0x7961 subvendor=0x1a3b subdevice=0x4680 > vendor = 'MEDIATEK Corp.' > device = 'MT7921 802.11ax PCI Express Wireless Network Adapter' > class = network > > Perhaps not supported until today: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264300 While grepping through /usr/src I found the driver in /usr/src/sys/contrib/dev/mediatek/mt76/mt7921/ and a make && make install in # cd /usr/src/sys/modules/mt76 # make ... # make install ===> core (install) install -T release -o root -g wheel -m 555 mt76_core.ko /boot/modules/ kldxref /boot/modules ===> mt7915 (install) install -T release -o root -g wheel -m 555 if_mt7915.ko /boot/modules/ kldxref /boot/modules ===> mt7921 (install) install -T release -o root -g wheel -m 555 if_mt7921.ko /boot/modules/ kldxref /boot/modules installs it fine. There is also a manpage in /usr/src/share/man/man4/mt7921.4 (attached) I still have to build the firmware from ports/net/wifi-firmware-mt76-kmod. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --bqtZ2oA6fjYMiWZP Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="mt7921.4.txt" Content-Transfer-Encoding: 8bit MT7921(4) FreeBSD Kernel Interfaces Manual MT7921(4) NAME mt7921 – MediaTek IEEE 802.11ax wireless network driver SYNOPSIS The driver will auto-load without any user interaction using devmatch(8) if enabled in rc.conf(5). Only if auto-loading is explicitly disabled, place the following lines in rc.conf(5) to manually load the driver as a module at boot time: kld_list="${kld_list} if_mt7921" The driver should automatically load any firmware needed for the particular chipset. It is discouraged to load the driver from loader(8). DESCRIPTION The mt7921 driver is derived from MediaTek's Linux mt76 driver and provides support for the following chipsets: MediaTek MT7921E (PCIe) This driver requires firmware to be loaded before it will work. The package wifi-firmware-mt76-kmod from the ports/net/wifi-firmware-mt76-kmod port needs to be installed before the driver is loaded. Otherwise no wlan(4) interface can be created using ifconfig(8). The driver uses the linuxkpi_wlan and linuxkpi compat framework to bridge between the Linux and native FreeBSD driver code as well as to the native net80211(4) wireless stack. While mt7921 supports all 802.11 a/b/g/n/ac and ax the compatibility code currently only supports 802.11 a/b/g modes. Support for 802.11 n/ac is to come. BUGS Certainly. SEE ALSO wlan(4), ifconfig(8), wpa_supplicant(8) HISTORY The mt7921 driver first appeared in FreeBSD 14.0. FreeBSD 14.0-CURRENT April 18, 2023 FreeBSD 14.0-CURRENT --bqtZ2oA6fjYMiWZP--