LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-09-2022, 09:06 AM   #1
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Rep: Reputation: 36
Make 5.15 kernel work on 11 Gen Intel PCs (driver selection help needed)


Hi,

I'm trying to update the kernel from (4.14.x to 5.15.x) of the following sedutil repo, but I'm not entirely successful. I managed to update the .config with make oldconfig, and the whole project compiles and boots on older hardware as before.

The problem is that the new kernel (Rescue64 boot image) does not boot on 11 Gen Intel hardware (it freezes as soon as the boot image has been decompressed). I'm sure I'm missing some drivers, but I don't know which. What I want to achieve here is a generic kernel config that boots on most modern PCs, but it doesn't contain stuff like networking, virtualization, multimedia, etc, as they are unnecessary for an SSD pre-boot image.

Could somebody help me by letting me know which kernel modules I need to enable to make this version work on modern 11 Gen (and beyond) Intel systems?

The current (not entirely working) kernel config can be found as an attachment.

Thanks in advance.
Attached Files
File Type: txt kernel.config.txt (130.1 KB, 16 views)
 
Old 09-09-2022, 10:40 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What makes you think it freezes? Perhaps it stops video output so you won't see anything and in actuality it boots up? If it boots then you should check dmesg.
 
Old 09-09-2022, 11:17 AM   #3
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Emerson View Post
What makes you think it freezes?
Because the cursor freezes. No input is possible, there's nothing on the screen (except the not blinking cursor), and the computer can only be turned off by pushing the power button for many seconds (~10). There is no dmesg because the system is booted from a USB stick, nothing is preserved.
 
Old 09-09-2022, 12:56 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I tell you your display may be disabled and you tell me cursor freezes ... Yes, the cursor may freeze when your computer stops video output.
I recite, how do you know no input is possible if your display is disabled? Does NumLock LED turn on/off? You should try and SSH into it, then you can read the dmesg from RAM.

Anyhow, looking at your .config all graphics drivers are built as modules. Do you generate a custom initramfs for every machine? Because at boot time modules cannot be loaded from hard drive, it is not mounted yet. All drivers you need for boot must be either built in or provided in initramfs. With current config and without initramfs your screen will freeze and you won't be able to see it booting (although it is booting) ... oh wait ...
 
Old 09-09-2022, 02:09 PM   #5
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Emerson View Post
Does NumLock LED turn on/off?
Forgot to mention, that I don't have a NumLock LED (it is a laptop), but I do have a CapsLock LED, and that stops working as soon as I get the blank screen. Switching CapsLock never gets disabled if it runs on older hardware.

Quote:
Originally Posted by Emerson View Post
all graphics drivers are built as modules
I really have no choice in this. The menuconfig configurator doesn't allow me to choose anything else if I want it compiled.

Quote:
Originally Posted by Emerson View Post
With current config and without initramfs your screen will freeze and you won't be able to see it booting
As stated in the original post: and boots on older hardware as before. This means that the generated image _does_ work as intended (everything gets mounted, loaded, displayed, etc.), but only on older hardware. This also means that the general approach to building the image written to the USB stick (initramfs, compiling as modules, etc.) is also valid.

I'm just applying basic logic here: If everything works fine on older hardware, but it doesn't on a new one (using the exact same USB stick), then it must be a kernel config problem. Yes? Probably a missing module? Because I updated the kernel conf from a several years older version (also stated in the OP), where the support for the hardware I'm trying to run it on now didn't even exist? And maybe it should be enabled and that would fix the problem? That is what the original question is all about.

The VGA driver can certainly be a problem, but those are updated within the same module usually (I don't see any new Intel VGA modules in the conf, but please point it out if I missed it), so there is not much to think about here. I suspect something else is missing (PCI, memctrl, some bus, I don't know). I hoped someone is more versed in recent hardware than I am and could point out what needs to be enabled. That's it.

Also you usually don't need to press the power button for 10 secs (also stated in the OP) in order to turn off a computer if it is not frozen. Or do I have my facts wrong? Just in case: I tested it on an older PC, and a short press to the power button does turn it off after everything has been loaded (because it is not frozen?).

Any ideas?
Thanks.
 
Old 09-09-2022, 02:47 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
OK, maybe it is freezing.
Boot with something that works and look at 'lspci -nnk' output. This lists all PCI devices and drivers used for them. Make sure your kernel and initramfs have drivers for hard drive controller (or USB controller if booting from USB).
Just to be on the same page. You have a USB stick with new kernel, this stick boots some other computer, but not the laptop? Correct?
USB stick with older kernel boots this laptop. Correct?
 
Old 09-09-2022, 03:37 PM   #7
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Emerson View Post
Just to be on the same page. You have a USB stick with new kernel, this stick boots some other computer, but not the laptop? Correct? USB stick with older kernel boots this laptop. Correct?
Almost correct. The same USB stick boots on an older computer but not on a new one, and it doesn't seem to matter which kernel version I have. I suspect this is because the selection of compiled modules didn't change, so I'm just having the same collection of stuff with a new version tag on it (bar the updated code in the already selected modules).

Quote:
Originally Posted by Emerson View Post
look at 'lspci -nnk' output.
Wow, that's a nice trick. I didn't know lspci has an output with drivers and modules. I was just about to ask how can one find the correct module for the stuff listed by lspci, but it seems you already provided the answer. Thanks. Will check this one tomorrow, let's hope it brings me closer to a solution.

Thanks again.
 
Old 09-21-2022, 01:47 PM   #8
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Original Poster
Rep: Reputation: 36
Solution: Compile the DRM and related video drivers into the kernel (along with nvme, USB controllers, or anything needed for boot) and it can fix the problem. I don't know if this is the preferred solution, but it seems to work.
 
  


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
LXer: Purism Launches 2nd Gen Librem Mini Linux PC with a 10th Gen Intel Core CPU LXer Syndicated Linux News 0 11-05-2020 11:03 PM
LXer: Intel 6th and 7th Gen box PCs offer PCIe graphics expansion LXer Syndicated Linux News 0 11-06-2018 06:33 PM
3rd gen CPU in a 2nd Gen Laptop Motherboard benifits are? BW-userx Linux - Hardware 4 05-18-2016 01:56 PM
NS 2 compilation error: make: *** No rule to make target â??VERSIONâ??, needed by â??gen/ve Marz22 Linux - Newbie 8 11-21-2011 02:20 AM
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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