From owner-freebsd-wireless@freebsd.org Fri Mar 8 21:55:27 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AFC5152A0E1 for ; Fri, 8 Mar 2019 21:55:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C5F638DB3D for ; Fri, 8 Mar 2019 21:55:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 80077152A0DD; Fri, 8 Mar 2019 21:55:26 +0000 (UTC) Delivered-To: wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58962152A0DB for ; Fri, 8 Mar 2019 21:55:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E17B58DB36 for ; Fri, 8 Mar 2019 21:55:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2C6E16A56 for ; Fri, 8 Mar 2019 21:55:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x28LtPk9016912 for ; Fri, 8 Mar 2019 21:55:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x28LtPRB016911 for wireless@FreeBSD.org; Fri, 8 Mar 2019 21:55:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 227044] Add support for Intel 9260 and 5165 (iwm) wireless devices Date: Fri, 08 Mar 2019 21:55:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nilsjohannsen@gmx.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Mar 2019 21:55:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227044 --- Comment #1 from Nils Johannsen --- Created attachment 202728 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D202728&action= =3Dedit tar includes sources, firmware, etc. I'm still new to FreeBSD, especially developing drivers is new for me... nevertheless I like to get the "Intel Wireless AC 9260" on my "ThinkPad E49= 0" running in FreeBSD and tried to follow these changesets in the iwm whose already solved a similar task for another chipsets: [Add support for Intel 8265 WiFi](https://github.com/freebsd/freebsd/commit/a06e5178adcde2036444b756a2e= 996513ec570bd) [Add support for iwm 3168 cards](https://github.com/freebsd/freebsd/commit/5237c88c1abcac87b47cc12cee= 1dff7de106d4d0) But I still stock at the firmware whose I've downloaded and uuencoded but s= eems to be not compatible... could anybody follow up this issue?=20 My changes, sources, firmware you will find attached, as well as some resul= ts. # dmesg > dmesg-2.txt iwm0: mem 0xa1200000-0xa1203fff at de= vice 0.0 on pci3 iwm0: api index=3D0, flags=3D0xdd9afffb iwm0: api index=3D1, flags=3D0x00000087 iwm0: api flags index 1 larger than supported by driver iwm0: iwm_mvm_load_ucode_wait_alive: Loaded ucode is not valid iwm0: Failed to start INIT ucode: 5 # pciconf -lbcev > pciconf-1.txt iwm0@pci0:5:0:0: class=3D0x028000 card=3D0x00148086 chip=3D0x2526808= 6 rev=3D0x29 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Wireless-AC 9260' class =3D network bar [10] =3D type Memory, range 64, base 0xa1200000, size 16384, enab= led cap 01[c8] =3D powerspec 3 supports D0 D3 current D0 cap 05[d0] =3D MSI supports 1 message, 64 bit=20 cap 10[40] =3D PCI-Express 2 endpoint max data 128(128) FLR RO NS link x1(x1) speed 5.0(5.0) ASPM L1(L1) cap 11[80] =3D MSI-X supports 16 messages Table in map 0x10[0x2000], PBA in map 0x10[0x3000] ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected ecap 0018[14c] =3D LTR 1 ecap 001e[154] =3D unknown 1 # vi /usr/src/sys/conf/files # vi /usr/src/sys/dev/iwm/if_iwm.c # vi /usr/src/sys/dev/iwm/if_iwm_8000.c # vi /usr/src/sys/dev/iwm/if_iwm_config.h # vi /usr/src/sys/modules/iwmfw/Makefile # vi /usr/src/sys/modules/iwmfw/iwm9260fw/Makefile # grep '9260' /usr/src/sys/dev/iwm > grep-iwm-1.txt https://www.intel.com/content/www/us/en/support/articles/000005511/network-= and-i-o/wireless-networking.html Download: [Intel=C2=AE Wireless-AC 9260](iwlwifi-9260-th-b0-jf-b0-34.618819= .0.tgz] # tar -xf iwlwifi-9260-*.tgz # cd ./iwlwifi-9260*/ # b64encode -o iwm-9260-34.fw.uu iwlwifi-9260-*.ucode iwm-9260-34.fw.uu # mv iwm-9260-34.fw.uu /usr/src/sys/contrib/dev/iwm/ =3D=3D> /usr/src/sys/contrib/dev/iwm/iwm-9260-34.fw.uu # cd /usr/src/sys/modules/iwmfw/iwm9260fw # make clean all install =3D=3D> /boot/modules/iwm9260fw.ko # cd /usr/src/sys/modules/iwm # make install =3D=3D> /boot/modules/if_iwm.ko # kldload /boot/modules/iwm9260fw.ko # kldload /boot/modules/if_iwm.ko # service netif restart # dmesg > dmesg-2.txt Thanks and regards, Nils --=20 You are receiving this mail because: You are the assignee for the bug.=