LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-26-2003, 03:46 AM   #1
emadridm
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Unhappy I cant compile the kernel.


Hello friends :

I can't compile the kernel with apm module. I use Red Hat 9.0.

My Hardware: (apm support)
MotherBoard INTEL D815EGEW, Processor INTEL celeron 900, 128 MB RAM, 40 GB HD.

uname -a :
Linux gmserver 2.4.20-20.9 #1 Mon Aug 18 11:45:58 EDT 2003 i686 i686 i386 GNU/Linux

Kernel source:
kernel-source-2.4.20-20.9.i386.rpm

the first time, I can't compile the Kernel because I have a trouble compiling the dummy.o object ... so I turn off this option of ethernet cards using make xconfig. Now, I need apm support, but a I can't compile modules ... I have a similar error message that first time with the files modules.h

there are the last lines:

/usr/src/linux-2.4.20-20.9/include/linux/module.h:196: warning: parameter names (without types) in function declaration
make[1]: *** [apm.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20-20.9/arch/i386/kernel'
make: *** [_mod_arch/i386/kernel] Error 2


thansk!!!
 
Old 08-26-2003, 07:57 AM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
OK. Before you started this process did you save a copy of the .config file in /usr/src/linux-2.4/ ? There should be a copy in /boot as well (though it will have a name like .config-2.4.XXX). If you have that, then all you need do is cd /usr/src/linux-2.4/ and do:

make mrproper

(copy your saved .config file back to /usr/src/linux-2.4/)

make xconfig

(Load the .config. Change nothing except to activate the APM section. Now explicitly save the .config file, and then exit).

make dep
make clean
make bzImage
make modules
make modules_install

This will create a "custom" kernel, and you should see it marked that way on the GRUB boot screen when you reboot.

HTH

Cheers--
Charles
 
Old 08-26-2003, 09:27 AM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
here is a complete and detailed guide on compiling a kernel....
it'll be awful hard to screw up if you follow it
 
  


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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

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

All times are GMT -5. The time now is 08:48 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
Open Source Consulting | Domain Registration