Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
@module-rebuild doesn't build modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Sun Apr 08, 2018 3:37 pm    Post subject: @module-rebuild doesn't build modules Reply with quote

Hi, I'm following the guide for switching between nvidia and nouveau, so I copied my kernel sources to a new directory, built a new kernel, installed the modules with make modules_install, but now emerge @module-rebuild doesn't install the modules in nvidia kernel directory. No error during the compilation.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Sun Apr 08, 2018 4:18 pm    Post subject: Reply with quote

Why you copied kernel sources?
Anyway nvidia-drivers is installed? emerge @module-rebuild work only if nvidia-drivers is already installed.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Sun Apr 08, 2018 5:35 pm    Post subject: Reply with quote

Nvidia-drivers is already installed. I copied kernel sources to have a nvidia kernel directory, and I selected it with eselect, but modules are not in /lib/4.14.32-gentoo-nvidia
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Sun Apr 08, 2018 6:28 pm    Post subject: Reply with quote

What system for switch you want to use (https://wiki.gentoo.org/wiki/Nouveau_%26_nvidia-drivers_switching#Switching_using_two_kernels)?
When I tried booting with two kernels there was no need to copy kernel source.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Mon Apr 09, 2018 3:05 pm    Post subject: Reply with quote

I need to have 2 different directory for nvidia and nouveau beacause it searches for modules in the nvidia directory (/lib/modules/4.14.32-nvidia, as I renamed my kernel like that)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Mon Apr 09, 2018 3:17 pm    Post subject: Reply with quote

Windmill wrote:
I need to have 2 different directory for nvidia and nouveau beacause it searches for modules in the nvidia directory (/lib/modules/4.14.32-nvidia, as I renamed my kernel like that)

If you use 'Switching using two kernels On Boot' you should only have 2 kernels compiled in /boot, one normal and one with suffix -nvidia (but is same compiled kernel), then is /etc/local.d/nvidia.start script that load correct module (nvidia or nouveau) dependency of kernel name
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Mon Apr 09, 2018 6:36 pm    Post subject: Reply with quote

I need to have another directory for nvidia kernel and modules because otherwise I can't load modules beacause it searches for modules inside"/usr/lib/nameofmykernel-nvidia" and can't find them
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Tue Apr 10, 2018 1:46 am    Post subject: Reply with quote

There is never a need to copy the kernel sources. At worst, you might need to build two copies of the kernel with differing .config files. According to fedeliallalinea's post, you don't even need that. If that is not your experience, then either the instructions are wrong or you deviated from them in some way. We would need to see exactly how you configured each kernel to understand which is the case.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum