Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Firmware Failed to Load on Kernel 6.4.3-1  (Read 5623 times)

Offline ShadowLordSora

  • User
  • Posts: 9
[EN] Firmware Failed to Load on Kernel 6.4.3-1
« on: 2023/07/12, 07:12:23 »
Hello everyone,

Sometime ago I made a post about firmware failed to load in firmware-iwlwifi running the command dmesg | grep -i iwlwifi, link below:
https://forum.siduction.org/index.php?topic=9003.0

So after an doing an apt full-upgrade, there is a new version of iwlwifi firmware and a new Kernel. Doing a reboot and loading the 6.4.3-1 Kernel and running command dmesg | grep -i iwlwifi, there are now 4 .ucode files which are different numbered .ucode files then the ones listed in my original post with the same out put of:

Direct firmware load for iwlwifi-ty-a0-gf-a0-*.ucode failed with error -2 (* being he number of the .ucode file)

In my original post there was only 2 .ucode failed not 4, the 2 .ucode files that failed to load in the original post are 73 and 74, and the 4 in the 6.4.3-1 Kernel are 75, 76, 77 & 78.

But then I rebooted and loaded into the 6.3.11-1 Kernel the firmware was showing no error codes in the command dmesg | grep -i iwlwifi, even with the newer iwlwifi firmware.

I'm not 100% what is going on with the loading of the firmware and how it all works. I figure that posting in upgrade warnings would be better as this maybe a problem with firmware loading in the newer Kernel, again I'm not 100% sure how this all works.

If there's an more information need to help fix whatever is happening please let me know. Also before asking any question on how I manged to work out a temporary fix please read my original post, as I list the steps there.

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.939
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #1 on: 2023/07/12, 08:18:36 »
There is no Firmware in the kernel!
Firmware files are in package firmware-iwlwifi!
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline ShadowLordSora

  • User
  • Posts: 9
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #2 on: 2023/07/12, 09:11:05 »
Sorry towo,

Like I said I don't know how these things work. I'm just trying to update my findings on the firmware issue I'm having. I really don't know what to do... all I was saying is that for some reason when I go into 6.4.3-1 kernel the firmware-iwlwifi shows an error code... but in loading the 6.3.11-1 kernel there is no error code...

I'm really sorry I'm very unsure what to do... I figure there maybe other issues going on but I don't how to troubleshoot... I was only trying to explain my current problem...

I did link my original post about my temporary fix.

I will say this I never meant to imply that the Firmware was in the Kernel. I understand that the Firmware is a different package in Linux from the Kernel packages. All I was saying is there something happens when I change Kernel version from 6.3.11-1 to 6.4.3-1 there is a failure to load the firmware.

If it helps I can show you the out puts from the command line? Or if there's any other command that can help with the troubleshooting of this issue?

All I'm asking for is help and I have trouble with reading and writing English.

Offline ShadowLordSora

  • User
  • Posts: 9
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #3 on: 2023/07/12, 09:30:54 »
To make it easier, here is the outputs from the command line on the 2 different versions on for the Kernel and as I stated in the last reply, I understand all Firmware are in different packages from the Kernel packages. This is just an observation form my full upgrade today.

Kernel: 6.3.11-1
Code: [Select]
root@SatanicSid:/home/sora# uname -r
6.3.11-1-siduction-amd64
root@SatanicSid:/home/sora# dmesg | grep -i iwlwifi
[    3.508598] iwlwifi 0000:28:00.0: enabling device (0000 -> 0002)
[    3.516785] iwlwifi 0000:28:00.0: api flags index 2 larger than supported by driver
[    3.516798] iwlwifi 0000:28:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.36
[    3.517041] iwlwifi 0000:28:00.0: loaded firmware version 74.fe17486e.0 ty-a0-gf-a0-74.ucode op_mode iwlmvm
[    3.534386] iwlwifi 0000:28:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
[    3.542839] iwlwifi 0000:28:00.0: WRT: Invalid buffer destination
[    3.701104] iwlwifi 0000:28:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x1f
[    3.701118] iwlwifi 0000:28:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    3.701130] iwlwifi 0000:28:00.0: WFPM_AUTH_KEY_0: 0x80
[    3.701143] iwlwifi 0000:28:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[    3.701323] iwlwifi 0000:28:00.0: loaded PNVM version e4a49534
[    3.716506] iwlwifi 0000:28:00.0: Detected RF GF, rfid=0x10d000
[    3.787065] iwlwifi 0000:28:00.0: base HW address: 70:a8:d3:56:50:13
[    5.911004] iwlwifi 0000:28:00.0: WRT: Invalid buffer destination
[    6.068524] iwlwifi 0000:28:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x1f
[    6.068538] iwlwifi 0000:28:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    6.068553] iwlwifi 0000:28:00.0: WFPM_AUTH_KEY_0: 0x80
[    6.068565] iwlwifi 0000:28:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0

