Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux firmware for iwlwifi ucode failed with error -2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Speedflam
n00b
n00b


Joined: 28 Mar 2020
Posts: 10

PostPosted: Sun Apr 12, 2020 8:10 pm    Post subject: Linux firmware for iwlwifi ucode failed with error -2 Reply with quote

Hello everyone,

I'm trying to get Gentoo working on my machine, but every time I fail to get a working internet.
With the installation medium (official minimal from gentoo), no problem to be seen, everything works perfectly after a quick "net-setup".

But after the installation, I can't see my Wi-Fi card which is a "Intel 7265" (using ifconfig -a or ip addr).

I follow this page, set every option as module and install the Linux firmware.
After a bit of digging (with the dmesg command)
I've found this message : "iwlwifi 0000:03.0 Direct firmware load for iwlwifi-7265D-*.ucode failed with error -2", and at the end of the page I was following, there were a link for the same error.
But the solution seems to be "just set it as a module" and I've already done that so... I'm a bit lost if anyone could help me :)

Thank you !
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7677
Location: Saint Amant, Acadiana

PostPosted: Sun Apr 12, 2020 9:42 pm    Post subject: Reply with quote

You better post the whole dmesg, with wgetpaste.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45435
Location: 56N 3W

PostPosted: Sun Apr 12, 2020 9:54 pm    Post subject: Reply with quote

Speedflam,

Wild guess based on you did everything right but it doesn't work.

You are not running the kernel you think you are.
What is the time in
Code:
uname -a


Code:
$ uname -a
Linux NeddySeagoon_Static 5.6.0-gentoo #1 SMP PREEMPT Thu Apr 2 18:34:15 BST 2020 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux


The Thu Apr 2 18:34:15 BST 2020 is the build time of my running kernel.
You look at your uname -a output and ask yourself it you have build a more recent kernel?
I'll guess you have but forgot to mount boot for the kernel install.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Speedflam
n00b
n00b


Joined: 28 Mar 2020
Posts: 10

PostPosted: Mon Apr 13, 2020 8:32 am    Post subject: Reply with quote

NeddySeagoon wrote:
Speedflam,

Wild guess based on you did everything right but it doesn't work.

You are not running the kernel you think you are.
What is the time in
Code:
uname -a


Code:
$ uname -a
Linux NeddySeagoon_Static 5.6.0-gentoo #1 SMP PREEMPT Thu Apr 2 18:34:15 BST 2020 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux


The Thu Apr 2 18:34:15 BST 2020 is the build time of my running kernel.
You look at your uname -a output and ask yourself it you have build a more recent kernel?
I'll guess you have but forgot to mount boot for the kernel install.


And you were wright, I wasn't using the last kernel I compile. I've mount the boot partition and re-install the kernel but nothing change. I still got the same message.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Mon Apr 13, 2020 9:35 am    Post subject: Re: Linux firmware for iwlwifi ucode failed with error -2 Reply with quote

Speedflam wrote:
Hello everyone,

I'm trying to get Gentoo working on my machine, but every time I fail to get a working internet.
With the installation medium (official minimal from gentoo), no problem to be seen, everything works perfectly after a quick "net-setup".

But after the installation, I can't see my Wi-Fi card which is a "Intel 7265" (using ifconfig -a or ip addr).

I follow this page, set every option as module and install the Linux firmware.
After a bit of digging (with the dmesg command)
I've found this message : "iwlwifi 0000:03.0 Direct firmware load for iwlwifi-7265D-*.ucode failed with error -2", and at the end of the page I was following, there were a link for the same error.

Regarding 7265D there is a certain note. Does your linux-firmware version have the mentioned -29.ucode for 7265D?
Please also wgetpaste your kernel's .config so we could have a look
Back to top
View user's profile Send private message
Speedflam
n00b
n00b


Joined: 28 Mar 2020
Posts: 10

PostPosted: Tue Apr 14, 2020 7:43 am    Post subject: Reply with quote

Jaglover wrote:
You better post the whole dmesg, with wgetpaste.

Here the result of dmesg.

charles17 wrote:
Does your linux-firmware version have the mentioned -29.ucode for 7265D?

Yes as you can see at line 701, it does.

charles17 wrote:
Please also wgetpaste your kernel's .config so we could have a look

My kernel .config file.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Tue Apr 14, 2020 10:39 am    Post subject: Reply with quote

Speedflam wrote:
charles17 wrote:
Does your linux-firmware version have the mentioned -29.ucode for 7265D?

Yes as you can see at line 701, it does.

Just to be absolutely sure, what is your output of
Code:
ls -al /lib/firmware/iwlwifi-7265D*


Speedflam wrote:
My kernel .config file.

There was (or still is?) some trouble with newer kernel versions. Have you tried with 4.19.113 ?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7677
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 14, 2020 12:42 pm    Post subject: Reply with quote

Missing path in kernel config.

Code:
CONFIG_EXTRA_FIRMWARE=""


Should be:

