Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9
Red HatThis forum is for the discussion of Red Hat Linux.
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.
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.
Then, I include the new image in /etc/lilo.conf and run lilo
lilo
lilo -q
linux*
new-kernel
And at reboot, I select the new-kernel from the list of two kernels.
This then either ends in a kernel panic or it loads, but gives failure messages about it not supporting reiserfs, ext3, etc.
I would have thought that doing the make oldconfig would have taken the settings for the default, working kernel and then let me just proceed to build a copy of it.
Can anyone shed light on where I've gone wrong?
Thanks.
PS - I've done this with an installation of SuSE 8.2, but mkinitrd failed to run.
I went through all the other steps and rebooted to the new kernel option and it panicked.
But when I went back to /etc/lilo.conf and included the path for the working initrd image, it booted fine and runs fine.
Originally posted by gonniff
And at reboot, I select the new-kernel from the list of two kernels.
This then either ends in a kernel panic or it loads, but gives failure messages about it not supporting reiserfs, ext3, etc.
I would have thought that doing the make oldconfig would have taken the settings for the default, working kernel and then let me just proceed to build a copy of it.
Can anyone shed light on where I've gone wrong?
Thanks.
PS - I've done this with an installation of SuSE 8.2, but mkinitrd failed to run.
I went through all the other steps and rebooted to the new kernel option and it panicked.
But when I went back to /etc/lilo.conf and included the path for the working initrd image, it booted fine and runs fine.
Hmmmm....
If I understand correctly, you are trying to compile a 2.4.8 kernel?? You want to do a kenel downgrade??
In any case you should have no problem compiling the kenrel, but the problem regarding the panics seems to me like you have enabled some EXPERIMENTAL driver into the kenrel or in the modules. If you are using the LowLatency patch, you may need to re-nice some of the services the kernel starts, otherwise they will seg-fault. What does the panic say?? does it give any info at all (a dump core or something?) You may have hit a kernel bug rather than a compilation per se problem.
For the ReiserFS and EXT3 problem: Did you enabled support for those FS in the FS section? either as modules or into the kernel?
Originally posted by Thetargos Usually the installkernel program will take care of that.
It didn't do that for me. If you use GRUB you wouldn't need to rewrite the MBR as the configfile is read, but with lilo you will have to. (At least I had to)
Okay, here's me, one experience richer: I compiled my own kernel. Too bad it was a dud
I move that we start another thread called "kernel compilation/install errors". That way this thread don't get too far out of hand... be a good addition to this, though.
So I'll post my error messages and problems there!
error: Failed build dependencies:
kernel-source = 2.4.22 is needed by alsa-driver-0.9.6-1.fr
Is there something else i'll need to download or will I need to compile all the ALSA stuff from source for the new kernel?
Cheers.
Your welcome!
For ALSA, just download the latest source packages from alsa-project.org, and compile them. Download all the packages, and install in this order:
alsa-lib
alsa-utils
alsa-oss
alsa-driver
to install just untar the tarballs (tar -jxvf <alsapackage>) change to the directory of the package and:
Code:
./configre
make
make install
preferrably as root (make install should *always* be done as root).
For your driver, just add these options to the ./configure script:
Code:
./configure --help
To find out what is the name for the module for your card, and alternatively you may do this (if you want, of course!)
In the example above, I have stated to compile drivers for only the emu10k1 based card (in this case my card), the oss option is to add oss compatibilty to the driver (to play virtually any games) and the sequencer option is to activate MIDI support.
After you install you will see that the channels are muted, you unmute the channes by running the alsamixer command, but before that, make sure you run the makesnddevices script from the driver top level direcotry, otherwise the mixer will not be able to start. Another thing, you can add the alsasound init script to your init sequence, by
Code:
chkconfig --add alsasound
Then start it by:
Code:
service alsasound start
Enjoy!
PS: Check the alsa-project page for refferences on specific card model and the modules options for modules.conf!!!, this is very important!
I already had ALSA working for the 2.4.18 kernel. I installed the packages from the rpms at freshrpms.net (I had to rebuild the src rpm for kernel-module-alsa for that specific kernel)
I was just wondering if there was a quick way to rebuild the kernel-module-alsa source rpm for the new kernel.
I have no experience with source rpm's for ALSA. I've always installed it from tarball, it allows (or at least, that is what I think) more control over the the compilation, like the fact that I wouldn't want the whole bunch of drivers compiled in, or to let me add or remove certain feature (like MIDI or AC97). So I'd rather download a newer rpm or simply install the latest sources. It'd be nice to have the guys from freshrpms to lend us the .spec file so we could build the rpms from within the already compiled code in the pure sources.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.