Kernel: 6.4.3-1
Code: [Select]
root@SatanicSid:/home/sora# uname -r
6.4.3-1-siduction-amd64
root@SatanicSid:/home/sora# dmesg | grep -i iwlwifi
[    3.500995] iwlwifi 0000:28:00.0: enabling device (0000 -> 0002)
[    3.504830] iwlwifi 0000:28:00.0: Detected crf-id 0x400410, cnv-id 0x400410 wfpm id 0x80000000
[    3.504834] iwlwifi 0000:28:00.0: PCI dev 2725/0024, rev=0x420, rfid=0x10d000
[    3.504933] iwlwifi 0000:28:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-78.ucode failed with error -2
[    3.504943] iwlwifi 0000:28:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-77.ucode failed with error -2
[    3.505207] iwlwifi 0000:28:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-76.ucode failed with error -2
[    3.505218] iwlwifi 0000:28:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-75.ucode failed with error -2
[    3.506840] iwlwifi 0000:28:00.0: api flags index 2 larger than supported by driver
[    3.506853] iwlwifi 0000:28:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.36
[    3.507032] iwlwifi 0000:28:00.0: loaded firmware version 74.fe17486e.0 ty-a0-gf-a0-74.ucode op_mode iwlmvm
[    3.530991] iwlwifi 0000:28:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
[    3.538492] iwlwifi 0000:28:00.0: WRT: Invalid buffer destination
[    3.696728] iwlwifi 0000:28:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x1f
[    3.696742] iwlwifi 0000:28:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    3.696755] iwlwifi 0000:28:00.0: WFPM_AUTH_KEY_0: 0x80
[    3.696768] iwlwifi 0000:28:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[    3.696946] iwlwifi 0000:28:00.0: loaded PNVM version e4a49534
[    3.712180] iwlwifi 0000:28:00.0: Detected RF GF, rfid=0x10d000
[    3.781988] iwlwifi 0000:28:00.0: base HW address: 70:a8:d3:56:50:13
[    6.118812] iwlwifi 0000:28:00.0: WRT: Invalid buffer destination
[    6.276339] iwlwifi 0000:28:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x1f
[    6.276358] iwlwifi 0000:28:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    6.276372] iwlwifi 0000:28:00.0: WFPM_AUTH_KEY_0: 0x80
[    6.276386] iwlwifi 0000:28:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[    6.364680] iwlwifi 0000:28:00.0: Registered PHC clock: iwlwifi-PTP, with index: 0

Offline Mister00X

  • User
  • Posts: 198
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #4 on: 2023/07/12, 11:31:09 »
Quote
Code: [Select]
[    3.507032] iwlwifi 0000:28:00.0: loaded firmware version 74.fe17486e.0 ty-a0-gf-a0-74.ucode op_mode iwlmvm

The kernel found a suitable firmware the others where either not suitable or not present.

So no need to worry here.
Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say. – Edward Snowden

Offline ShadowLordSora

  • User
  • Posts: 9
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #5 on: 2023/07/12, 15:31:51 »
Yes, that is true that it's finding suitable firmware, but as far as I can tell dmesg error -2 means that the .ucode file doesn't exist under /lib/firmware.

If you have a look at my original post about this which is linked in the first post, you can see that once going through the steps I wrote to get the .ucode file, but it's only a temporary fix.

Updating the firmware is fine, but updating the Kernel from 6.3.11-1 to 6.4.3-1 is asking for different firmware .ucodes.

You say that there's no need to worry, but it actually affects my ability to view website or use applications like Steam and Discord that use the internet.

Offline ShadowLordSora

  • User
  • Posts: 9
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #6 on: 2023/07/13, 01:38:23 »
Okay, so all my post is able is trying to inform the Siduction Community and the Siduction Team, is that the 6.4.3-1 Kernel is asking for firmware .ucode files that isn't present under /lib/firmware. To add to this is that the firmware had an update form version 20230515-2 to 20230515-3 and yet the firmware that has being asked for isn't there, but under the website: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git and downloading version 20230515, the firmware .ucode files are present. Lastly adding the .ucode files, isn't hard it just requires some steps that can take time for people to do.

Also I would like to add this, a few years ago I got an AMD GPU the 5600xt, but after setting the 5600xt there was no visuals, even after the motherboard successful posted. So after some digging with the help of my Dad, we found out that the firmware needed for the 5600xt wasn't present in Siduction yet, but again was present under the website: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git and adding the firmware had to be done outside of the running desktop, like under CTRL + ALT + F3, using steps similar to the steps I've used in the adding the .ucode files, but different locations for the AMD GPU firmware.

So again this is an observation and something that I believe needs to be addressed, as missing firmware that has being asked for by the Kernel, there's clearly some reason why the firmware is being asked for or the dmesg command wouldn't show an error.

I also believe that I'm not the only one out there asking this about missing firmware in not just Siduction, but other distros too. There are people out there like me who use Siduction for everyday use daily, like gaming or programing. Lastly, I'm sure there are people who use Linux and want to use the latest and greatest hardware, but when the firmware isn't present, those people just have to wait for it to come down or try and add the fix missing firmware.

Yes I do understand that Siduction probability doesn't have a big team working on this Distro, to fix ever problem that gets address. All I'm trying to say is that the firmware is missing in Siduction and that firmware is present in on the website: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

