Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: retroracer on 27 May 2021, 21:50:35

Title: [SOLVED]Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 21:50:35
So im trying to switch over from Manjaro and Im trying to get zenpower working to monitor temps but I keep getting this error trying to activate it:

modprobe: FATAL: Module zenpower not found in directory /lib/modules/5.12.6-artix1-1

 I built zenpower through pamac. I actually had the same issue when I first tried on Manjaro as well, but I tried a diffrent package that installed what I was apparently missing, but none of the 3 zenpower pckages available are giving me that option in Artix, and I didnt pay close enough attention on manjaro to know what Im actually missing :(. I have linux-headers installed.

Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 22:49:13
you need install one of this packages: zenpower-zen3-dkms, zenpower-dkms or zenpower-dkms-git. Be sure that module is realy compiled during installing!

The zenpower kernel module will be available on reboot. To load it now, run "modprobe -r k10temp && modprobe zenpower" as root'

tested on linux-zen:
Code: [Select]
xxx@picasso ~]$ lsmod | grep zenpower
zenpower               16384  0
Title: Re: Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 22:54:16
ive tried all 3 of them

ive already blacklisted k10temp, so sudo modprobe zenpowr should be all I need, but its giving me that error everytime. how can I confirm the module i actually being built? Im admittedly still rather new to linux (around a month) and am still doing a lot of copy and pasting lol.
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 22:57:02
 use paste.artixlinux.org and put here some output, please (copy everything from the pamac -S zenpower-dkms command down )

example: https://paste.artixlinux.org/view/056dd8b8
Title: Re: Modprobe Issue : Module Not Found
Post by: capezotte on 27 May 2021, 23:02:06
how can I confirm the module i actually being built?

Run on your terminal (might take a while, since that folder has a lot of things).

Code: [Select]
find "/lib/modules/$(uname -r)" -name 'zenpower.ko*'

If you get no output, then the module really wasn't built.

If I had to guess, I think you're missing the linux-headers package (which is needed for Dkms modules to build). Then reinstall the dkms packages. as alium said, you've already ruled this out
Title: Re: Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 23:02:46
https://paste.artixlinux.org/view/88c9314d

thats what Im getting from the command you rrequested
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:03:28
but he wrote: " I have linux-headers installed. "
Run on your terminal (might take a while, since that folder has a lot of things).

Code: [Select]
find "/lib/modules/$(uname -r)" -name 'zenpower.ko*'

If you get no output, then the module really wasn't built.

If I had to guess, I think you're missing the linux-headers package (which is needed for Dkms modules to build). Then reinstall the dkms packages.

Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:04:53
sorry, i don't use pamac, just try install zenpower as you know and put here the output...

it should be probably pamac install zenpower-dkms
Title: Re: Modprobe Issue : Module Not Found
Post by: capezotte on 27 May 2021, 23:07:05
AFAIK for AUR packages the command is pamac build zenpower-dkms.

Either way, can you show us the output of one of these commands?
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:07:56
as i wrote, i use not pamac  8)  :)
Title: Re: Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 23:09:36
sorry, i don't use pamac, just try install zenpower as you know and put here the output...

it should be probably pamac install zenpower-dkms

https://paste.artixlinux.org/view/14e47fd2
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:11:26
Code: [Select]
Error! Bad return status for module build on kernel: 5.12.6-artix1-1 (x86_64)
Consult /var/lib/dkms/zenpower/0.1.12/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m zenpower -v 0.1.12 -k 5.12.6-artix1-1' returned 10

now you know why... your module was not builded

put here output from
Code: [Select]
cat /var/lib/dkms/zenpower/0.1.12/build/make.log
Title: Re: Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 23:13:41
Code: [Select]
Error! Bad return status for module build on kernel: 5.12.6-artix1-1 (x86_64)
Consult /var/lib/dkms/zenpower/0.1.12/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m zenpower -v 0.1.12 -k 5.12.6-artix1-1' returned 10

