[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: make-kpkg kernel-image .. missing modules



On Mon, 15 Dec 2003 17:00:38 +0000, Richard Pearce wrote:

> Hi I've been trying to recompile my kernel however the list of modules coming out is incomplete..
> 
> What i've been doing..
> 
> First off I got kernel-source.2.4.20 ..
> then i did make menuconfig  and decided on the stuff i want in the kernel.. 
> next i did make-kpkg kernel-image which after a while completed succesfully and generated:
> kernel-image-2.4.22_10.00.Custom_i386.deb
> 
> I do the usual dpkg -i kernel-image-2.4.22_10.00.Custom_i386.deb
> 
> it then gives me the following message: .. 
> 
> "You are attempting to install a kernel version that is the same as the version you are currently running (version 2.4.22). The modules list is quite likely to have been changed, and the modules dependancy file /lib/modules/2.4.22/modules.dep needs to be rebuilt. It can not be built correctly right now, since the module list for the running kernel are likely to be different from the kernel installed. I am creating a new modules.dep file, but that may not be correct. it shall be regenerated correctly at next reboot. I repeat: you have to reboot in order for the modules file to be created correctly. Until you reboot, it may be impossible to load some modules. Reboot as soon as this install is finished (Do not reboot right not, since you may not be able to boot back up until installation is over, but boot imediately after). I cannot stress that too much. You need to reboot soon. Please hit return to continue"
> 
> I read that and thought yes ok, thats fair enough... i had a little look in /lib/modules/2.4.22/ 
> and there's only 1 item in modules.dep which is /lib/modules/2.4.22/kernel/arch/i386/kernel/apm.o and the /lib/modules/2.4.22/kernel/ folder only has the arch folder in it
> 
> I wasn't too concerned about that because i assumed it would rebuild the modules list after i reboot.. like it says in the message above. So i reboot (after updating grub!) :) ..
> 
> I select the kernel i just created from the grub menu and the machine then boots.. when type lsmod it only lists "apm" and when i look at the  /lib/modules/2.4.22/  folder absolutely nothing has changed since before i rebooted!
> 
> I'm assuming there is a bug and that it should be rebuilding the modules list itself .. however Is there anyway i can rebuild the modules list myself ? or perhapse build the modules list seperately (i tried make-kpkg modules-image, but it just said done and didnt generate anything) 
> 
> Thanks for your any help you can give!! :)
> 
> -Rich
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <META content="MSHTML 6.00.2800.1264" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT face=Arial size=2>Hi I've been trying to recompile my kernel however 
> the list of modules coming out is incomplete..</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>What i've been doing..</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>First off I got kernel-source.2.4.20 ..<BR>then i 
> did make menuconfig&nbsp; and decided on the stuff i want in the kernel.. 
> </FONT></DIV>
> <DIV><FONT face=Arial size=2>next&nbsp;i did make-kpkg kernel-image which after 
> a while completed succesfully and generated:</FONT></DIV>
> <DIV><FONT face=Arial 
> size=2>kernel-image-2.4.22_10.00.Custom_i386.deb</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>I do the usual dpkg -i 
> kernel-image-2.4.22_10.00.Custom_i386.deb</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>it then gives me the following message: .. 
> </FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>"You are attempting to install a kernel version 
> that is the same as the version you are currently running (version 2.4.22). The 
> modules list is quite likely to have been changed, and the modules dependancy 
> file /lib/modules/2.4.22/modules.dep needs to be rebuilt. It can not be built 
> correctly right now, since the module list for the running kernel are likely to 
> be different from the kernel installed. I am creating a new modules.dep file, 
> but that may not be correct. it shall be regenerated correctly at next reboot. I 
> repeat: you have to reboot in order for the modules file to be created 
> correctly. Until you reboot, it may be impossible to load some modules. Reboot 
> as soon as this install is finished (Do not reboot right not, since you may not 
> be able to boot back up until installation is over, but boot imediately after). 
> I cannot stress that too much. You need to reboot soon. Please hit return to 
> continue"</FONT></DIV><FONT face=Arial size=2>
> <DIV><BR>I read that and thought yes ok, thats fair enough... i had a little 
> look in /lib/modules/2.4.22/ </DIV>
> <DIV>and there's only 1 item in modules.dep which is 
> /lib/modules/2.4.22/kernel/arch/i386/kernel/apm.o&nbsp;and the 
> /lib/modules/2.4.22/kernel/ folder only has the arch folder in it</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>I wasn't too concerned about that because i assumed it would rebuild the 
> modules list after i reboot.. like it says in the message above. So i reboot 
> (after updating grub!) :) ..</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>I select the kernel i just created from the grub menu and the machine then 
> boots.. when type lsmod it only lists "apm" and when i look at the&nbsp; 
> /lib/modules/2.4.22/&nbsp; folder absolutely nothing has changed since before i 
> rebooted!</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>I'm assuming there is a&nbsp;bug and that it should be rebuilding the 
> modules list itself .. however Is there anyway i can rebuild the modules list 
> myself ? or perhapse build the modules list seperately (i tried make-kpkg 
> modules-image, but it just said done and didnt generate anything) <BR><BR>Thanks 
> for your any help you can give!! :)</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>-Rich</DIV>
> <DIV>&nbsp;</DIV>
> <DIV></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>

After you run make menuconf you MUST run make dep.  Then you should run
make-kpkg clean, and only then run make-kpkg kernel-image.

P.S. Could you turn off the html garbage.  Thanks.



Reply to: