Click to See Complete Forum and Search --> : help recompiling kernel


possumpuss
03-06-2001, 09:30 PM
hi i am running rh7 2.2.16-22 kernel on a dell optiplex gx1
i've been trying to recompile my kernel for ntfs support so i can mount my mp3 directory on my windows2000 partition
i did a fresh install of the os, ran rhn update agent and downloaded every possible thing on the list
then i followed http://www.linuxnewbie.org/nhf/intel/compiling/kernel2.4upgrade.html
to the letter, i get as far as backing up the bzImage to the home directory
the problem: there is no bzImage!
everything seemed to run ok, although i'm no good with diagnosing code, but here's the message a message i get when i tried to run 'make bzImage' again
leaving directory '/root/linux/drivers/sound

[first_rule] error 2
leaving ...sound
[_subdir_sound] error 2
leaving ...sound
[_dir_drivers] error 2

one thing: at the point where i go through the gui configuration utility after 'make xconfig', i set it up to install support for a bunch of different sound cards, as the sound card on this machine - it's a crystal audio something or other - wasn't detected by the 2.2.16 kernel, i thought compiling in support for a bunch of sound drivers would maybe allow me to have sound on this machine

does this error have something to do with the absence of bzImage? if i am following this nhf by the letter, am i downloading all the necessary utils and libraries to make the recompile work with my partitular hardware? and if not, how do i find out what stuff i need to d/l to get it to work on my machine?

thanks in advance all

possumpuss
03-07-2001, 05:33 PM
to the top

berb
03-07-2001, 06:03 PM
slim.. do you have all the updated things:
Gnu C 2.7.2.3 # gcc --version
Gnu make 3.77 # make --version
binutils 2.9.1.0.25 # ld -v
util-linux 2.10o # kbdrate -v
modutils 2.3.18 # insmod -V
e2fsprogs 1.19 # tune2fs --version
pcmcia-cs 3.1.21 # cardmgr -V
PPP 2.4.0 # pppd --version
isdn4k-utils 3.1beta7 # isdnctrl 2>&1|grep version

if not you NEED these to be updates for the compile to run correctly.
There is a full README in the kernel source in /Documentation/Changes.

have fun.

possumpuss
03-08-2001, 12:03 AM
thanks man
i'll get to it

possumpuss
03-08-2001, 07:30 PM
hi
i got all of those files and made sure i had the correct versions installed
then i ran through the nhf again
same thing happened
i dont know what the heck i'm doing wrong
one thing that maybe got screwed up - for one or two of those items you listed, i could only find a newer version on the internet, so i installed that

any ideas?

Bills_a_bub
03-09-2001, 01:14 AM
Possumpuss,

There's been alot of talk about the RH compiler being broken when it comes to compiling kernels. I had many problems as well and this is how I fixed it (thanks to many other's who've been down the same path).

In the Makefile for your kernel, change the lowercase "cc" in

CC=$(CROSS_COMPILE)cc

to read

CC=$(CROSS_COMPILE)kgcc

Then save the file and compile again.

This should solve your problems. It solved mine.

Good luck.

possumpuss
03-09-2001, 01:34 AM
i have an exam tomorrow but i will definitely try that this weekend

thanks for cluing me in on this
i'll let you know how it went