Loading correct iwlwifi firmware

Loading correct iwlwifi firmware

Postby aguador » Oct 25th, '17, 19:29

As part of an ongoing effort to get connman working in E20/21/22 I have discovered that on my newest laptop the iwlwifi firmware for the older Intel Wireless 3165 is not loading. Here is the pertinent output from dmseg:

Code: Select all
 4.673695] Intel(R) Wireless WiFi driver for Linux
[ 4.673696] Copyright(c) 2003- 2015 Intel Corporation
[ 4.673798] iwlwifi 0000:02:00.0: enabling device (0000 -> 0002)
[ 4.677583] Linux video capture interface: v2.00
[ 4.680522] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2
[ 4.680562] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2
[ 4.680575] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2
[ 4.680588] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2
[ 4.684000] SSE version of gcm_enc/dec engaged.
[ 4.689510] iwlwifi 0000:02:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm

Further exploration showed that the appropriate drivers, iwlwifi-7265-14/iwlwifi-7265D-14, were not installed on my machine. I have downloaded and copied the correct drivers into /lib/firmware. However, as shown in the dmseg output, at boot, later versions of the driver are sought (none of which are not available).

Basic question: is there a way to configure the machine to look for and load the correct driver as it is now available?

A possible further complication may be kernel related as there are only two versions of the iwlwifi-7265 microcode listed:

Code: Select all
$ modinfo iwlwifi
filename:       /lib/modules/4.9.56-desktop-1.mga6/kernel/drivers/net/wireless/i
ntel/iwlwifi/iwlwifi.ko.xz
license:        GPL
author:         Copyright(c) 2003- 2015 Intel Corporation <linuxwifi@intel.com>
description:    Intel(R) Wireless WiFi driver for Linux
     **SNIP**
firmware:       iwlwifi-7265D-26.ucode
firmware:       iwlwifi-7265-17.ucode

Does this suggest a kernel issue (perhaps similar to the now resolved: https://bugs.mageia.org/show_bug.cgi?id=21081)? If so, I will file a bug report.

Final questions: MCC offers the possibility of configuring a connection to use ndswrapper. I assume that using the Intel driver would be better, but is that a possible solution? Will that make ndswrapper the default for all wifi connections?
User avatar
aguador
 
Posts: 66
Joined: Sep 22nd, '13, 12:27
Location: Mendexa, Spain

Re: Loading correct iwlwifi firmware

Postby doktor5000 » Oct 25th, '17, 22:49

The last line in your dmesg output shows that the firmware was loaded. What is your actual issue?
Also what do you mean in particular by "appropriate drivers, iwlwifi-7265-14/iwlwifi-7265D-14" - from where do you get that those are appropriate?

And please at the very least provide the output of lspcidrake -v so others can see the actual PCI IDs of the chipset you are referring to.

For your question about ndiswrapper, that should only be used if there is really no native linux driver, as ndiswrapper is just a wrapper to use windows drivers.
And no, that won't make ndiswrapper the default for all wifi connections, only for the ones where you select to use ndiswrapper.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Loading correct iwlwifi firmware

Postby aguador » Oct 26th, '17, 11:16

Sorry, you are right that it is apparently loading 7625D-22, the first firmware available in /lib/firmware counting down from -26.

Intel says that 7265D-14 is correct: https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-i-o/wireless-networking.html.

Here is the output of lspcidrake -v:
Code: Select all
$ lspcidrake -v
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #8 [SIGNAL_OTHER] (vendor:8086 device:5aba subv:1558 s
ubd:5151) (rev: 0b)
rtsx_pci        : Realtek Semiconductor Co., Ltd.|RTL8411B PCI Express Card Reader (vendor:10ec device:5287 subv:1558 subd:5151) (rev: 01)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #1 [SIGNAL_OTHER] (vendor:8086 device:5aac subv:1558 s
ubd:5151) (rev: 0b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #3 [SIGNAL_OTHER] (vendor:8086 device:5ac6) (rev: 0b)
shpchp          : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #1 [BRIDGE_PCI] (vendor:8086 device:5ad8) (rev: fb
)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #3 [SIGNAL_OTHER] (vendor:8086 device:5ab0 subv:1558 s
ubd:5151) (rev: 0b)
iwlwifi         : Intel Corporation|Wireless 3165 [NETWORK_OTHER] (vendor:8086 device:3165 subv:8086 subd:4010) (rev: 81)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #2 [SIGNAL_OTHER] (vendor:8086 device:5abe subv:155
8 subd:5151) (rev: 0b)
shpchp          : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #3 [BRIDGE_PCI] (vendor:8086 device:5ada) (rev: fb
)
unknown         : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series Low Pin Count Interface [BRIDGE_ISA] (vendor:8086 device:5ae8 subv:15
58 subd:5151) (rev: 0b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #4 [SIGNAL_OTHER] (vendor:8086 device:5aee) (rev: 0
b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #5 [SIGNAL_OTHER] (vendor:8086 device:5ab4 subv:1558 s
ubd:5151) (rev: 0b)
processor_thermal_device: Intel Corporation|Device 5a8c [SIGNAL_OTHER] (vendor:8086 device:5a8c subv:1558 subd:5151) (rev: 0b)
shpchp          : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port B #2 [BRIDGE_PCI] (vendor:8086 device:5ad7) (rev: fb
)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #7 [SIGNAL_OTHER] (vendor:8086 device:5ab8 subv:1558 s
ubd:5151) (rev: 0b)
Card:Intel 810 and later: Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series Integrated Graphics Controller [DISPLAY_VGA] (vendor:8086 dev
ice:5a84 subv:1558 subd:5151) (rev: 0b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #2 [SIGNAL_OTHER] (vendor:8086 device:5ac4) (rev: 0b)
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168
 subv:1558 subd:5151) (rev: 12)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #2 [SIGNAL_OTHER] (vendor:8086 device:5aae subv:1558 s