Code:
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Tue Apr 14, 2020 1:16 pm    Post subject: Reply with quote

Jaglover wrote:
Should be:

Code:
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

iwlwifi has been working long time for me working without setting this.
But it will be needed for different purpose.
Back to top
View user's profile Send private message
Speedflam
n00b
n00b


Joined: 28 Mar 2020
Posts: 10

PostPosted: Tue Apr 14, 2020 2:14 pm    Post subject: Reply with quote

charles17 wrote:
Speedflam wrote:
charles17 wrote:
Does your linux-firmware version have the mentioned -29.ucode for 7265D?

Yes as you can see at line 701, it does.

Just to be absolutely sure, what is your output of
Code:
ls -al /lib/firmware/iwlwifi-7265D*


Sure, it's here

charles17 wrote:
Speedflam wrote:
My kernel .config file.

There was (or still is?) some trouble with newer kernel versions. Have you tried with 4.19.113 ?


I downgrade to 4.19.113 and it works :)

Jaglover wrote:
Missing path in kernel config.

Code:
CONFIG_EXTRA_FIRMWARE=""   


Should be:

Code:
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"


Okay thanks I'll try to fix this :)
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Tue Apr 14, 2020 3:29 pm    Post subject: Reply with quote

Speedflam wrote:
I downgrade to 4.19.113 and it works :)

Glad to read you got it solved. But you should also solve the microcode trouble (see "different purpose").
Back to top
View user's profile Send private message
Speedflam
n00b
n00b


Joined: 28 Mar 2020
Posts: 10

PostPosted: Thu Apr 16, 2020 10:27 am    Post subject: Reply with quote

charles17 wrote:
Glad to read you got it solved. But you should also solve the microcode trouble (see "different purpose").

And I done so, in a very dirty way but I did it. Because I wasn't able to change this line :
Code:
CONFIG_EXTRA_FIRMWARE=""   

To this one :
Code:
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

Using the "make menuconfig" command, I've edited the .config file with nano, even if it's clearly written "DO NOT EDIT THIS FILE" (sorry :()
Miraculesly it work, maybe it's due to the fact that I've switch to iwd instead of iw and wpa_supplicant, but now everything is working with a 5.4 kernel.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Thu Apr 16, 2020 11:43 am    Post subject: Reply with quote

Speedflam wrote:
charles17 wrote:
Glad to read you got it solved. But you should also solve the microcode trouble (see "different purpose").

And I done so, in a very dirty way but I did it. Because I wasn't able to change this line :
Code:
CONFIG_EXTRA_FIRMWARE=""   


For editing the lines in menuconfig, you have to have the cursor on that certain line, then hit ENTER.
That way you should get the line open for editing: https://i.imgur.com/dg9g8Bm.png
Back to top
View user's profile Send private message
Speedflam
n00b
n00b


Joined: 28 Mar 2020
Posts: 10

PostPosted: Fri Apr 17, 2020 12:33 pm    Post subject: Reply with quote

charles17 wrote:
Speedflam wrote:
charles17 wrote:
Glad to read you got it solved. But you should also solve the microcode trouble (see "different purpose").

And I done so, in a very dirty way but I did it. Because I wasn't able to change this line :
Code:
CONFIG_EXTRA_FIRMWARE=""   


For editing the lines in menuconfig, you have to have the cursor on that certain line, then hit ENTER.
That way you should get the line open for editing: https://i.imgur.com/dg9g8Bm.png


The problem is that I need to install the driver the "built-in" way and enter first the "firmware blobs into the kernel binary" and then I can edit this line.( https://imgur.com/ynuFdW9)
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Fri Apr 17, 2020 12:43 pm    Post subject: Reply with quote

Speedflam wrote:
The problem is that I need to install the driver the "built-in" way and enter first the "firmware blobs into the kernel binary" and then I can edit this line.( https://imgur.com/ynuFdW9)

You need both lines:
https://wiki.gentoo.org/wiki/Intel_microcode#Kernel_2 :
      -*-   Firmware loading facility
      (intel-ucode/06-3c-03) Build named firmware blobs into the kernel binary
      (/lib/firmware) Firmware blobs root directory (NEW)
Back to top
View user's profile Send private message
Speedflam
n00b
n00b


Joined: 28 Mar 2020
Posts: 10

PostPosted: Fri Apr 17, 2020 3:36 pm    Post subject: Reply with quote

charles17 wrote:
Speedflam wrote:
The problem is that I need to install the driver the "built-in" way and enter first the "firmware blobs into the kernel binary" and then I can edit this line.( https://imgur.com/ynuFdW9)

You need both lines:
https://wiki.gentoo.org/wiki/Intel_microcode#Kernel_2 :
      -*-   Firmware loading facility
      (intel-ucode/06-3c-03) Build named firmware blobs into the kernel binary
      (/lib/firmware) Firmware blobs root directory (NEW)


Okay :)

I've done so and everything is working now !
Thank you very much for your help :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum