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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-30-2003, 10:20 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 7
Rep:
|
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 !
|
|
|
07-30-2003, 10:39 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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 ! 
|
|
|
07-30-2003, 10:50 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Posts: 7
Original Poster
Rep:
|
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
|
|
|
07-30-2003, 10:55 PM
|
#4
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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.
|
|
|
07-30-2003, 11:03 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Posts: 7
Original Poster
Rep:
|
=======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 ......
|
|
|
07-31-2003, 03:06 AM
|
#6
|
LQ Newbie
Registered: Jul 2003
Posts: 6
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|