LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-26-2022, 03:05 PM   #481
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 Jeebizz View Post
I figured though if it is this trivial , why not? Plus I am getting old (Get off my digital lawn you young people! ) , and I just want that reminder that ' yes you old fart, you are indeed running generic and not huge.'
Trivial would depend on your definition. It would require separating the modules package and then contain two separate sets of modules, most of them being duplicates. While it's not that difficult to separate the modules package, it is different than how Slackware has been operating since it introduced the huge kernel in 2006 for the eventual Slackware 12.0.
 
Old 03-26-2022, 03:09 PM   #482
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by bassmadrigal View Post
Trivial would depend on your definition. It would require separating the modules package and then contain two separate sets of modules, most of them being duplicates. While it's not that difficult to separate the modules package, it is different than how Slackware has been operating since it introduced the huge kernel in 2006 for the eventual Slackware 12.0.
I see, I guess uname just works different - as I never understood why it doesn't already just reflect 'huge' and 'generic' , since in boot each kernel is already labeled as such, oh well.
 
Old 03-26-2022, 03:18 PM   #483
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 Jeebizz View Post
I see, I guess uname just works different - as I never understood why it doesn't already just reflect 'huge' and 'generic' , since in boot each kernel is already labeled as such, oh well.
That is just the filename. You can pick whatever you want for the filename. However, the kernel's designation within the system is determined based on its version and anything appended to it using "local version". Adding a local version option to say huge or generic would then show the kernel's version as 5.17.1-huge, but that would then require the modules folder to match the kernel version, meaning we'd need two separate module folders for the generic and huge kernels.
 
Old 03-26-2022, 03:25 PM   #484
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by bassmadrigal View Post
That is just the filename. You can pick whatever you want for the filename. However, the kernel's designation within the system is determined based on its version and anything appended to it using "local version". Adding a local version option to say huge or generic would then show the kernel's version as 5.17.1-huge, but that would then require the modules folder to match the kernel version, meaning we'd need two separate module folders for the generic and huge kernels.

Ok, that makes sense. Request withdrawn then.
 
Old 03-26-2022, 04:27 PM   #485
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Or go the "local version" label way and symlink both modules tree to genuine tree ?
Would it work ? I guess it could.
Would it be ugly ? The Slackware way ? To each his own and Pat's choice for everybody !
 
Old 03-26-2022, 05:06 PM   #486
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,603

Rep: Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468Reputation: 3468
Quote:
Originally Posted by Tonus View Post
Or go the "local version" label way and symlink both modules tree to genuine tree ?
Would it work ? I guess it could.
Would it be ugly ? The Slackware way ? To each his own and Pat's choice for everybody !
Nope, it will NOT work.

Because also the modules are hardwired for the kernel versions, then the 5.17.1-generic modules will not work with a 5.17.1-huge kernel, because of the version mismatch.
 
Old 03-26-2022, 06:18 PM   #487
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by LuckyCyborg View Post
Nope, it will NOT work.

Because also the modules are hardwired for the kernel versions, then the 5.17.1-generic modules will not work with a 5.17.1-huge kernel, because of the version mismatch.
Are you sure about that ?

From what I see, there is only one package kernel-modules-*.txz for both
you can find the modules tree in /lib/modules/

The only difference I see, is the kernel itself:
vmlinuz-generic & vmlinuz-huge

For me, the kernel-huge is just a kernel-generic with some "built-in" modules, so there is no trouble using the same modules tree as the generic

Last edited by marav; 03-26-2022 at 06:22 PM.
 
1 members found this post helpful.
Old 03-26-2022, 06:25 PM   #488
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 597

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
Are you sure about that ?

From what I see, there is only one package kernel-modules-*.txz for both
you can find it in /lib/modules/

The only difference I see, is the kernel itself:
vmlinuz-generic & vmlinuz-huge

For me, the kernel-huge is just a kernel-generic with some "built-in" modules, so there is no trouble using the same modules tree as the generic
You are talking about the kernel package names. This is not what LuckyCyborg described.
Also he is correct. The "localversion" string will become part of the kernel version string, so from just a single "5.17.1" kernel version we would go to two different kernel versions "5.17.1-generic" and "5.17.1-huge" and like LuckyCyborg said, kernel modules for one kernel will not work with the other because of the version mismatch. Waste of effort.
 
