LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-12-2019, 05:30 AM   #31
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452

Quote:
Originally Posted by Scribtor View Post
Would I need a second initrd?
Yes, definitely. Initrd images are kernel-specific. If you are going to have alternative kernels, you need alternative initrds to go with them. Make sure you give them different names (see my post above on what happens if you don't!)
Quote:
How to configure/build/boot this second kernel?
Other people have provided their own answers to this. Here is mine. There are two possible starting points:
1. make defconfig
2. The official configure file in /boot.
If you use the latter, you must copy it into your source tree as .config. I'd prefer to start from there since Pat has configured it to work well in Slackware. Then make menuconfig. But you can remove a lot of the drivers for hardware you don't have, which will speed up the compilation. You might also want to build the ext4 driver right in so that you don't actually need an initrd. Do make sure you include drivers for the hardware you know you have, either as builtins or as modules.
Quote:
Am I wrong to assume that newer kernels have better configured hardware controllers/drivers and also controllers/drivers for more recent hardware?
I don't know about better configured. They are more likely to contain drivers for recent hardware.
Quote:
Perhaps it was overlooked or not stated precisely> building 5.x kernels produced no bzImage/vmlinuz files that one could copy.
Then you must have done the build wrong. The bzImage should be in arch/x86_64/boot.
 
Old 11-12-2019, 09:38 AM   #32
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by hazel View Post
Yes, definitely. Initrd images are kernel-specific.
Yes and no ;-) You can make one initrd with modules for two ore more kernels ;-)
 
Old 11-12-2019, 09:57 AM   #33
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
I assume you'd have to do that by hand. I can't see a way to do it using the mkinitrd script.
 
Old 11-12-2019, 10:17 AM   #34
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by hazel View Post
I assume you'd have to do that by hand. I can't see a way to do it using the mkinitrd script.
More than one kernel? It's possible, the -k option accepts a list of versions separated by :.

It's possible to manage one initrd-tree and initrd.gz per kernel, with -o and -s options.
 
  


Reply

Tags
boot loader, initrd, kernel, lilo, ramdisk



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
[SOLVED] imagemagick - converting bitmap to the same parameters as other bitmap (apart from resolution) Irbis Linux - Software 5 03-29-2019 03:38 PM
Switching from win10 to a linux distro with win10 vm kevgk Linux - Virtualization and Cloud 3 11-01-2018 05:36 AM
Lilo breaking Win10 boot (BIOS not UEFI) dalgrim Slackware 10 05-08-2016 09:57 PM
convertion of 24 bit bitmap image to 8 bit bitmap image vipulc Linux - General 2 03-10-2006 08:22 AM

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

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