Problems with missing modules after compiling kernel.
![](https://seccdn.libravatar.org/avatar/9688b8966e42dcdbc5784f128956d2af.jpg?s=120&d=mm&r=g)
Hi, I have just installed (from scratch) SuSE linux 7.2 on a Toshiba Labtop. In the /lib/modules directory there is a directory "2.2.4-4GB" where the kernel modules are located. When compiling the kernel sources, running "make modules" and "make modules_install" I can see that the modules for the drivers I have selected to be running as modules (in menuconfig) are NOT in /lib/modules/<kernel version>. This is true for both my sound cards the USB devices and the modules for PCMCIA. This of course has the effect that when booting the new kernel, I get error messages about the missing modules. When copying the modules for PCMCIA (from ../linux/drivers/pcmcia/) to /lib/modules/<kernel version>/pcmcia the modules are suddenly found. What is the problem here, I thought that $make modules_install would install all the modules to the divices, specified in menuconfig as modules, to be copied to the correct locations in /lib/modules/<kernel version> !?´. I have compiled many kernels in the past, but as this is the first time I have had to use modules, this comes as a surprice to me. Can anyone please help. Thanks in advance. Bo Jacobsen bjc@image.dk
![](https://seccdn.libravatar.org/avatar/99c4bf793f5887128fa31f921cb2605b.jpg?s=120&d=mm&r=g)
On July 7, 2001 02:39 pm, Bo Jacobsen wrote:
Hi, I have just installed (from scratch) SuSE linux 7.2 on a Toshiba Labtop. In the /lib/modules directory there is a directory "2.2.4-4GB" where the kernel modules are located.
When compiling the kernel sources, running "make modules" and "make modules_install" I can see that the modules for the drivers I have selected to be running as modules (in menuconfig) are NOT in /lib/modules/<kernel version>. This is true for both my sound cards the USB devices and the modules for PCMCIA.
Sound moved with 2.4.x. Should be in /lib/modules/sound I've had some wierd problems with modules lately. I downloaded 2.4.6 from the ftp site today and it barfed on a couple of things. 2.4.4 would complain about modules not being elf. 2.4.5 seems okay but I'm not 100% sure. Nick
![](https://seccdn.libravatar.org/avatar/9688b8966e42dcdbc5784f128956d2af.jpg?s=120&d=mm&r=g)
On July 7, 2001 02:39 pm, Bo Jacobsen wrote:
Hi, I have just installed (from scratch) SuSE linux 7.2 on a Toshiba Labtop. In the /lib/modules directory there is a directory "2.2.4-4GB" where the kernel modules are located.
When compiling the kernel sources, running "make modules" and "make modules_install" I can see that the modules for the drivers I have selected to be running as modules (in menuconfig) are NOT in /lib/modules/<kernel version>. This is true for both my sound cards the USB devices and the modules for PCMCIA.
Sound moved with 2.4.x. Should be in
/lib/modules/sound
Yes and the pcmcia modules should be located in /lib/modules/<kernel version>/pcmcia. But shouldn't make modules_install move them there. If not, then one has to manually move all the modules, and if you are not sure where they are supposed to go, then you are f..... Bruce Marshall suggested to run mk_initrd, and I'm going to try it later, but the problem still remains with other programs that expects to find the modules in /lib/modules/<kernel version>. What about them ?. And what if I later wan't to delete the /usr/src/linux directory. Bo bjc@image.dk
![](https://seccdn.libravatar.org/avatar/99c4bf793f5887128fa31f921cb2605b.jpg?s=120&d=mm&r=g)
On July 7, 2001 05:55 pm, Bo Jacobsen wrote:
Yes and the pcmcia modules should be located in /lib/modules/<kernel version>/pcmcia. But shouldn't make modules_install move them there. If not, then one has to manually move all the modules, and if you are not sure where they are supposed to go, then you are f.....
It should and it does for me. But like I've said modules have been acting up with me-(
Bruce Marshall suggested to run mk_initrd, and I'm going to try it later, but the problem still remains with other programs that expects to find the modules in /lib/modules/<kernel version>. What about them ?. And what if I later wan't to delete the /usr/src/linux directory.
Older programs need to be upgraded for the new layout. Older versions of Alsa wanted to be in the old place. I guess if you need to run an old program you could create a link. Nick
![](https://seccdn.libravatar.org/avatar/95e02e5476fffaf3e0afe4b139206d32.jpg?s=120&d=mm&r=g)
On Saturday 07 July 2001 10:39, Bo Jacobsen wrote:
Hi, I have just installed (from scratch) SuSE linux 7.2 on a Toshiba Labtop. In the /lib/modules directory there is a directory "2.2.4-4GB" where the kernel modules are located.
When compiling the kernel sources, running "make modules" and "make modules_install" I can see that the modules for the drivers I have selected to be running as modules (in menuconfig) are NOT in /lib/modules/<kernel version>. This is true for both my sound cards the USB devices and the modules for PCMCIA.
This of course has the effect that when booting the new kernel, I get error messages about the missing modules. When copying the modules for PCMCIA (from ../linux/drivers/pcmcia/) to /lib/modules/<kernel version>/pcmcia the modules are suddenly found.
What is the problem here, I thought that $make modules_install would install all the modules to the divices, specified in menuconfig as modules, to be copied to the correct locations in /lib/modules/<kernel version> !?�.
I think your problem may be due to the boot process using the old /boot/initrd file. I just upgraded to 2.4.6 and had the same problem. I ran SuSEconfig prior to booting but that didn't seem to create an initrd with the new modules so I ended up running mk_initrd manually. Once I did that, everything booted fine. +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 07/07/01 11:24 + +----------------------------------------------------------------------------+ "Los Angeles's full name is "El Pueblo de Nuestra Senora la Reina de los Angeles de Porciuncula""
![](https://seccdn.libravatar.org/avatar/f5621799f07f7a7641591c82dceacfac.jpg?s=120&d=mm&r=g)
On 7 Jul 2001, Bruce Marshall wrote:
What is the problem here, I thought that $make modules_install would install all the modules to the divices, specified in menuconfig as modules, to be copied to the correct locations in /lib/modules/<kernel version> !?´.
I think your problem may be due to the boot process using the old /boot/initrd file. I just upgraded to 2.4.6 and had the same problem. I ran SuSEconfig prior to booting but that didn't seem to create an initrd with the new modules so I ended up running mk_initrd manually.
I just upgraded too. SuSE kept complaining of missing modules because the /lib/modules/2.4.6/modules.dep doesn't exist. Always re-run 'depmod -a' after compiling a kernel or removing / installing modules. -- noodlez: Karol Pietrzak PGP KeyID: 0x3A1446A0
![](https://seccdn.libravatar.org/avatar/e4875fba809bee7a8701ffd3bd830274.jpg?s=120&d=mm&r=g)
On Sat, Jul 07, 2001 at 04:39:36PM +0200, Bo Jacobsen wrote:
Hi, I have just installed (from scratch) SuSE linux 7.2 on a Toshiba Labtop. In the /lib/modules directory there is a directory "2.2.4-4GB" where the kernel modules are located.
When compiling the kernel sources, running "make modules" and "make modules_install" I can see that the modules for the drivers I have selected to be running as modules (in menuconfig) are NOT in /lib/modules/<kernel version>. This is true for both my sound cards the USB devices and the modules for PCMCIA.
What's in your /usr/include/linux/version.h ? If you do ``make cloneconfig'' first, it will fix your version and destinatiom directory for modules. Also, the correct version.h for your kernel is contained in /boot
This of course has the effect that when booting the new kernel, I get error messages about the missing modules. When copying the modules for PCMCIA (from ../linux/drivers/pcmcia/) to /lib/modules/<kernel version>/pcmcia the modules are suddenly found.
What is the problem here, I thought that $make modules_install would install all the modules to the divices, specified in menuconfig as modules, to be copied to the correct locations in /lib/modules/<kernel version> !??.
I have compiled many kernels in the past, but as this is the first time I have had to use modules, this comes as a surprice to me.
Were they SuSE kernels or vanilla kernels from ftp.kernel.org? That make difference.
Can anyone please help.
Thanks in advance. Bo Jacobsen bjc@image.dk
HTH, -Kastus
participants (5)
-
Bo Jacobsen
-
Bruce Marshall
-
Karol Pietrzak
-
Konstantin (Kastus) Shchuka
-
Nick Zentena