You are not logged in.

#1 2018-07-01 21:43:43

LeftyAce
Member
Registered: 2012-08-18
Posts: 159

iwlwifi failed to load firmware chunk

Hi all,

Every so often (maybe once every 10 boots) I boot up and have no wifi. "netctl-auto list" shows nothing, and "ip link" shows the wifi card as down. The only way I've managed to fix it is rebooting. Usually one reboot is suficient, sometimes it takes two. This is on a Lenovo Thinkpad x220 laptop.

According lspci, the card is:

 Intel Corporation Centrino Advanced-N 6205

This is the dmesg log when it's not working:

# dmesg|grep iwlwifi
[   32.567374] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[   32.586745] iwlwifi 0000:03:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[   32.693751] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG enabled
[   32.693753] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[   32.693755] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[   32.693757] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Advanced-N 6205 AGN, REV=0xB0
[   32.885440] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[   35.966804] iwlwifi 0000:03:00.0: Radio type=0x1-0x0-0x1
[   41.013466] iwlwifi 0000:03:00.0: Failed to load firmware chunk!
[   41.015601] iwlwifi 0000:03:00.0: iwlwifi transaction failed, dumping registers
[   41.017734] iwlwifi 0000:03:00.0: iwlwifi device config registers:
[   41.020136] iwlwifi 0000:03:00.0: 00000000: 00858086 00180406 02800000 00000010 f1500004 00000000 00000000 00000000
[   41.022398] iwlwifi 0000:03:00.0: 00000020: 00000000 00000000 00000000 13118086 00000000 000000c8 00000000 0000010b
[   41.024651] iwlwifi 0000:03:00.0: iwlwifi device memory mapped registers:
[   41.026909] iwlwifi 0000:03:00.0: 00000000: 00481700 00000040 08000000 08000000 00000001 00000000 00000030 00000000
[   41.029139] iwlwifi 0000:03:00.0: 00000020: 00000001 080403c5 000000b0 00000000 90000004 00020000 80008040 00080046
[   41.031420] iwlwifi 0000:03:00.0: iwlwifi device AER capability structure:
[   41.033720] iwlwifi 0000:03:00.0: 00000000: 14010001 00000000 00000000 00062011 00000000 00002000 00000000 00000000
[   41.036021] iwlwifi 0000:03:00.0: 00000020: 00000000 00000000 00000000
[   41.038380] iwlwifi 0000:03:00.0: iwlwifi parent port (0000:00:1c.1) config registers:
[   41.041261] iwlwifi 0000:00:1c.1: 00000000: 1c128086 00100007 060400b4 00810010 00000000 00000000 00030300 200000f0
[   41.043705] iwlwifi 0000:00:1c.1: 00000020: f150f150 0001fff1 00000000 00000000 00000000 00000040 00000000 0000020b
[   41.045988] iwlwifi 0000:03:00.0: Could not load the [0] uCode section
[   41.061034] iwlwifi 0000:03:00.0: Failed to run INIT ucode: -110
[   41.061990] iwlwifi 0000:03:00.0: Unable to initialize device.
[   41.069803] iwlwifi 0000:03:00.0: Radio type=0x1-0x0-0x1
[   46.133463] iwlwifi 0000:03:00.0: Failed to load firmware chunk!
[   46.138754] iwlwifi 0000:03:00.0: Could not load the [0] uCode section
[   46.153484] iwlwifi 0000:03:00.0: Failed to run INIT ucode: -110
[   46.154295] iwlwifi 0000:03:00.0: Unable to initialize device.

I know it happens on battery, I don't know whether or not it happens when plugged in (it's pretty rare either way, which may make it impossible to diagnose in which case I'll live with it until I replace this laptop in 6 months or so).

Any ideas much appreciated!

-Lefty

Offline

#2 2018-07-02 07:15:36

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: iwlwifi failed to load firmware chunk

Random ideas:
Try to move away every /lib/firmware/iwlwifi-*-6.ucode file (will likely be 6000g2a or 6000g2b, but idk) and see what happens.
Since you mentioned "battery", there've been reports about issues w/ the thinkpad_acpi module. Check whether it's loaded, whether it does something and in doubt try to blacklist it.

Offline

#3 2018-07-03 04:30:52

LeftyAce
Member
Registered: 2012-08-18
Posts: 159

Re: iwlwifi failed to load firmware chunk

Hi Seth,

Do you mean to move those files when the problem occurs, or move them now (while wifi is working) and see what happens? I have

iwlwifi-105-6.ucode  iwlwifi-135-6.ucode  iwlwifi-2000-6.ucode  iwlwifi-2030-6.ucode  iwlwifi-6000g2a-6.ucode  iwlwifi-6000g2b-6.ucode

Also, I'm not sure how to tell if thinkpad_acpi does something. The module is loaded.

Thanks,
Lefty

Offline

#4 2018-07-03 05:54:55

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: iwlwifi failed to load firmware chunk

Move them away and then reboot - the idea is to try the *-5 versions.
As for thinkpad_acpi, look at dmesg and suspicious messages from the module as well as about battery and acpi.

Offline

#5 2018-07-06 00:56:22

LeftyAce
Member
Registered: 2012-08-18
Posts: 159

Re: iwlwifi failed to load firmware chunk

Thanks again for your help. I tried moving all of the *-6.ucodes into a new subfolder in /lib/firmware, and the problem persists. When I boot and have no wifi, I tried bringing the interface up:

# ip link set wlp3s0 up:
RTNETLINK answers: Connection timed out

I checked rfkill:

#rfkill
ID TYPE      DEVICE                   SOFT      HARD
 1 wlan      phy0                unblocked unblocked

And based on your suggestion I checked dmesg for thinkpad_acpi messages:

# dmesg|grep thinkpad_acpi
[   32.968669] thinkpad_acpi: ThinkPad ACPI Extras v0.26
[   32.968671] thinkpad_acpi: http://ibm-acpi.sf.net/
[   32.968671] thinkpad_acpi: ThinkPad BIOS 8DET74WW (1.44 ), EC unknown
[   32.968672] thinkpad_acpi: Lenovo ThinkPad X220, model 4286CTO
[   32.974155] thinkpad_acpi: radio switch found; radios are enabled
[   32.974319] thinkpad_acpi: Tablet mode switch found (type: MHKG), currently in laptop mode
[   32.974452] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
[   32.974452] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
[   32.977294] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[   32.977826] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
[   32.982913] thinkpad_acpi: battery 1 registered (start 40, stop 80)
[   32.982979] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input5

I'm not seeing anything obvious in those outputs, the only real error I get is the iwlwifi "failed to load firmware chunk" message.

Any other ideas what might be causing this?

Offline

#6 2018-07-06 05:56:11

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: iwlwifi failed to load firmware chunk

I'm not sure whether iwlwifi parses subdirs - ensure it's not trying to load the same firmware version.

Offline

#7 2018-07-07 19:14:41

LeftyAce
Member
Registered: 2012-08-18
Posts: 159

Re: iwlwifi failed to load firmware chunk

Ah, good point. I moved all the -6.ucodes to a completely different directory (in my homedir), and unfortunately I still randomly get the error every 5 or so boots.

Offline

Board footer

Powered by FluxBB