View previous topic :: View next topic |
Author |
Message |
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Sun Apr 08, 2018 3:37 pm Post subject: @module-rebuild doesn't build modules |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Sun Apr 08, 2018 4:18 pm Post subject: |
|
|
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 |
|
|
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Sun Apr 08, 2018 5:35 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
|
Back to top |
|
|
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Mon Apr 09, 2018 3:05 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Mon Apr 09, 2018 3:17 pm Post subject: |
|
|
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 |
|
|
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Mon Apr 09, 2018 6:36 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21619
|
Posted: Tue Apr 10, 2018 1:46 am Post subject: |
|
|
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 |
|
|
|