LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-05-2001, 02:23 PM   #1
skoal
LQ Newbie
 
Registered: Dec 2001
Location: US
Distribution: Red Hat 7.2
Posts: 11

Rep: Reputation: 0
Making custom kernel..but drivers and modules wont load on boot


Hello

I tried several times to make a custom kernal. Every single time after I do all the required steps, none of my modules and drivers get moved to /lib/modules/'custom kernal name'/kernel/

Is there something I am missing? Oh yeah..these are the commandes i have used.

make dep
make clean
make bzImage
make modules_install
make install

And I am using redhat 7.2 with grub. The kernal will boot but no drivers or modules will load up.
 
Old 12-05-2001, 02:39 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
make modules
 
Old 12-05-2001, 03:30 PM   #3
skoal
LQ Newbie
 
Registered: Dec 2001
Location: US
Distribution: Red Hat 7.2
Posts: 11

Original Poster
Rep: Reputation: 0
Oh yeah..i forgot to mention i did make modules aswell.
 
Old 12-05-2001, 03:45 PM   #4
ascii2k
Member
 
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154

Rep: Reputation: 30
I have seen this before. I would suggest first checking your message log. Look for anything about not being able to find modules,dependecies, etc. It could be that the path is wrong or the system is just looking in the wrong directory for the new modules. That's what the problem usually seemed to be for me.
 
Old 12-05-2001, 05:36 PM   #5
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
ok... make sure that the kernel sources are either in /usr/src/linux, or that there is a symlink from /usr/src/linux-2.4.? to the linux dir (which is the way it SHOULD be...) if the compile can't find the sources, you're going to have problems with the modules.

also... go through the config option again and make sure that you've correctly selected the modules as modules, and not as having been compiled directly into the kernel, or mistakenly unselected. 'make xconfig' is the easiest way to configure the kernel.
 
Old 12-06-2001, 01:24 AM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Try doing "depmod -ae" as root.
 
Old 12-06-2001, 11:04 AM   #7
skoal
LQ Newbie
 
Registered: Dec 2001
Location: US
Distribution: Red Hat 7.2
Posts: 11

Original Poster
Rep: Reputation: 0
I thank you for the help and will attempt to recompile again when I have some time to invest in it. But anyone have any idea why something like this would happen? It seems very odd since I just installed the system fresh, and have not tinkered with it at all. Its with the kernel 2.4.7-10 on a red hat 7.2 distribution from unixcd.com. Very odd indeed.
 
Old 12-06-2001, 11:26 AM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Building a new kernel is a quite substantial bit of tinkering to do to a linux install.
Don't be put off by the fact that your first attempt didn't work as intended, I think most of the regulars here will agree with me when I say that it takes a few goes at it before you get one that works.
Just keep compiling and asking questions and when your first custom kernel boots you'll feel the same thrill we all did at a difficult job well done.
 
Old 12-06-2001, 04:31 PM   #9
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
Quote:
Originally posted by Aussie

Just keep compiling and asking questions and when your first custom kernel boots you'll feel the same thrill we all did at a difficult job well done.
...actually, i was too scared to do anything more substantial than an ls when i built my first kernel... i kept expecting it to crash or start smoking or somthing.
 
Old 12-06-2001, 06:00 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I had several problems related to compiling things with the original install.

Putting a symlink named linux pointing to the linux-2.4 symlink seemed to corect some of the problems I had.

Also this symlink should stay good because the linux-2.4 link will be changed to point to the current kernel.
 
Old 12-06-2001, 06:59 PM   #11
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Quote:
Originally posted by isajera


...actually, i was too scared to do anything more substantial than an ls when i built my first kernel... i kept expecting it to crash or start smoking or somthing.
Heh...I remember my first time, I was bouncing around in my chair with anticipation when I did the three finger salute and waited for the machine to boot so I could view the fruits of my labour, and then....kernel panic?!?....What the?!?
Needles to say thank gnu for lilo and back up kernel images
 
  


Reply



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
Custom kernel does not load modules Ankardo Linux - Newbie 2 06-10-2005 06:30 AM
custom slackpack kernel-modules sammyb Slackware 0 11-29-2004 03:41 PM
kernel change all of a sudden? Modules wont load Gates1026 Linux - General 4 04-06-2004 11:58 AM
making a custom kernel slightly differently. blackgold>> Linux - Software 3 11-10-2003 06:28 PM
Custom kernel on RedHat9 wont boot zoon64 Linux - Software 5 06-03-2003 10:42 AM

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

All times are GMT -5. The time now is 12:09 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