LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-04-2004, 03:18 PM   #1
maxware
LQ Newbie
 
Registered: Dec 2003
Location: Memphis, TN
Posts: 19

Rep: Reputation: 0
/lib/modules/.../kernel/drivers empty?


I am trying to customize , on Redhat 9
kernel 2.4.20-27.9 .

I several posts here that were very helpfull, but the LAST step i.e.
make install
Fails that it can't find aic7xxx

And after some checking , indeed it can't

I have two directories
/lib/modules/2.4.20-27.9
and
/lib/modules/2.4.20-27.9custom

in /lib/modules/2.4.20-27.9custom/kernel/drivers
there is only one dir (net)

but back in the orig /lib/modules/2.4.20-27.9/kernel/drivers
there are MANY directories.

One would think my compiles under
make dep, make modules , make modues_install
had failed, but they didn't
I tried copying the files over but that lead to unresolved symbol errors.

[I'm only recompiling to enable features that the OS says not present
i.e. apm ]
 
Old 03-04-2004, 03:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi!

That brings up the topic of how your
kernel source directories are laid out,
and what the Makefile looks like ....
in particular the lines with the kernel-
version and such ...



Cheers,
Tink
 
Old 03-05-2004, 03:42 AM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
First off, have you tried service apmd start?

Look for the original config file in /boot it should be /boot/config-2.4.20-27.9

cd /usr/src/linux
make mrproper
cp /boot/config-2.4.20-27.9 .config
make menuconfig #Enable apm
make dep

Now follow /usr/src/linux/README and finish compiling the kernel and modules.
 
Old 03-05-2004, 08:46 AM   #4
maxware
LQ Newbie
 
Registered: Dec 2003
Location: Memphis, TN
Posts: 19

Original Poster
Rep: Reputation: 0
When trying to start apmd:
No APM support in kernel


I actually created an entire new /usr/src tree
/usr/src:

drwxr-xr-x 16 root root 4096 Mar 4 13:49 linux-2.4.20-27.9
drwxr-xr-x 16 root root 4096 Mar 4 14:48 linux-2.4.20-27.9custom


Makefile:

VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 20
EXTRAVERSION = -27.9custom

KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)


If I just use make menuconfig, where is the config file it is using/writing?
 
Old 03-05-2004, 08:53 AM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
If you just run make menuconfig you get the default config file that comes with the kernel. That probably will need a lot of tweeking to get it to work right. You are better off finding the RedHat config file.

Different distros save their default config file in different places. In Mandrake for example it is in /usr/src/linux/arch/i386. I think RedHat keeps it in /usr/src/linux/config but I'm not positive about that.

Last edited by /bin/bash; 03-05-2004 at 08:56 AM.
 
Old 03-05-2004, 09:26 AM   #6
maxware
LQ Newbie
 
Registered: Dec 2003
Location: Memphis, TN
Posts: 19

Original Poster
Rep: Reputation: 0
But back to the original problem ,
why after the makes are there no files in
/lib/modules/2.4.20-27.9custom/kernel/drivers


Could the config file be preventing that?

Besides , after make menuconfig, it has modified :
.config
and that is what I assume make dep ... ... is using.
 
Old 03-05-2004, 01:11 PM   #7
maxware
LQ Newbie
 
Registered: Dec 2003
Location: Memphis, TN
Posts: 19

Original Poster
Rep: Reputation: 0
I finally got this to work.
I think that the final issue was twofold

one, I created the seperate /usr/src tree,
then I ran make mrproper before configuring

(I still don't have apm working but that must be my fault!)

Thanks to all who posted.
 
Old 03-05-2004, 07:58 PM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Quote:
then I ran make mrproper before configuring
Yeah, mrproper erases the .config file. Thats why it's a good idea to keep a copy in /boot.
 
  


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
no lib/modules/2.6.13 after kernel compile Motown Slackware 2 09-07-2005 07:59 AM
need printer config help...instmod: /lib/modules/kernel/drivers/scsi/scsi_mod.o fails krome Linux - Hardware 2 01-16-2004 12:52 PM
/lib/modules Issues w/ New Kernel peace Linux - General 2 01-03-2004 04:50 PM
After compiling 2.6 kernel >> not enough drivers in /lib/modules?? Jefklak Linux - Software 9 10-21-2003 11:55 AM
/lib/modules.dep empty fpriami Linux - Networking 0 09-24-2003 08:36 AM

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

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