now you know why... your module was not builded

put here output from
Code: [Select]
cat /var/lib/dkms/zenpower/0.1.12/build/make.log

yea I figured as much from you guys earlier response cause I couldnt find any .ko files for it...what can I do about fixing it?

edit: Aurora-R10:[neale]:~$ cat /var/lib/dkms/zenpower/0.1.12/build/make.log
DKMS make.log for zenpower-0.1.12 for kernel 5.12.6-artix1-1 (x86_64)
Thu May 27 13:08:24 EDT 2021
make: uname: No such file or directory
make: make: No such file or directory
make: *** [Makefile:27: modules] Error 127
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:14:08
put here output from
Code: [Select]
cat /var/lib/dkms/zenpower/0.1.12/build/make.log 
Title: Re: Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 23:15:31
put here output from
Code: [Select]
cat /var/lib/dkms/zenpower/0.1.12/build/make.log 

i edited my other post but just in case

Aurora-R10:[neale]:~$ cat /var/lib/dkms/zenpower/0.1.12/build/make.log
DKMS make.log for zenpower-0.1.12 for kernel 5.12.6-artix1-1 (x86_64)
Thu May 27 13:08:24 EDT 2021
make: uname: No such file or directory
make: make: No such file or directory
make: *** [Makefile:27: modules] Error 127
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:17:09
did you updated your kernel today?

are you sure, that linux-headers are really installed?

what say
Code: [Select]
uname -r
Title: Re: Modprobe Issue : Module Not Found
Post by: capezotte on 27 May 2021, 23:19:30
I've tried building the kernel module here, but weirdly, I only get retroracer's errors (same log, even) if I use pamac as the AUR helper.

Yay and makepkg work fine.

@retroracer, does a manual build process for the package work?

Code: [Select]
git clone https://aur.archlinux.org/zenpower-dkms.git
cd zenpower-dkms
makepkg -fsi
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:20:30
I've tried building the kernel module here, but weirdly, I only get retroracer's errors (same log, even) if I use pamac as the AUR helper.

Yay and makepkg work fine.

@retroracer, does a manual build process for the package work?

Code: [Select]
git clone https://aur.archlinux.org/zenpower-dkms.git
cd zenpower-dkms
makepkg -fsi
maybe pamac's bug??
Title: Re: Modprobe Issue : Module Not Found
Post by: alium on 27 May 2021, 23:22:27
@retroracer maybe you can install another AUR helper ..

Code: [Select]
pacman -S trizen 
Code: [Select]
trizen -S zenpower-dkms
for checking, if this way works....
Title: Re: Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 23:24:05
I've tried building the kernel module here, but weirdly, I only get retroracer's errors (same log, even) if I use pamac as the AUR helper.

Yay and makepkg work fine.

@retroracer, does a manual build process for the package work?

Code: [Select]
git clone https://aur.archlinux.org/zenpower-dkms.git
cd zenpower-dkms
makepkg -fsi


this worked....thank you guys so much
Title: Re: Modprobe Issue : Module Not Found
Post by: capezotte on 27 May 2021, 23:30:25
So that was a bug in Pamac.I second @alium's recommendation of using a more "classic" AUR helper (like yay or trizen) that is made to work on Arch/Artix. They do the same thing, and likely won't have bugs like these since they only wrap pacman (rather than trying to replace it).
Title: Re: [SOLVED]Modprobe Issue : Module Not Found
Post by: retroracer on 27 May 2021, 23:56:35
So that was a bug in Pamac.I second @alium's recommendation of using a more "classic" AUR helper (like yay or trizen) that is made to work on Arch/Artix. They do the same thing, and likely won't have bugs like these since they only wrap pacman (rather than trying to replace it).

ya I had yay installed already so I could get GreenWithEnvy, but I'll go ahead and install trizen as well. Pamac having the GUI is super helpful as a beginner (and that was the first issue I had with it), but if its going to keep having issues its ease of use becomes moot lol.