Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
depmod pointing to wrong path
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
pharm
n00b
n00b


Joined: 12 May 2003
Posts: 8
Location: columbus, in, usa

PostPosted: Mon Oct 06, 2003 2:00 am    Post subject: depmod pointing to wrong path Reply with quote

Okay i thought i was just messing things up trying to do a kernal upgrade. so i did a fresh install. and I am still getting the same errors!

I did a complete 1stage build and the only kernel i merged was 2.4.20-gentoo-r7

no others! my depmod is still trying to load modules.dep from 2.4.20-gentoo-r6!

like i said no other kernal has been on the system and i did a "text book" install. !! any modules i try to load give me dependancies errors and its because the depmod is looking at 2.4.20-gentoo-r6 directory which is not even existent. all my modules are cp'd to the gentoo-r7 folder and stuff they just won't load! where is the path settings for the depfile="location" var so i can edit it manually.
Back to top
View user's profile Send private message
GentooOpus
n00b
n00b


Joined: 31 Mar 2003
Posts: 25
Location: Asheboro, NC

PostPosted: Thu Oct 16, 2003 2:26 am    Post subject: Similar Problem with non-gentoo kernel Reply with quote

I'm having a similar problem.

I've built a new kernel but none of the modules will load during a normal boot. the errors that I get are unresolved symbols or no such devices.

if I use depmod -ae 2.4.22cd for the new kernel, it access the correct lib modules dir and modules dep but reports bad symbols.

if I use and explicit depmod

depmod -a -F /usr/src/linux/System.map -C /etc/modules.conf 2.4.22cd

the modules and depmod are updated without error.

The odd thing is my system boots the old kernel without error, yet I can't even run a depmod -a on it.

If anyone has any idea, as to what's happening here. I'm certainly all ears.


G
Back to top
View user's profile Send private message
IvoryTiger
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2002
Posts: 132

PostPosted: Thu Oct 16, 2003 3:45 am    Post subject: Re: depmod pointing to wrong path Reply with quote

pharm wrote:
Okay i thought i was just messing things up trying to do a kernal upgrade. so i did a fresh install. and I am still getting the same errors!

I did a complete 1stage build and the only kernel i merged was 2.4.20-gentoo-r7

no others! my depmod is still trying to load modules.dep from 2.4.20-gentoo-r6!

like i said no other kernal has been on the system and i did a "text book" install. !! any modules i try to load give me dependancies errors and its because the depmod is looking at 2.4.20-gentoo-r6 directory which is not even existent. all my modules are cp'd to the gentoo-r7 folder and stuff they just won't load! where is the path settings for the depfile="location" var so i can edit it manually.


Two things, did you try a modules-update and where is your /usr/src/linux link pointing to?
_________________
--
For those about to compile...we salute you!
Back to top
View user's profile Send private message
GentooOpus
n00b
n00b


Joined: 31 Mar 2003
Posts: 25
Location: Asheboro, NC

PostPosted: Thu Oct 16, 2003 11:34 pm    Post subject: Reply with quote

modules-update produces that same series of unresolved symbol errors


I've re-emerge/updated modutils module-init-tools binutils also

I actually have two links in my /usr/src path one for "linux", the other "linux-2.4" to matche what's in modules.autoload.d

both are pointing to my /usr/src/linux-2.4.22cd build directory path

What I find odd is that even on a kernel that boots correctly,

I still get depmod errors.

G
Back to top
View user's profile Send private message
GentooOpus
n00b
n00b


Joined: 31 Mar 2003
Posts: 25
Location: Asheboro, NC

PostPosted: Sat Oct 18, 2003 12:06 am    Post subject: Its always the little things.... Reply with quote

Well, I think I fixed my problem....

Some how the user and group settings for both of my linux kernel build directors had been set to something other than root. Both were set to user and group 573 which is non existent on my system.

How, when or what agent caused this, I have no idea. All I know is that I never set such a screwy parameter.

Anyhow check your permissions on the linux build directory.

save your .config file to another area and then run make mrproper to fully recent the kernel build environment

then recopy your .config file back to the kernel dir and run

menuconfig and save. This will allow you to dep all the modules

then

make dep clean bzImage modules modules_install

mount your boot partition and

make install

This has finally...... fixed my system kernel build problems.

G
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