LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2003, 03:44 PM   #1
crossley
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
Unhappy Compiling Kernel


Hi, I recently install RedHat 8.0, step by step I follow the instructions and (about 1 month later) can install the winmodem, then I do the next step... Install my palm pilot zire... then any web page that I visit tell me: "You need to recompile the kernel with a recently patch", or "Change the visor.h and visor.c and recompile the kernel" ...
I use the following instructions from the "how to" manual:
- make xconfig and change the section USB settings
- make dep to update the dependency files
- make bzImage...

Finally copy this file and change lilo.conf...
the compilation takes me about 2 hours... and then when the computer restarts show me a text "Linux descompress...." and restart again!!!!...
Fortunately a save a copy of lilo.conf and reinstall the lilo boot sector...

How can I recompile the kernel? What I'm doing wrong?

If I change the default settings like "CPU Type" the linux could be more faster?
 
Old 04-21-2003, 04:09 PM   #2
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
Not sure of your problem really, but yes, you have to choose the kind of pc your have. If you have a pentium 4 and you compiled for a 386 then it will be slower of course, and have issues. Also, what about the modules??? Did you choose to have everything built in??? I doubt you did so you also have to do
make modules
make modules_install
maybe it is looking for a certain module and cant find it becuase it is not there??

I would recommend reading a tutorial on compiling the kernel, if you have find a better one
 
Old 04-21-2003, 04:16 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
sometimes that stuff just happens.
you should put more than one kernel entry in
lilo, and keep one that you know works.
you can name your new kernels whatever you wish.
that way you don't get hosed when you make a kernel
that doesn't work, or doesn't like your machine.
 
Old 04-21-2003, 04:22 PM   #4
crossley
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
yes, I use make modules, and make modules_install...

I have the following problems:
1. After recompile the kernel the system boot fails, ... I choose the new entry in the lilo's menu and show me: "Linux decompress.... " and reset the computer starting again...
2. My computer is too slow under Linux, I think this is because the redhat don't optimize the "in-built" kernel to be used with AMD K6-2... I change the settings in the CPU Section and recompile and... "problem No. 1." the system don't boot!!!

I do everything.... download 4 tutorials and, do step by step the "make xconfig", make dep, make modules, m... etc. and no change the system always reboot when I select the system in the lilo menu....
 
Old 04-21-2003, 04:47 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
well, you were talking about patching your kernel.
a lot of times i patch a kernel for something, and
end up with a kernel that doesn't work. it could
just as easily be something in your config that is
keeping the machine from booting. you might need
to start with fresh source code, and a different or
no patch.
you may have an old motherboard chipset that
doesn't work right with the kernel you are using.
 
Old 04-22-2003, 08:36 AM   #6
crossley
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Yesterday I tried again.... compile the kernel and copy the bzImage in the boot directory (/boot), change grub.conf copy the same instructions that has for the old system and replace "vmlinuz-2.4.18-14" with "bzImage", then I use "grub" command to update the boot sector, this is all that I need to do? I'm doing something wrong?

I tried to use "make install" too, in this time the make install create one new file in /boot "vmlinuz-2.4.20"... wow!!! the size is different!!! I'm copying the wrong file?

I recompile the linux-2.4.18-14 sources (this is the kernel that use the RedHat) and use "make oldconfig" to avoid the mistake in the config file, but the result is the same!!! what happen!!!! I'm stuck!!!,

everybody says that compile the kernel is easy... but....
 
Old 04-22-2003, 02:06 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
the compiling is easy, the configuring is not.
perhaps you could find a kernel and module set
on the web and download what you want already
compiled. generally you could download the kernel
from most linux distributions and install it into yours.

i generally find that if i configure a kernel, and compile
it, and it will not boot, then i have to make drastic changes to it, to make it boot. like changes dozens
of options in the kernel config, or just getting completely
different source code. i think what you are doing is
generally correct, it's just that you are running into
code that isn't working.
i often end up compiling a dozen times when i run into
that snag, and keep having to try different options or
different souce code before it works.
 
Old 04-22-2003, 03:05 PM   #8
crossley
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Where I can find the compiled version of linux kernels?

I download source files from www.kernel.org is possible that this source files don't work even if those files was the lastest stable version?

The source files that coming with the RedHat's CDs don't work either, it could be damaged too?

When you install the RedHat, Mandrake or other distro it don't recompile to optimize the system?, then could be a default configuration that could be copied and modified by me to correct the problem?
 
Old 04-22-2003, 03:39 PM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i didn't mean the source was damaged, i meant that
your config isn't working for you with the source that you
have, on your machine.
i was just suggesting maybe trying the the kernel from
some suse or mandrake or redhat version instead.
you could get those from those websites. I don't really
think you should do that, i'm just suggesting options.
i've had more trouble with xconfig making bad configurations than anything else. i have no idea why. menuconfig works best for me.
you probably won't see much of a speed gain from recompiling for your cpu. not a difference you can really feel.
i think you're in for a lot of seriously hard work trying
to get that working. just a feeling.
I don't know if it will be worth the work you'll have to put in
to get that thing working. hint, hint.
maybe you can find a version of linux that has support for what you want, already built in, since you are having so much trouble getting a kernel to work. You'll probably just end up upset and hating linux. Maybe suse has
support for what you want, or knoppix.
 
Old 04-22-2003, 05:06 PM   #10
crossley
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
thanks whansard, may be you're right, I could wait for another version with the problem correction (my palm ZIRE don't work because visor.h and visor.c don't have the correct ID for that hardware, the kerner patch 2.4.20 has this problem solved...) I'll wait few months and check for a new version with that patch...

I'm tried because I think that could improve the performance....

Thank you very much...
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 07:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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