LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   new kernel 2.6.7 cant load modules (https://www.linuxquestions.org/questions/debian-26/new-kernel-2-6-7-cant-load-modules-220393/)

short101 08-20-2004 10:40 PM

new kernel 2.6.7 cant load modules
 
I've just compiled a custom 2.6.7 kernel, and eventually it worked after installing libqt and about a dozen other things to get xconfig to work. The only problem is that when the kernel was installed using debian:~# dpkg -r kernel-image-2.6.72.6.7_10.00.Custom_i386.deb it all installs except I get this message
Setting up kernel-image-2.6.72.6.7 (10.00.Custom) ...
cpio: /etc/modprobe.conf: No such file or directory
cpio: /lib/modules/modprobe.conf: No such file or directory
I've looked and its right, I dont have a modprobe file in either spot. I do however have a modules.conf and a modules file in /etc and nothing in /lib/modules, except for two folders for my kernels. I'm also getting this error from the kernel log when it starts.
Aug 21 11:09:42 debian kernel: klogd 1.4.1#15, log source = /proc/kmsg started.
Aug 21 11:09:42 debian kernel: Inspecting /boot/System.map-2.6.72.6.7
Aug 21 11:09:43 debian kernel: Symbol table has incorrect version number.
Aug 21 11:09:43 debian kernel: Cannot find map file.
Aug 21 11:09:43 debian kernel: No module symbols loaded - kernel modules not enabled.
Aug 21 11:09:43 debian kernel: Linux version 2.6.72.6.7 (root@debian.example.com) (gcc version 3.3.4 (Debian 1:3.3.4-6sarge1)) #1 Sat Aug 21 10:08:13 WST 2004
Aug 21 11:09:43 debian kernel: BIOS-provided physical RAM map:
I've googled about the system map thing and couldnt seem to actually find any answers. So here I am asking for help again. :scratch:
By the way, I made the .deb file with this command
debian:/usr/src# make-kpkg --initrd --append-to-version=2.6.7 kernel-image,
which I read about in a post somewhere, because I wasnt getting an initrd image when I was just using the make-kpkg command without the initrd bit.

short101 08-20-2004 11:52 PM

recompiled
 
O.K. I deleted the custom kernel and recompiled it with
ebian:~# make-kpkg --revision=786:MyKernel2.6.7 kernel_image
Then when I ran
debian:~# dpkg -i kernel-image-2.6.7_MyKernel2.6.7_i386.deb
It installed it and didnt say anything about the modprobe files. So then I rebooted with crossed fingers and had less errors but I still dont get modules loaded. Heres the error now
Aug 21 12:16:22 debian kernel: klogd 1.4.1#15, log source = /proc/kmsg started.
Aug 21 12:16:22 debian kernel: Inspecting /boot/System.map-2.6.7
Aug 21 12:16:23 debian kernel: Loaded 22439 symbols from /boot/System.map-2.6.7.
Aug 21 12:16:23 debian kernel: Symbols match kernel version 2.6.7.
Aug 21 12:16:23 debian kernel: No module symbols loaded - kernel modules not enabled.
Aug 21 12:16:23 debian kernel: Linux version 2.6.7 (root@debian.example.com) (gcc version 3.3.4 (Debian 1:3.3.4-6sarge1)) #1 Sat Aug 21 12:01:13 WST 2004
Getting better, the system map and symbols are ok, but still no modules.
:(
Any ideas?

atheist 08-21-2004 12:50 AM

I really thought dpkg took care of the System.map for you... Try this, since --revision doesn't prevent conflicts between kernels of same version.
Code:

#make-kpkg clean && make-kpkg --append-to-version="blah" && dpkg -i kernel-image-2.6.7."blah"_i386.deb
I'm not sure about this, though, since I prefer the old manual method:
Code:

#ln -s /usr/src/linux-2.6.7 /usr/src/linux && cd /usr/src/linux/ && make menuconfig && make && make modules && make modules_install && make bzImage && cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.7 && nano /etc/lilo.conf && lilo && reboot
This method hasn't failed me yet... Perhaps you should give it a try.

Hope this helps.

short101 08-21-2004 03:29 AM

Thanks atheist, I tried option one, kernel compiled and I got it installed, rebooted into it, and no modules. Got the same error about no module symbols, and therefore no modules. :( I went back to make xconfig and rechecked everything there and couldnt see anything that I could have missed, but I wouldnt be surprised if it was something to do with that. Didint try option two, I've got grub and didnt know what command to pass to it. Any one else? Hoping to get this thing going, mostly for tha apci support. I know its in the 2.4 kernel, but as long as I have to change kernels, I may as well have the latest, compiled for my machine. (Which is why I dont want to just get a kernel image)

powadha 08-21-2004 04:46 AM

Did you install module-init-tools? It's a must for 2.6.x

apt-get install module-init-tools

Btw revision only changes the name of the .deb file not the kernel itself. A safe (and clear) way to use append-to-version is to use the date you're compiling on.

Like today you could use:

make-kpkg --append-to-version=-210804 kernel_image

if you use initrd that would be:

make-kpkg --initrd --append-to-version=-210804 kernel_image

This way you keep all your modules the way they should in their own dir in lib/modules/

Cheers

short101 08-21-2004 06:37 AM

Yep, got module-init-tools.

powadha 08-21-2004 08:08 AM

Did you enable the right settings in your kernel? Might look like a stupid question but a wrong click can screw a lot up....

HappyTux 08-21-2004 09:05 AM

Make sure that you have enabled the kmod choice if IIRC it seems that you may have missed it.
Code:

>$ grep -i kmod /boot/config-2.6.8.1-ck3
CONFIG_KMOD=y


short101 08-21-2004 09:59 PM

Solved - sort of
 
Well, dunno what is actually going on here, but I am getting modules loaded at start up. I thought I wasnt, because my sound and mouse werent loading when I first compiled. So I made them into the kernel instead of modules, and then my vfat partition wouldnt load (due to something else) Then I put vfat into the kernel instead of as a module and it still wouldnt work, so then upon delving into that, found the cause (no 8859-1 iocharset support):rolleyes: So, once that was fixed, have gone and loaded new kernel and with ,lsmod have found loaded modules. :D Just to make sure, I compiled my modem driver, which should load as a module, and upon reboot, found it there, and am now writing this with my shiny new 2.6.7 kernel :D I had read in a post somewhere about 2.6 saying about no modules loaded in the logs, but that the really do, so I ignored that with the problems that I was having and kept looking for an answer that wouldnt be found. :newbie: So thanks to everyone that helped, I think I will try and compile again with sound and mouse support as modules and see if will work this time around. Just on a last note (hopefully) does anyone else ouy there with 2.6 kernels get the same message in there kernel logs about not loading modules. Just be interested to know.


All times are GMT -5. The time now is 10:59 AM.