Last point, with the missing firmware for iwlwifi, my internet using kernel 6.4.3-1 runs slower and the up/down speeds just drops off and websites time out when reloading and if anything is downloading it stops. If I do add the firmware myself the internet runs as normally, as I did before when having firmware missing when running any Kernel with 6.3.*

Offline unklarer

  • User
  • Posts: 817
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #7 on: 2023/07/13, 09:56:51 »
Congratulations!
Thank you for your detailed and insightful report.    :)

Offline eriefisher

  • User
  • Posts: 266
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #8 on: 2023/07/13, 12:49:40 »
Do you have non-free-firmware enabled in your Debian apt sources?

Offline ShadowLordSora

  • User
  • Posts: 9
Re: Firmware Failed to Load on Kernel 6.4.3-1
« Reply #9 on: 2023/07/21, 03:15:29 »
Yes, I do have non-free-firmware in my Debian apt sources.

Code: [Select]
sudo apt-cache policy firmware-iwlwifi
firmware-iwlwifi:
  Installed: 20230515-3
  Candidate: 20230515-3
  Version table:
 *** 20230515-3 500
        500 http://debian.mirror.digitalpacific.com.au/debian unstable/non-free-firmware amd64 Packages
        500 http://debian.mirror.digitalpacific.com.au/debian unstable/non-free-firmware i386 Packages
        100 /var/lib/dpkg/status

But that's not the problem, the problem is that firmware-iwlwifi package is missing .ucode files and running the sudo dmesg | grep -i iwlwifi shows you:

Direct firmware load for iwlwifi-ty-a0-gf-a0-*.ucode failed with error -2 (* being number of the .ucode file that is missing)

If you need help with adding the .ucode files back please read my original post in relation to this issue, link below:

https://forum.siduction.org/index.php?topic=9003.0

Offline ShadowLordSora

  • User
  • Posts: 9
Hello everyone,

I understand this is an old post but, I'm happy to report the missing Firmware issue has be solved, I just updated to Kernel 6.6.3-1 from a 6.5.* Kernel and there is no Firmware reported missing under the sudo dmesg | grep -i iwlwifi shown below:

Code: [Select]
~$ sudo dmesg | grep -i iwlwifi
[    3.849529] iwlwifi 0000:28:00.0: enabling device (0000 -> 0002)
[    3.853599] iwlwifi 0000:28:00.0: Detected crf-id 0x400410, cnv-id 0x400410 wfpm id 0x80000000
[    3.853607] iwlwifi 0000:28:00.0: PCI dev 2725/0024, rev=0x420, rfid=0x10d000
[    3.856909] iwlwifi 0000:28:00.0: api flags index 2 larger than supported by driver
[    3.856929] iwlwifi 0000:28:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.41
[    3.857151] iwlwifi 0000:28:00.0: loaded firmware version 83.e8f84e98.0 ty-a0-gf-a0-83.ucode op_mode iwlmvm
[    3.892377] iwlwifi 0000:28:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
[    3.906640] iwlwifi 0000:28:00.0: WRT: Invalid buffer destination
[    4.061421] iwlwifi 0000:28:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x20
[    4.061437] iwlwifi 0000:28:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    4.061451] iwlwifi 0000:28:00.0: WFPM_AUTH_KEY_0: 0x90
[    4.061464] iwlwifi 0000:28:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[    4.061660] iwlwifi 0000:28:00.0: loaded PNVM version e4a49534
[    4.077494] iwlwifi 0000:28:00.0: Detected RF GF, rfid=0x10d000
[    4.147752] iwlwifi 0000:28:00.0: base HW address: 70:a8:d3:56:50:13
[    6.358516] iwlwifi 0000:28:00.0: WRT: Invalid buffer destination
[    6.512688] iwlwifi 0000:28:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x20
[    6.512702] iwlwifi 0000:28:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    6.512717] iwlwifi 0000:28:00.0: WFPM_AUTH_KEY_0: 0x90
[    6.512730] iwlwifi 0000:28:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[    6.600788] iwlwifi 0000:28:00.0: Registered PHC clock: iwlwifi-PTP, with index: 0

Here is the version of the firmware that I'm on in case anyone needs to know:

Code: [Select]
~$ sudo apt-cache policy firmware-iwlwifi
firmware-iwlwifi:
  Installed: 20230625-1
  Candidate: 20230625-1
  Version table:
 *** 20230625-1 500
        500 http://debian.mirror.digitalpacific.com.au/debian unstable/non-free-firmware amd64 Packages
        500 http://debian.mirror.digitalpacific.com.au/debian unstable/non-free-firmware i386 Packages
        100 /var/lib/dpkg/status

Please keep in mind this is not an issue with the Kernel, this was an issue with the firmware itself and it just happens with going up form 6.4.* Kernel to 6.5.* Kernel there was an reported missing file, which did cause problems WiFi itself, and now 6.6.* Kernel doesn't report a missing file in the firmware.

If this is not the case for you please fill free to look back at my original post in regards to this issue as there is a fix that I've found and wrote out in detail, linked here: https://forum.siduction.org/index.php?topic=9003.0