LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2003, 10:20 PM   #1
sumit_nus
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Rep: Reputation: 0
Question installing 2.2.10 kernel on Redhat 8.0 (kernel 2.4.18-20)


Hi,

I am running a redhat 8.0 (kernel 2.4.18-20) ..... i want to also install a 2.2.10 kernel on the same Linux for some research work on the older kernel.... i followed the steps in the "linux kernel how to" but was unable to get anything from the command "make bzImage" there were a lot of errors and deprecation issues ..... the gcc which i have is the one that came along with the Redhat 8.0 .... can someone help me out on the kernel installation .... any tips .... or particular steps to follow ...... thanx !
 
Old 07-30-2003, 10:39 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
heres my tutorial
i think this tutorial is as basic as it gets....i made it very very basic actually with an explanation of every command, and since people posted with comments and suggestions there is a couple other things added throughout the thread....i can't think of a way to make this any easier for you, so enjoy and good luck !
 
Old 07-30-2003, 10:50 PM   #3
sumit_nus
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Original Poster
Rep: Reputation: 0
HI Drozz,

Thx for ur quick reply ! .... i really appeciate ur tutorial on kernel compilation .... but my problem is still around ! ..... the "make bzImage" doesnt yield anything on my Redhat linux 8.0. my gcc version is 3.2 ... could it be because of the gcc version ...if so .... can u suggest a gcc version which might work in compiling the 2.2.10 kernel .... thx a ton !

Sumit
 
Old 07-30-2003, 10:55 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
could you by chance tell what kinda error your getting, and are you sure your not missing a step before getting to the point of make bzImage.
 
Old 07-30-2003, 11:03 PM   #5
sumit_nus
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Original Poster
Rep: Reputation: 0
=======installation messages start ==============

[root@sumitcir linux]# make bzImage
dnsdomainname: Unknown host
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
make -C kernel
make[1]: Entering directory `/usr/src/linux-2.2.10/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.2.10/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -fno-omit-frame-pointer -c -o sched.o sched.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from /usr/src/linux/include/linux/string.h:40,
from /usr/src/linux/include/linux/signal.h:64,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/mm.h:4,
from sched.c:27:
/usr/src/linux/include/asm/string.h:476:17: warning: multi-line string literals
are deprecated
In file included from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/mm.h:4,
from sched.c:27:
/usr/src/linux/include/linux/signal.h: In function `siginitset':
/usr/src/linux/include/linux/signal.h:193: warning: deprecated use of label at end of compound statement
/usr/src/linux/include/linux/signal.h: In function `siginitsetinv':
/usr/src/linux/include/linux/signal.h:205: warning: deprecated use of label at end of compound statement
sched.c: At top level:
sched.c:52: conflicting types for `xtime'
/usr/src/linux/include/linux/sched.h:458: previous declaration of `xtime'
sched.c: In function `schedule':
sched.c:731: warning: deprecated use of label at end of compound statement
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.2.10/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.10/kernel'
make: *** [_dir_kernel] Error 2

==========installation messages stop ==========

this is the problem i m facing ......
 
Old 07-31-2003, 03:06 AM   #6
startx
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
if you are using bk, maybe not all files were checked out? Try


bk -r get


and if the error still does not go away,


make mrproper


and then


make {,x,menu}config


make dep does nothing in 2.5 and make bzImage is standard target, so you
can abbreviate you command line to


make && make modules && sudo make modules_install
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing redhat kernel clem_c_rock Linux - Enterprise 1 08-13-2004 09:52 AM
kernel error installing RedHat Linux ver.9 SesshomaruNick Linux - Software 8 02-20-2004 11:20 AM
Installing kernel source code for Redhat 9 über-noob Linux - Newbie 5 10-05-2003 12:57 PM
installing a new test kernel on redhat roskoo Linux - Newbie 2 07-21-2003 01:01 AM
Installing new kernel with rpm on redhat kidd Linux - Newbie 5 07-17-2003 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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