You are not logged in.

#1 2004-12-07 21:53:57

ruwach
Member
Registered: 2004-06-14
Posts: 143

kernel will not load modules

hey there, didn't exactly know which forum to put this in, but i updated my kernel with pacman -Syu and it nuked a custom 2.6.7 kernel that i had before. So i rebuilt the custom 2.6.7 just like the wiki told me to. then i rebooted into it. the problem is, it does not see my two ethernet cards and some other stuff. i think that it is not finding the modules.
so what can i do? i know that they were included.
thanks

Offline

#2 2004-12-07 23:12:21

Win
Member
Registered: 2004-03-04
Posts: 155

Re: kernel will not load modules

Hi ruwach.

Take a look at the contents of /lib/modules/2.6.7/ and see if you have a full complement of modules. Your pacman -Syu upgrade would have wiped them out and set up another modules directory for the upgrade kernel (you won't be the first or last to have this happen with an upgrade).

You may have to: (a) save your custom kernel files (i.e., the relevant kernel files in /boot); and (b) perform a standard 2.6.7 install; and (c) replace the standard kernel files with your previously saved custom kernel files.

Regards,

Win

Offline

#3 2004-12-07 23:58:54

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: kernel will not load modules

ok, i checked and this is what i have in /lib/modules
3 folders
2.6.7
2.6.7-custom   and
2.6.9-Arch

each have stuff in them, but not all the same stuff,
so what should i do now?
thanks for the knowlage btw

Offline

#4 2004-12-08 00:55:02

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: kernel will not load modules

Try doing "depmod -a" manually.

(no, this shouldn't be needed, but...)

Offline

#5 2004-12-08 13:44:06

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: kernel will not load modules

ok what does depmod -a do , when do i do it ?
thanks - and sorry , bit of a newb here

Offline

#6 2004-12-08 15:37:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: kernel will not load modules

ruwach wrote:

ok what does depmod -a do , when do i do it ?
thanks - and sorry , bit of a newb here

type it into a prompt as root

depmod will scan modules and module dependancies, building a modules.dep file from a whole mess of files... IIRC "-a" means "all"...

basically without the depmod command, the kernel doesn't have a dependancy file and doesn't know how to load modules....

Offline

#7 2004-12-08 18:22:02

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: kernel will not load modules

so i want to do this while i am using the kernel that i built?
so it will set up the modules for that particular kernel?
ok, will do when i get home. let you know the results later..
thanks

Offline

#8 2004-12-10 04:25:54

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: kernel will not load modules

ok, i did a depmod -a and nothing seemed to happen.
dont know what to try next

Offline

#9 2004-12-10 06:37:14

Win
Member
Registered: 2004-03-04
Posts: 155

Re: kernel will not load modules

Hi ruwach.

Could you show the contents of each of the /lib/modules directories?

You should see something like this:

$ ls -lr /lib/modules/2.6.9-ARCH

total 548
-rw-r--r--  1 root root 151686 2004-10-29 00:55 modules.usbmap
-rw-r--r--  1 root root  59074 2004-10-29 00:55 modules.symbols
-rw-r--r--  1 root root  67348 2004-10-29 00:55 modules.pcimap
-rw-r--r--  1 root root  16042 2004-10-29 00:55 modules.isapnpmap
-rw-r--r--  1 root root    700 2004-10-29 00:55 modules.inputmap
-rw-r--r--  1 root root    517 2004-10-29 00:55 modules.ieee1394map
-rw-r--r--  1 root root 144596 2004-10-29 00:55 modules.dep
-rw-r--r--  1 root root     69 2004-10-29 00:55 modules.ccwmap
-rw-r--r--  1 root root  96956 2004-10-29 00:55 modules.alias
drwxr-xr-x  9 root root    216 2004-10-29 00:53 kernel
lrwxrwxrwx  1 root root     25 2004-10-29 00:53 build -> /usr/src/linux-2.6.9-ARCH

If the kernel you're trying to start doesn't have the full complement of files, specifically those under 'kernel', you won't have any modules to load.

Regards,

Win

Offline

Board footer

Powered by FluxBB