LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-30-2022, 02:33 PM   #1
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 564

Rep: Reputation: Disabled
Question Controlling iwlwifi firmware load without upgrading/recompiling a new kernel


Hi all,

Noticed iwlwifi is looking for a firmware specific to the wnic I have.
The latest firmware iwlwifi is looking for is -69
Looking into /lib/firmware, I see version -71 is available.
How do I go about getting iwlfifi to load version -71?

Not that I wouldn't mind recompiling a new kernel... but knowing if loading/unloading a specific firmware for testing could be useful.

Thanks in advance
 
Old 05-31-2022, 09:23 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
AFAIK, the firmware is loaded by the kernel module (driver) for your card. Unloading and then reloading the module with the new firmware in /lib/firmware should suffice.

You will most likely have to deactivate the wireless interface before the kernel will allow you to unload the module. Also, remember to create a backup of the old firmware file first.
 
1 members found this post helpful.
Old 05-31-2022, 01:43 PM   #3
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 564

Original Poster
Rep: Reputation: Disabled
It should but that didn't work.
It must be hardcoded somewhere.
 
Old 05-31-2022, 01:57 PM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by yvesjv View Post
Hi all,

Noticed iwlwifi is looking for a firmware specific to the wnic I have.
The latest firmware iwlwifi is looking for is -69
Looking into /lib/firmware, I see version -71 is available.
How do I go about getting iwlfifi to load version -71?

Not that I wouldn't mind recompiling a new kernel... but knowing if loading/unloading a specific firmware for testing could be useful.

Thanks in advance
yvesjv --

Curious ...

How can you tell that version -71 would be better for your WiFi than version -69 ?

Thanks !

-- kjh
 
Old 05-31-2022, 10:40 PM   #5
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 564

Original Poster
Rep: Reputation: Disabled
Good question but I'm after a different quest.
There is a request for assistance at https://www.linuxquestions.org/quest...-a-4175704711/
Appears it works with some kernels and not with others.
Would be nice if we could be a bit granular and specify which firmware to load.

I think I'm going to compile 5.18.x and install but before doing so, first edit the file '22000.c' by giving it a bogus but higher value than the default of 72.
 
Old 06-01-2022, 01:55 PM   #6
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by yvesjv View Post
Hi all,

Noticed iwlwifi is looking for a firmware specific to the wnic I have.
The latest firmware iwlwifi is looking for is -69
Looking into /lib/firmware, I see version -71 is available.
How do I go about getting iwlfifi to load version -71?

Not that I wouldn't mind recompiling a new kernel... but knowing if loading/unloading a specific firmware for testing could be useful.

Thanks in advance
Hmm. If I'm not mistaken it doesnt work like that. Specific firmware is only for specific version of the Kernel driver. So you can't use firmware version Y with driver version X or firmware version X with driver version Y. You can only use X on X and Y on Y. Where both firmware and driver version is a range of versions, not only a specific one.

Which basically means you don't have to worry about it unless you run a newer Kernel and it fails to load an old firmware. And well, sometimes there could be a new firmware version for an old driver, but as long as it works, you don't really need to worry about it, unless there is a specific fix to a serious issue. In which case you would probably have to update both anyways.

Quote:
Originally Posted by yvesjv View Post
It should but that didn't work.
It must be hardcoded somewhere.
Yeah, in the driver.

Last edited by zeebra; 06-01-2022 at 01:58 PM.
 
2 members found this post helpful.
Old 06-01-2022, 04:40 PM   #7
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 564

Original Poster
Rep: Reputation: Disabled
Yes, did test it and it looks like it is hardcoded.
Raising the max value inthe file 22000.c before compiling does work but if the kernel doesn't recognise the hardware, that is not going to help.
Looks like flashy new hardware = new kernel + new flashy drivers.

Thanks for the input.
I'm closing this request.
 
1 members found this post helpful.
  


Reply

Tags
firmware, iwlwifi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Load iwlwifi Firmware? mrksutter Linux From Scratch 10 12-30-2014 01:16 AM
How do I add iwlwifi-3945-1.ucode firmware when installing Debian 'etch'? CaptainLinux Debian 9 10-19-2011 02:58 PM
[SOLVED] firmware-iwlwifi installing dante_des Linux - Hardware 9 11-18-2009 05:52 PM
firmware-iwlwifi cccc Debian 5 11-07-2008 01:52 PM
Intel 3945 with firmware-iwlwifi not working acampbell Linux - Wireless Networking 0 09-14-2007 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration