Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 directories in /lib/modules...is this ok?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
s10case
n00b
n00b


Joined: 24 Mar 2005
Posts: 6
Location: Everett Washington USA

PostPosted: Thu Mar 24, 2005 7:35 pm    Post subject: 2 directories in /lib/modules...is this ok? Reply with quote

Hi,

I installed a 2.6 kernel and it put the modules in /lib/modules/2.6.11-gentoo-r4MikesKernel. Then, I did an emerge nvidia-kernel. This placed the nvidia driver in /lib/modules/2.6.11-gentoo-r4Mikes

The thing to notice is that the directories under /lib/modules are not the same for the nvidia driver and all the drivers compiled by the kernel.

I used a kernel config option where you can input your own line of text which is appended to the end of the kernel name, which is why you see Mikes and MikesKernel in there. I thought it would be fun.

My question is, will I be ok with the nvidia module being in the different directory, or should I move it into the directory with all of the other modules, or should I take some other course of action to ensure that the nvidia module works? Thanks!

Mike
_________________
Tread lightly, lest ye waken the beast within
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Mar 24, 2005 7:54 pm    Post subject: Reply with quote

So - what did you enter as ExtraVersion in the kernel config ? Mikes or MikesKernel ?
If the latter, the nvidia emerge somehow screwed up the extra string - have you changed that since building the kernel ?

It does have to be in the same directory tree, yes - otherwise you will have to specify its exact location with insmod, which is never a good idea.

Moving it to the right directory is also a pain after 35 kernel rebuilds ;-)
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
s10case
n00b
n00b


Joined: 24 Mar 2005
Posts: 6
Location: Everett Washington USA

PostPosted: Thu Mar 24, 2005 8:15 pm    Post subject: Reply with quote

adaptr,

Thanks for your reply

The string name was "Mikes Kernel".

So what problems will occurr if I simply move it to the /lib/modules/2.6.11-gentoo-r4MikesKernel/ ?
Or does it need to go into some subdirectory of /lib/modules/2.6.11-gentoo-r4MikesKernel/ ?

Currently, nvidia.ko is directly under /lib/modules/2.6.11-gentoo-r4Mikes/

Thanks, Mike :D
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Mar 24, 2005 8:32 pm    Post subject: Reply with quote

Remove the space from the string, rebuild the kernel and the nvidia driver.

Really.

EDIT: I just checked, and the help for the Extraversion option doesn't say you should not use spaces here, so it's probably a bug in the nvidia ebuild.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
s10case
n00b
n00b


Joined: 24 Mar 2005
Posts: 6
Location: Everett Washington USA

PostPosted: Thu Mar 24, 2005 8:43 pm    Post subject: Reply with quote

adaptr,

I was fearing that would be the ultimate result :(

Thanks!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Mar 24, 2005 8:48 pm    Post subject: Reply with quote

Fearing what ?
Waiting 15 minutes for the kernel to compile ?
That's hardly punishment...
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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