LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-15-2005, 01:22 PM   #1
lixy
Member
 
Registered: Apr 2004
Posts: 120

Rep: Reputation: 15
New kernel fails to boot: It can't find modules.dep though it's there


Hi all.

As I had trouble using some devices with my current kernel (2.6.8-2) I thought I could give 2.6.11 a try. I installed the kernel sources the Debian way (apt-get) and compiled it the traditional way .
Code:
make clean modules modules_install bzimage
After that, I updated Grub to take into account the new kernel. i renamed the bzimage to vmlinuz-2.6.11, moved it to /boot and created a initrd.img-2.6.11 thru mkinitrd.
Upon reboot, I had fatal errors saying that modprobe couldn't find /lib/modules/2.6.11/modules.dep
Well, the file in question is there and it doesn't seem to be corrupted in any way (as compared to my other kernel's modules.dep
Desperate, I had a look at the depmod manual and ran
Code:
depmod -e -F System.map-2.6.11
which didn't change a thing as one would expect.

Any help greatly appreciated
 
Old 04-15-2005, 01:35 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Re: New kernel fails to boot: It can't find modules.dep though it's there

Quote:
Originally posted by lixy
Code:
make clean modules modules_install bzimage
This is not the traditional way to compile a kernel! Try reading the README file.

It sounds like one of the drivers needed to read the modules.dep file has itself been configured as a module (you can't load a module from a filesystem if the module is needed to read the filesystem). Having not run any form of “make config”, this is not surprising.
 
Old 04-16-2005, 07:23 AM   #3
lixy
Member
 
Registered: Apr 2004
Posts: 120

Original Poster
Rep: Reputation: 15
Lightbulb

Thanks a lot for your prompt reply! I did configure the kernel thru
Code:
make menuconfig
first; I just didnt's mention it
Anyhow, I opted for a vanilla kernel this time and the README is pretty much all one needs to read if running LILO. Grub just needs a couple more commands; i.e: copy the newly created bzImage into a vmlinuz file in /boot and possibly create a initrd.img thru mkinitrd.

P.S: With the default config of the 2.6.11.7 kernel (and some people report this with the 2.6.10 as well), there's an error that goes:

Quote:
CC [M] drivers/char/agp/efficeon-agp.o
CC [M] drivers/char/agp/intel-mch-agp.o
CC [M] drivers/char/agp/intel-agp.o
CC [M] drivers/char/agp/nvidia-agp.o
CC [M] drivers/char/agp/sis-agp.o
CC [M] drivers/char/agp/sworks-agp.o
CC [M] drivers/char/agp/via-agp.o
CC [M] drivers/char/drm/gamma_drv.o
In file included from drivers/char/drm/gamma_drv.c:40:
drivers/char/drm/drm_agpsupport.h: In function `gamma_agp_uninit':
drivers/char/drm/drm_agpsupport.h:431: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:582)
In file included from drivers/char/drm/gamma_drv.c:42:
drivers/char/drm/gamma_context.h: In function `gamma_context_switch_complete':
drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer'
drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer'
In file included from drivers/char/drm/gamma_drv.c:44:
drivers/char/drm/gamma_old_dma.h: In function `gamma_clear_next_buffer':
drivers/char/drm/gamma_old_dma.h:40: error: structure has no member named `next_buffer'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:42: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:44: error: structure has no member named `next_queue'
In file included from drivers/char/drm/gamma_drv.c:46:
drivers/char/drm/drm_drv.h: In function `gamma_release':
drivers/char/drm/drm_drv.h:807: warning: implicit declaration of function `gamma_ctxbitmap_free'
In file included from drivers/char/drm/gamma_drv.c:58:
drivers/char/drm/drm_stub.h: In function `gamma_stub_putminor':
drivers/char/drm/drm_stub.h:148: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:582)
drivers/char/drm/drm_stub.h:150: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:578)
drivers/char/drm/drm_stub.h: In function `gamma_stub_register':
drivers/char/drm/drm_stub.h:206: warning: `inter_module_register' is deprecated (declared at include/linux/module.h:577)
drivers/char/drm/drm_stub.h:216: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:578)
make[5]: *** [drivers/char/drm/gamma_drv.o] Error 1
make[4]: *** [drivers/char/drm] Error 2
make[3]: *** [drivers/char] Error 2
make[2]: *** [drivers] Error 2
make[2]: Leaving directory `/usr/src/kernel-source-2.6.10'
make[1]: *** [stamp-build] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.10'
make: *** [stamp-buildpackage] Error 2
A workraroud is to remove the 3D labs drivers as in device drivers --> character devices --> 3D labs!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modprobe: FATAL: Could not load /lib/modules/.../modules.dep Ankardo Debian 9 02-01-2011 05:09 PM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM
/etc/conf.modules is more recent than /lib/module/2.2.15-4mdk/modules.dep Derek-kun Linux - Newbie 3 09-26-2003 02:56 AM
Slack9 - no PPP (can't open dependencies file /lib/modules/2.4.18/modules.dep) bluehz Slackware 1 05-04-2003 02:32 PM
modprobe can't find modules.dep rioguia Linux - Hardware 2 12-06-2002 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration