Trouble with Modules

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

pxc
Growing Hen
Posts: 175
Joined: Mon Aug 28, 2006 20:57

Post by pxc » Fri Aug 03, 2007 21:22

ThorAxe1 wrote:

Code: Select all

emerge ndiswrapper
doesn't work because I don't have access to the internet on Sabayon, which is the reason I'm installing ndiswrapper. I'm using it to install the driver for my WG111V2 dongle.
If you can download the driver to make it yourself, you can just download it on another computer, copy it to your /usr/portage/distfiles and rename it to whatever Portage expects (probably ndiswrapper-x.x.tar.bz2). Then you can do the emerge without downloading it on that computer.

Jrgong420
Baby Hen
Posts: 5
Joined: Thu Aug 02, 2007 16:26

Post by Jrgong420 » Mon Aug 06, 2007 16:32

:bump:
Hmmm...so nobody has any ideas as to why you con't compile modules normally (without emerge)? I abandoned the ipwraw driver but now I can't compile the driver for my usb wifi stick, still looking for a solution to be able to have the functionality of the other distros........ I imagine I am just doing something stupid.

pxc
Growing Hen
Posts: 175
Joined: Mon Aug 28, 2006 20:57

Post by pxc » Mon Aug 06, 2007 16:41

You can compile a module. The reason you might not want to is because it's harder to upgrade and keep track of if you compile it yourself, and then you also have to recompile it every time you upgrade your kernel.

Jrgong420
Baby Hen
Posts: 5
Joined: Thu Aug 02, 2007 16:26

Post by Jrgong420 » Mon Aug 06, 2007 23:43

I know this.......but any insight on HOW to compile a module or at least why I can't. I keep getting an error along these lines

Code: Select all

localhost ipwraw-ng # make
make -C /lib/modules/2.6.20-sabayon-r3/build M=/root/ipwraw-ng modules
make: *** /lib/modules/2.6.20-sabayon-r3/build: No such file or directory.  Stop.
make: *** [modules] Error 2 
thanks in advance

pxc
Growing Hen
Posts: 175
Joined: Mon Aug 28, 2006 20:57

Post by pxc » Tue Aug 07, 2007 1:43

I'm not totally sure, but to me that looks like you're just missing the kernel sources.

Try this, as root

Code: Select all

emerge =sabayon-sources-2.6.20-r3
And then try again.

Don't worry, if I'm wrong, no damage done (just a few more megs of space taken up!).

EDIT: Also (if this doesn't do it) check the INSTALL file in the directory you're making from and see if it has any other instructions (IE: tell the compiler where to find your modules directory). You shouldn't need to do that, though.

Jrgong420
Baby Hen
Posts: 5
Joined: Thu Aug 02, 2007 16:26

Post by Jrgong420 » Tue Aug 07, 2007 14:23

I thought I had the sources....but maybe not, I will give that a try and report back, thanks for the info.

Post Reply