LinuxQuestions.org
Help answer threads with 0 replies.
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-07-2024, 10:53 AM   #1
ccoffee
Member
 
Registered: Mar 2003
Location: Lake City, South Carolina
Distribution: Slackware 15 and current
Posts: 60

Rep: Reputation: 7
Slackware64 and Kernels


Could someone please explain to me the difference in Slackware Kernels such as "generic-5.15.145" and a kernel that is built from scratch (i.e. Kernel-5.15.145)?

Also, if I build a custom kernel from say 5.15.150, does this need an initrd like the
"generic-5.15.145" since "huge-5.15.145" does not?

Are the kernel modules built when I try and build a kernal from scratch since Slackware
kernel upgrades have a "modules-5.15.145" ?

Just trying to figure out the difference between the Slackware64 kernels and one that may
be build from the Linux Kernel.org site.

Thanks for any info, I have been unsuccessful in trying to get this off of google (I may not
be asking the question in the corret manner).
 
Old 05-07-2024, 11:09 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
A generic kernel is one that will work on practically any machine. Distro developers don't know what kind of hardware you have, so they build all the available drivers as modules. Udev loads the appropriate ones as the kernel identifies the hardware. The Slackware generic kernel is a kernel of this kind. All generic kernels need an initial root device (initrd or initramfs) from which to load filesystem (and other) drivers before they can access the true root partition.

If you build your own kernel, you don't need to build drivers for hardware that you don't have, so the build is faster. You can also build in things like filesystem drivers for your hard drive and root partition rather than building them as modules, so that you won't need an initrd. But if you misconfigure the kernel, it won't boot properly.

The huge kernel is unique to Slackware. It has practically everything built-in rather than built as modules so that it doesn't need an initrd either.

Last edited by hazel; 05-07-2024 at 11:16 AM.
 
2 members found this post helpful.
Old 05-07-2024, 01:06 PM   #3
ccoffee
Member
 
Registered: Mar 2003
Location: Lake City, South Carolina
Distribution: Slackware 15 and current
Posts: 60

Original Poster
Rep: Reputation: 7
Thank you Hazel, appreciate the clarification.
 
Old 05-08-2024, 06:28 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by ccoffee View Post
Also, if I build a custom kernel from say 5.15.150, does this need an initrd like the "generic-5.15.145" since "huge-5.15.145" does not?
It depends upon what drivers you choose to build in as opposed to building them as modules. Your custom kernel may require an initrd or it may not.
Quote:
Originally Posted by ccoffee View Post
Are the kernel modules built when I try and build a kernal from scratch since Slackware kernel upgrades have a "modules-5.15.145" ?
Again, that depends upon your kernel build configuration.
Quote:
Originally Posted by ccoffee View Post
Just trying to figure out the difference between the Slackware64 kernels and one that may be build from the Linux Kernel.org site.
None. Patrick doesn't patch or otherwise modify the kernel source at all. He uses the source code as published by Linus.
 
Old 05-08-2024, 07:44 PM   #5
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
It's also a really, really good idea to keep two kernels installed at the same time--one new one and your last good one. (So I've got 6.6.29 and 6.6.30. 6.6.30 had a huge bug for me, so it's 6.6.29 until 6.6.31 comes out, then I'll keep v. 29 installed, uninstall 30, and see how it goes with 31.
 
  


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
disk thrashing on 5.15.x kernels (but not on 4.4.x or 4.19.x kernels) twy Slackware 12 06-29-2022 02:31 AM
How to upgrade kernels & its assundary other packages WITHOUT removing the old kernels ? babydr Slackware 14 03-16-2022 01:33 AM
Getting Assertion `kernels [x] == kernels [x]' failed with emulator in Slackware 14 Holering Slackware 1 05-10-2013 03:43 PM
backward compatibility in kernels + custom kernels + more queries mmp_3341 Linux - Kernel 1 04-12-2007 07:28 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

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

All times are GMT -5. The time now is 12:53 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