compiled kernel, but no headers and no devel package

randomadjective

New Member
Joined
Jan 25, 2022
Messages
1
Reaction score
0
Credits
17
Hi there. Looking for some help with compiling the kernel.

I patched and compiled kernel 5.15.6 to fix a problem with my laptop's soundcard. The fix was successful, but now I have no headers and no kernel-devel.

kernel-headers was successfully generated and I installed it, but the NVIDIA installer (from NVIDIA's website) fails at DKMS:

Code:
ERROR: Failed to run '/usr/sbin/dkms build -m nvidia -v 470.94 -k 5.15.16': Error! Your kernel headers for kernel 5.15.16 cannnot be found at /lib/modules/5.15.16/build or /lib/modules/5.15.16/source.

Please install the linux-headers-5.15.16 package or use the --kernelsourcedir option to tell DMKS where it's located.

I copied the source from the unpacked tar to /lib/modules/5.15.16/source, but the error remains.

When I install it with dnf install akmod-nvidia I get the error:

Code:
NVIDIA kernel module missing. Falling back to nouveau.

I'd like to get NVIDIA installed, but more than that, I'd like to get working kernel, headers and devel packages made, so I can share this fix with others.

I'm not very experienced with kernel compiling, so any help would be much appreciated.

Below is my hardware, and process for compiling the kernel.

Fedora 35, HP Spectre x360 15-eb0016TX.

Code:
curl https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.16.tar.xz|tar -xJ

cd  linux-5.15.16
vim ~/linux-5.15.16/sound/pci/hda/patch_realtek.c

Added the following line

Code:
SND_PCI_QUIRK(0x103c, 0x86e8, "HP Spectre x360 15-eb0xxx",

Code:
Make menuconfig
make -j7
make binrpm-pkg
 

Members online


Latest posts

Top