View previous topic :: View next topic |
Author |
Message |
Someone316 n00b
Joined: 10 Jul 2003 Posts: 8
|
Posted: Fri Jul 11, 2003 6:10 pm Post subject: Unable to install modules |
|
|
I can't for the life of me install modules under Gentoo. I'm well aware in order
for modules to be installed one must type echo "module_name" >> /etc/module.autoload . I've tried loading several modules, but failed trying. In order to solve all of my problems, I've decided to install all modules as part of the kernel . Now it's time for me to install my nvidia module and it's not loading. I've tried the command modprobe nvidia , but this is the error I get: insmod failed and I'm trying load a module without GPL compatible license. Any help would be greatly appreciated. _________________ The box said, "Windows 98 or greater." So I installed Debian, Gentoo, and Slackware. |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Sat Jul 12, 2003 2:15 pm Post subject: Re: Unable to install modules |
|
|
Someone316 wrote: | I can't for the life of me install modules under Gentoo. I'm well aware in order
for modules to be installed one must type echo "module_name" >> /etc/module.autoload . I've tried loading several modules, but failed trying. In order to solve all of my problems, I've decided to install all modules as part of the kernel . Now it's time for me to install my nvidia module and it's not loading. I've tried the command modprobe nvidia , but this is the error I get: insmod failed and I'm trying load a module without GPL compatible license. Any help would be greatly appreciated. |
Verify that your /usr/src/linux/ symlink points to the current kernel. If it doesn't, make it do so and then re-emerge nvidia-kernel.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
MJN222 Tux's lil' helper
Joined: 24 Nov 2002 Posts: 77 Location: Livermore, CA
|
Posted: Sat Jul 12, 2003 3:07 pm Post subject: |
|
|
Also you'll need to have module support enabled in the kernel. I'm pretty sure you do, but it never hurts to double check it _________________ Do you lock your car when you leave it out in public? Why not do the same with your computer? |
|
Back to top |
|
|
Someone316 n00b
Joined: 10 Jul 2003 Posts: 8
|
Posted: Sat Jul 12, 2003 3:36 pm Post subject: |
|
|
Am I missing something here, it seems like there might be 2 kernels. I see one under /usr/src/linux which points to the kernel within that directory. I see another kernel in this directory /lib/modules/2.4.20-gentoo-r5. Is this the location on where my custom compiled kernel would be? _________________ The box said, "Windows 98 or greater." So I installed Debian, Gentoo, and Slackware. |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Sat Jul 12, 2003 3:40 pm Post subject: |
|
|
Someone316 wrote: | Am I missing something here, it seems like there might be 2 kernels. I see one under /usr/src/linux which points to the kernel within that directory. I see another kernel in this directory /lib/modules/2.4.20-gentoo-r5. Is this the location on where my custom compiled kernel would be? |
When you compile a kernel you must be in the /usr/src/linux directory (For newbie purposes) which isn't a real directory, but a symlink to your actual kernel directory which will also be in /usr/src/ something like this...
Code: | puggy@legolas puggy $ ls -all /usr/src/
total 5
drwxr-xr-x 6 root root 240 Jun 29 12:58 .
drwxr-xr-x 14 root root 472 Jun 28 02:03 ..
-rw-r--r-- 1 root root 0 Jun 28 02:03 .keep
lrwxrwxrwx 1 root root 17 Jun 29 12:58 linux -> linux-2.4.21-ac4/
drwxr-xr-x 14 root root 536 Jun 28 03:03 linux-2.4.21-ac3
drwxr-xr-x 14 root root 760 Jun 30 17:21 linux-2.4.21-ac4
drwxr-xr-x 14 root root 760 Jun 25 17:08 linux-2.4.21-rc1-ac2
drwxr-xr-x 13 root root 536 May 7 03:14 linux-2.4.21-rc1-ac4 |
As you can seem I'm currently using linux-2.4.21-ac4. When you compile a kernel in that directory it ends up as /usr/src/linux/arch/i386/boot/bzImage and the modules are installed into /lib/modules/2.4.21-ac4/ (In my case).
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
Cossins Veteran
Joined: 21 Mar 2003 Posts: 1136 Location: Copenhagen, Denmark
|
Posted: Sat Jul 12, 2003 3:41 pm Post subject: |
|
|
You obviously didn't read the installation manual carefully enough...
As the name suggests, /lib/modules/kernel-version contains the modules for the given kernel. The kernel itself (bzImage) should reside in /boot, be that a partition or a directory on the root filesystem.
Also, the /usr/src/linux-symlink should not point to the kernel itself, but to the location of the kernel sources from which the current kernel is compiled. In your case, like this:
Code: | linux -> linux-2.4.20-gentoo-r5 |
- Simon |
|
Back to top |
|
|
|