You are not logged in.

#1 2023-10-24 11:32:42

schnupferich
Member
Registered: 2023-10-24
Posts: 14

Make searches for build in lts kernel - no headers missing [SOLVED]

I try to install my wifi driver because its missing, but as soon as i try to use make it tells me "make[1]: *** /lib/modules/6.1.59-1-lts/build: No such file or directory.  Stop.".
/build is to be found in /lib/modules/6.5.8-arch1-1/. I tried to reinstall linux headers and rebooted my system, but it still doesnt work. What am I doing wrong?
Thanks for the help smile

Last edited by schnupferich (2023-10-29 17:39:20)

Offline

#2 2023-10-24 11:37:26

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: Make searches for build in lts kernel - no headers missing [SOLVED]

At a guess as you did not include any information on where the driver was obtained from or the make command you used;  if `uname -r` returns 6.1.59-1-lts and you have not specified a kernel to build for the build assumes you want to build for the running kernel.
What is the device you are building the driver for?

Offline

#3 2023-10-24 11:47:56

schnupferich
Member
Registered: 2023-10-24
Posts: 14

Re: Make searches for build in lts kernel - no headers missing [SOLVED]

@loqs, im sorry im quite new to arch, but try to find my way in. uname -r actually returns 6.1.59-1-lts, is that even correct? The problem im facing with my driver is also kind of weird, i just found this version (rtl8852be) on stack overflow and aint not quite sure if its the right one. The wifi worked fine while installing arch just working on the iso, but as soon as i booted into arch itself it stopped working.
lspci -k tells me theres a driver in use for every piece of my hardware, except my network controller, which says
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
        Subsystem: Lenovo Device 4853
Im sorry for my bad english

Offline

#4 2023-10-24 12:04:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,234

Re: Make searches for build in lts kernel - no headers missing [SOLVED]

If it worked on the ISO then it worked because of the new kernel. Simply install and use the non LTS kernel. the LTS kernel is a year old at this point from a hardware support perspective.

Offline

#5 2023-10-24 12:09:57

schnupferich
Member
Registered: 2023-10-24
Posts: 14

Re: Make searches for build in lts kernel - no headers missing [SOLVED]

@V1del, Thank you, i guess thats the solution. How do i switch between kernels?
Feeling stupid to ask, but just found solutions online to switch to older kernels

Offline

#6 2023-10-24 12:13:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,234

Re: Make searches for build in lts kernel - no headers missing [SOLVED]

You can have both installed at the same time and will just need to adjust the config of your bootloader, where the wiki page of the bootloader you're using will contain the appropriate information.

Offline

#7 2023-10-24 12:21:19

schnupferich
Member
Registered: 2023-10-24
Posts: 14

Re: Make searches for build in lts kernel - no headers missing [SOLVED]

Thank you, it worked smile)

Offline

#8 2023-10-24 12:25:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,234

Re: Make searches for build in lts kernel - no headers missing [SOLVED]

Please mark as [SOLVED] by editing the title in your first post.

Offline

Board footer

Powered by FluxBB