Old 03-26-2022, 06:32 PM   #489
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by Windu View Post
You are talking about the kernel package names. This is not what LuckyCyborg described.
Also he is correct. The "localversion" string will become part of the kernel version string, so from just a single "5.17.1" kernel version we would go to two different kernel versions "5.17.1-generic" and "5.17.1-huge" and like LuckyCyborg said, kernel modules for one kernel will not work with the other because of the version mismatch. Waste of effort.
Patrick doesn't use the "localversion" to build the modules
Code:
blackstar:~:# grep CONFIG_LOCALVERSION /usr/src/linux-5.17/.config 
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
http://ftp.slackware.com/pub/slackwa...les.SlackBuild

Otherwise, we would have :
/lib/modules/5.17.0-generic
and
/lib/modules/5.17.0-huge


From
Code:
http://ftp.slackware.com/pub/slackware/slackware64-current/source/k/build-all-kernels.sh
Code:
  # Build kernel-modules (for the just built generic kernel, but most of them
  # will also work with the huge kernel):
PS: The "Waste of effort." was finally not so much a waste ;-)

Last edited by marav; 03-26-2022 at 06:50 PM.
 
1 members found this post helpful.
Old 03-26-2022, 07:02 PM   #490
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 marav View Post
Patrick doesn't use the "localversion" to build the modules
Code:
blackstar:~:# grep CONFIG_LOCALVERSION /usr/src/linux-5.17/.config 
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
http://ftp.slackware.com/pub/slackwa...les.SlackBuild

Otherwise, we would have :
/lib/modules/5.17.0-generic
and
/lib/modules/5.17.0-huge


From
Code:
http://ftp.slackware.com/pub/slackware/slackware64-current/source/k/build-all-kernels.sh
Code:
  # Build kernel-modules (for the just built generic kernel, but most of them
  # will also work with the huge kernel):
PS: The "Waste of effort." was finally not so much a waste ;-)
The suggestion was to make a way for uname to show whether you're using a generic or huge kernel. The only way to do that is by appending it to the end of the kernel version with localversion, but that would break the existing modules package and you'd need to split it into two separate folders for modules (most likely with separate packages). Modules are built for the version (and localversion, if used), so they are not interchangeable if Pat were to use localversion to add generic or huge.
 
Old 03-26-2022, 07:29 PM   #491
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by bassmadrigal View Post
The suggestion was to make a way for uname to show whether you're using a generic or huge kernel. The only way to do that is by appending it to the end of the kernel version with localversion, but that would break the existing modules package and you'd need to split it into two separate folders for modules (most likely with separate packages). Modules are built for the version (and localversion, if used), so they are not interchangeable if Pat were to use localversion to add generic or huge.
Right
That's why I think, because, who can do more, can do less

Quote:
Originally Posted by Tonus View Post
Or go the "local version" label way and symlink both modules tree to genuine tree ?
Would it work ? I guess it could.
Would it be ugly ? The Slackware way ? To each his own and Pat's choice for everybody !
Yes, it will be ugly, but it will work.
 
Old 03-26-2022, 07:42 PM   #492
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 marav View Post
Yes, it will be ugly, but it will work.
I am not knowledgeable on it, but according to others, the modules contain the full kernel version, including localversion. Based on that, the "ugly" hack would not work.
 
Old 03-26-2022, 08:32 PM   #493
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by bassmadrigal View Post
I am not knowledgeable on it, but according to others, the modules contain the full kernel version, including localversion. Based on that, the "ugly" hack would not work.
Indeed
 
Old 03-27-2022, 12:30 PM   #494
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,167

Rep: Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339
Midnight Commander 4.8.28
The tarball, http://www.midnight-commander.org/do...4.8.28.tar.bz2
The change log, https://midnight-commander.org/wiki/NEWS-4.8.28
 
1 members found this post helpful.
Old 03-28-2022, 04:45 AM   #495
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by Petri Kaukasoina View Post
Then you don't get the right answer if you don't use ext4.
Indeed ;-)

Alt. cmd:
dmesg| grep -q -m1 'BOOT_IMAGE=.*huge' && echo huge||echo generic

Last edited by marav; 03-28-2022 at 04:48 AM.
 
  


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
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

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