LinuxQuestions.org
Visit Jeremy's Blog.
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 04-15-2022, 08:02 AM   #1
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quick question about kernel stuff...


Hey gang,

Bear with me, I know I'm a PITA about this kernel stuff, heh.

When installing a new kernel, the 'kernel-firmware'...can I do a simple 'upgradepkg' with that one and not worry about the 'initrd' stuff and such with it or is there something special to do with that also?

Thanks again for any help with this and putting up with my constant kernel questions. I don't know why I can't wrap my head around the whole 'kernel' installation thing, it's worse than writers block because I seem to have permanent 'big-dummy-can't-figure-it-out-block'
 
Old 04-15-2022, 08:17 AM   #2
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Let's take a look. Examining /var/lib/pkgtools/packages/kernel-firmware-20220124_eb8ea1b-noarch-1 we see that it only installs files to /lib/firmware (and /usr/doc).

Now if you save your initrd trees (which I do) then we can take a look if there is anything in /lib/firmware:

Code:
# cd /boot/initrd-tree-5.15.27/lib/firmware
# ls -la
total 8
drwxr-xr-x 2 root root 4096 Feb 14 14:17 ./
drwxr-xr-x 5 root root 4096 Mar  9 07:25 ../
Nothing there! So it looks like to me, no, you do not need to rebuild your initrd after upgrading kernel-firmware (and I never have).

I'm not sure, however, if some special hardware does copy files from /lib/firmware to the initrd during initrd creation. You may want to check yourself.
 
3 members found this post helpful.
Old 04-15-2022, 08:39 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
When you build an initrd, the script /sbin/mkinitrd includes in it the firmware files needed (if any) by the modules it also includes, found in /lib/firmware at time of building. As long as your system boots with the existing initrd, there is no need to update these files in it, so no need to rebuild it.

Rebuilding an initrd is mandatory if you upgrade the kernel-generic and the associated (at the same version) kernel-modules packages, then boot using the new kernel. Again, the initrd will include (if need be) files found in /lib/firmware, coming from the most recently installed kernel-firmware package.

Last edited by Didier Spaier; 04-15-2022 at 08:59 AM.
 
4 members found this post helpful.
Old 04-15-2022, 10:52 AM   #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
FTIO --

LQ wouldn't let me credit you for the excellent Q so here goes: Excellent Q, FTIO !

And a great answer by drumz !

Thanks to all'Y'all !

-- kj
 
2 members found this post helpful.
Old 04-15-2022, 10:56 AM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,124

Rep: Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297
Quote:
Originally Posted by kjhambrick View Post
FTIO --

LQ wouldn't let me credit you for the excellent Q so here goes: Excellent Q, FTIO !

And a great answer by drumz !

Thanks to all'Y'all !

-- kj
You can rate the thread in the upper right hand corner of the box around the first (original) post.
 
2 members found this post helpful.
Old 04-15-2022, 10:58 AM   #6
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 cwizardone View Post
You can rate the thread in the upper right hand corner of the box around the first (original) post.
Nice !

I wondered where all those Stars came from, cwizardone

Thanks !!

-- kjh
 
2 members found this post helpful.
Old 04-15-2022, 12:18 PM   #7
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 327

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Adding a small note here, i recently noted that some devices may require a full shutdown and power up in order to load the new firmware, as rebooting is not enough.
The Intel AX200 wifi/bluetooth card in my laptop had problems with frequent disconnects on bluetooth audio.
The new firmware was supposed to fix the issue, but even after upgrading it the problem was still present.
Since rebooting didn't power off the device, at boot time the kernel would notice that a firmware was already loaded on the device, and skip loading the new firmware:
Code:
kernel: Bluetooth: hci0: Found device firmware: intel/ibt-20-1-3.sfi
kernel: Bluetooth: hci0: Boot Address: 0x24800
kernel: Bluetooth: hci0: Firmware Version: 126-5.22
kernel: Bluetooth: hci0: Firmware already loaded
After a shutdown and a power up:
Code:
kernel: Bluetooth: hci0: Found device firmware: intel/ibt-20-1-3.sfi
kernel: Bluetooth: hci0: Boot Address: 0x24800
kernel: Bluetooth: hci0: Firmware Version: 126-5.22
kernel: Bluetooth: hci0: Waiting for firmware download to complete
kernel: Bluetooth: hci0: Firmware loaded in 1760747 usecs
 
5 members found this post helpful.
Old 04-15-2022, 01:42 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by kjhambrick View Post
FTIO --

LQ wouldn't let me credit you for the excellent Q so here goes: Excellent Q, FTIO !

And a great answer by drumz !

Thanks to all'Y'all !

-- kj
You can also click on the scale icon below their profile (by the icons showing what OS/distro they're using and their online status). It will also let you send them a message.
 
2 members found this post helpful.
Old 04-15-2022, 03:28 PM   #9
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 bassmadrigal View Post
You can also click on the scale icon below their profile (by the icons showing what OS/distro they're using and their online status). It will also let you send them a message.
Yes, that's the one I tried ( the Scales ) but LQ told me to spread around the love before giving FITO an LQ AttaBoy

-- kjh
 
Old 04-15-2022, 03:30 PM   #10
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 ctrlaltca View Post
Adding a small note here, i recently noted that some devices may require a full shutdown and power up in order to load the new firmware, as rebooting is not enough.
The Intel AX200 wifi/bluetooth card in my laptop had problems with frequent disconnects on bluetooth audio.
The new firmware was supposed to fix the issue, but even after upgrading it the problem was still present.
Since rebooting didn't power off the device, at boot time the kernel would notice that a firmware was already loaded on the device, and skip loading the new firmware:
Code:
kernel: Bluetooth: hci0: Found device firmware: intel/ibt-20-1-3.sfi
kernel: Bluetooth: hci0: Boot Address: 0x24800
kernel: Bluetooth: hci0: Firmware Version: 126-5.22
kernel: Bluetooth: hci0: Firmware already loaded
After a shutdown and a power up:
Code:
kernel: Bluetooth: hci0: Found device firmware: intel/ibt-20-1-3.sfi
kernel: Bluetooth: hci0: Boot Address: 0x24800
kernel: Bluetooth: hci0: Firmware Version: 126-5.22
kernel: Bluetooth: hci0: Waiting for firmware download to complete
kernel: Bluetooth: hci0: Firmware loaded in 1760747 usecs
Wow !

Good Info.

Thanks ctrlaltca

-- kjh

p.s. I've been playing with firmware via reboot-only.

I'm almost afraid to power down now

Last edited by kjhambrick; 04-15-2022 at 03:31 PM. Reason: P.S.
 
2 members found this post helpful.
  


Reply



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
Real quick iptables question (I mean real quick) sir-lancealot Linux - Networking 1 08-25-2010 08:41 PM
LXer: A Quick Look at Qt Quick LXer Syndicated Linux News 0 06-09-2010 05:00 PM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM
A quick q: how to view chmod stuff? orange400 Linux - General 2 04-23-2004 05:44 AM
lots of quick questions, help please (kernel, installing stuff, etc) ixp Linux - Software 10 12-30-2003 08:14 PM

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

All times are GMT -5. The time now is 10:44 PM.

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