ubd:5151) (rev: 0b)
snd_hda_intel   : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:5a98 subv:15
58 subd:5151) (rev: 0b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #1 [SIGNAL_OTHER] (vendor:8086 device:5abc) (rev: 0
b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #4 [SIGNAL_OTHER] (vendor:8086 device:5ab2 subv:1558 s
ubd:5151) (rev: 0b)
xhci_pci        : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series USB xHCI [SERIAL_USB] (vendor:8086 device:5aa8 subv:1558 subd:5151) (
rev: 0b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #3 [SIGNAL_OTHER] (vendor:8086 device:5ac0 subv:155
8 subd:5151) (rev: 0b)
i2c_i801        : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series SMBus Controller [SERIAL_SMBUS] (vendor:8086 device:5ad4 subv:1558 su
bd:5151) (rev: 0b)
unknown         : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller [STORAGE_SATA] (vendor:8086 device:5ae3 subv:1558 subd:5151) (rev: 0b)
unknown         : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge [BRIDGE_HOST] (vendor:8086 device:5af0 subv:1558 subd:5151) (rev: 0b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #6 [SIGNAL_OTHER] (vendor:8086 device:5ab6 subv:1558 subd:5151) (rev: 0b)
mei_me          : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine [COMMUNICATION_OTHER] (vendor:8086 device:5a9a subv:1558 subd:5151) (rev: 0b)
intel_lpss_pci  : Intel Corporation|Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #1 [SIGNAL_OTHER] (vendor:8086 device:5ac2 subv:1558 subd:5151) (rev: 0b)
hub             : Linux 4.9.56-desktop-1.mga6 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
uvcvideo        : Chicony Electronics Co.,Ltd.|Chicony USB2.0 Camera [Video|Video Control] (vendor:04f2 device:b59d)
btusb           : Intel Corp.|Unknown [Wireless|Radio Frequency|Bluetooth] (vendor:8087 device:0a2a)
hub             : Linux 4.9.56-desktop-1.mga6 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
User avatar
aguador
 
Posts: 66
Joined: Sep 22nd, '13, 12:27
Location: Mendexa, Spain

Re: Loading correct iwlwifi firmware

Postby doktor5000 » Oct 26th, '17, 15:51


No, Intel only lists the latest available firmware there as noted above the table. That does not make previous firmware versions "incorrect".

But back to my original question, what is your actual issue here, aside from the log messages? Is there any actual issue with the wireless interface, if so which?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Loading correct iwlwifi firmware

Postby aguador » Oct 26th, '17, 16:24

The short answer is that my actual issue is that I cannot get connman to function on this machine, running Enlightenment in Mageia 6.

It is now working with E in another machine running Cauldron (with a Wireless-N 100 card using the driver listed on the Intel page). Both machines are running the most recent connman and the same wpa_supplicant version. I suppose there can be differences in other packages that affect the machines, but there should be a way to confirm or eliminate the card-driver differences.

There may or may not be a second issue. I can connect without problem to my home wifi (with systemd-networkd.service), but have had problems with a public wifi in a town I visit regularly (the only other one I have tried). I know that service is slow and tends to be overburdened, but it is possible to connect with Windows 7 and Android devices, and I have connected in the past with other Linux machines (including the one now running Cauldron). However, the Mageia 6 machine either times out without connecting or repeatedly drops the connection. Given the issue with connman and seeing that there is another driver from Intel, I am wondering if this was the source of the problem. (This is not something I will able to test immediately.)
User avatar
aguador
 
Posts: 66
Joined: Sep 22nd, '13, 12:27
Location: Mendexa, Spain

Re: Loading correct iwlwifi firmware

Postby doktor5000 » Oct 27th, '17, 17:19

Well, if the issue is with connman you should at the very least run connman from a terminal and then setup/connect your wifi and post the output from connman here.
I haven't used connman (and would probably suggest on using something like networkmanager) hence can't help much with that but you may want to take a look at e.g.
https://wiki.kubuntu.org/ConnMan/Debugging or the readme for debugging: https://github.com/jku/connman/blob/master/README
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Loading correct iwlwifi firmware

Postby aguador » Oct 29th, '17, 16:56

Thank you for the debugging links, Doktor5000. I will check them out.

I want to use connman for three reasons. First, Enlightenment has an efl-based gui for connman (econnman) as an available module, and which has a systray indicator. Second, while networkmanager has been more popular, connman is smaller and more efficient. Third, connman has always worked well for me in managing wifi connections.

The strangest thing is that I am connected with connman at the moment on my Mga6 machine. This is a different network which systemd-networkd.service refused to connect to, but to which connman connected with no problem. This reinforces my suspicion that there is a driver issue, the driver working well with one type of router (this one labelled Observa Telecom) and not with another (TP-Link).

I will let you know when I find a solution.
User avatar
aguador
 
Posts: 66
Joined: Sep 22nd, '13, 12:27
Location: Mendexa, Spain

Re: Loading correct iwlwifi firmware

Postby doktor5000 » Oct 30th, '17, 02:07

aguador wrote:This is a different network which systemd-networkd.service refused to connect to, but to which connman connected with no problem. This reinforces my suspicion that there is a driver issue, the driver working well with one type of router (this one labelled Observa Telecom) and not with another (TP-Link).

Hmmm? So because the same adapter can connect to different networks, but not with each network manager, you assume it's the driver that has the issue? Sorry but that doesn't make much sense, at least not to me.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Loading correct iwlwifi firmware

Postby aguador » Oct 30th, '17, 23:04

You are probably right that it makes no sense as you know considerably more than I do. However, all of this gets crazier. After returning home yesterday, the laptop connected to my home wifi via connman with no problem. However, this morning it refused to connect with connman and I had to return to systemd-networkd. If I had not seen all this I would not have believed it.

I admit debugging is something that I do not regularly do, but I will turn to it in a day or two. Should you ever get a question about connman again, I found this link today which seems to be the most up to date: https://medium.com/@patrickhopper/managing-internet-connections-on-linux-devices-with-connman-8256b998f01
User avatar
aguador
 
Posts: 66
Joined: Sep 22nd, '13, 12:27
Location: Mendexa, Spain

Re: Loading correct iwlwifi firmware

Postby aguador » Nov 4th, '17, 16:27

OK, so whether the driver is the best or not it seems there is another problem. The ouput of

CONNMAN_SUPPLICANT_DEBUG=1 connmand -n -d

is

Connection ":1.58" is not allowed to own the service "net.connman" due to security policies in the configuration file

However, there is no configuration file for connman and the only commands in wpa_supplicant.conf are:
Code: Select all
ctrl_interface=/var/run/wpa_supplicant
# IEEE 802.1X/EAPOL version
eapol_version=1
# AP scanning/selection
ap_scan=1
# EAP fast re-authentication
fast_reauth=1
# Example configuration showing how to use an inlined blob as a CA certificate
blob-base64-exampleblob={
SGVsbG8gV29ybGQhCg==
}
User avatar
aguador
 
Posts: 66
Joined: Sep 22nd, '13, 12:27
Location: Mendexa, Spain

Re: Loading correct iwlwifi firmware

Postby doktor5000 » Nov 5th, '17, 13:15

aguador wrote:Connection ":1.58" is not allowed to own the service "net.connman" due to security policies in the configuration file

This is about the default dbus policy. Did you run it as your user or as root ? Please always copy&paste commands including the prompt and the output from them.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Loading correct iwlwifi firmware

Postby aguador » Nov 9th, '17, 19:19

Sorry. It was run as a normal user. Run as root it produces a "Name already in use" response. It seems that connman.service must be enabled but stopped before running the debug commands.

Code: Select all
$ sudo CONNMAN_SUPPLICANT_DEBUG=1 connmand -n -d > /home/aguador/connman3.log

Produces an empty file, as does the "connmand -d" general debug command.
User avatar
aguador
 
Posts: 66
Joined: Sep 22nd, '13, 12:27
Location: Mendexa, Spain


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron