LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-22-2005, 05:12 AM   #1
kskkumar
Member
 
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
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, 05:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,597

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Quote:
make modules install
You should run:
Code:
 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, 01:00 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,482

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
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.)
 
  


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 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 03:02 AM
error compiling the kernel linux-2.6.5 shams Mandriva 9 05-25-2004 10:44 PM
Compiling linux kernel in Debian solarize1966 Linux - Newbie 1 06-30-2002 06:07 AM
Compiling Linux Kernel statuszero Linux - Software 2 06-16-2002 08:49 AM
about linux kernel compiling cmardhekar Linux - Newbie 1 08-30-2001 06:18 PM


All times are GMT -5. The time now is 06:03 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration