Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-22-2005, 04:12 AM   #1
Registered: Aug 2005
Posts: 40

Rep: Reputation: 15
compiling linux kernel-2.6.11

I am using linux-2.6.5 kernel now. I am having network support in the present version. I downloaded linux-2.6.11 kernel. After extracting it to /root/linux-2.6.11, i issued the following commands in sequence

make oldconfig
make modules install

and modified the grub config to point to new kernel as a seperate option. When i boot to new kernel, i get a message /lib/modules/2.6.11/modules.dep is missing and i fails to load some modules. But after the booting is complete, when i issue the 'ifconfig' command, it do not show me the eth0. I can see only the look back interface. Please help me to solve the problem. How can i put the modules.dep in /lib/modules directory? whre can it be found? if i put the mouldules there, will it solve my problem?
Old 08-22-2005, 04:27 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,196

Rep: Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676
make modules install
You should run:
 make modules_install
As for your nic if you compiled the driver as module it should be loaded. Else go to:
Device Drivers-->Networking Support-->Ethernet (whatever speed your nic is) and select it to build as module or built-in.
After boot run "lsmod" to see if it's loaded.
Old 08-22-2005, 12:00 PM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165Reputation: 3165
The command to prepare the module-dependencies (/sbin/depmod) is usually executed by a command such as /sbin/installkernel, which is a script. The exact sequence that is performed by your distro can vary considerably.

The place to start looking is probably in
<linuxversion>/arch/i386/Makefile. This is probably the "topmost level" makefile ... which references targets that are defined in other Makefiles such as <linuxversion>/Makefile. (Where <linuxversion> is simply my way of referring to whatever-directory you put your kernel source into, for the purposes of this posting.)

On my formerly-RedHat system, this Makefile invokes /sbin/installkernel which, in turn, invokes /sbin/new-kernel-package and a few other scripts.

If you are moving away from "the distro's way of doing things" and compiling your own custom kernel, you may find that some of those scripts have to be modified to suit your new modus operandi. (For example, since I no longer use an initrd, I had to stop the new-kernel-package script from trying to build one.)


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
error compiling the kernel linux-2.6.5 shams Mandriva 9 05-25-2004 09:44 PM
Compiling linux kernel in Debian solarize1966 Linux - Newbie 1 06-30-2002 05:07 AM
Compiling Linux Kernel statuszero Linux - Software 2 06-16-2002 07:49 AM
about linux kernel compiling cmardhekar Linux - Newbie 1 08-30-2001 05:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 PM.

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