I've tried the steps outlined here as well as the steps in the Kernel-Howto, but it still fails to work correctly in RH 9.
I decided to get back to basics and did the following: cd /usr/src/linux make clean make mrproper make clean (as stated in the Kernel-Howto) make oldconfig make dep make bzImage make modules make modules_install cd /lib/modules mkinitrd 2.4.8.20GB.img 2.4.8.20GB/ then cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage-new-kernel cp /lib/module/2.4.8.20GB.img /boot/new-kernel.img cp /usr/src/linux/.config /boot/config-new-kernel cp /usr/src/linux/System.map /boot/System.map-new-kernel 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. Hmmmm.... |
If I use LOLO instead of Grub Will I need to o any configuration for the new kernel to get into the boot menu?
|
I figured that I had to run lilo -v to make it work.
|
Usually the installkernel program will take care of that.
|
Quote:
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? |
Quote:
|
So doing a 'make install' did not work for ya with LILO?? that is a good addition to be made :cool:
|
The /etc/lilo.conf got updated by make install, but I had to execude lilo -v to update the boot sector accordingly.
But it's one more command to be run. So it's an addition needed for LILO. |
kernel compilation/install errors
Okay, here's me, one experience richer: I compiled my own kernel. Too bad it was a dud :scratch:
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! |
Hi there.
I finally got time to recompile my kernel with low latency and openmosix support - all went well so thanks again Thetargos. One question I have. I need to rebuild my drivers for ALSA and was trying to do it from the source RPM. I tried: rpmbuild --rebuild --target i686 --define 'kernel 2.4.22' alsa-driver-0.9.6-1.fr.src.rpm but it came back with the error message: 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. |
I printed & tried following your instructions on my system. I did a COMPLETE installation.
When I try to run the command 'make xconfig/config/menuconfig' I get an error: make: *** No rule to make target 'xconfig'. Stop. Suggestions? |
Quote:
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 For your driver, just add these options to the ./configure script: Code:
./configure --help Code:
./configure --with-cards=emu10k1 --with-oss=yes --with-sequencer=yes 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 Code:
service alsasound start PS: Check the alsa-project page for refferences on specific card model and the modules options for modules.conf!!!, this is very important! |
Quote:
Code:
$ su |
Hey Thetargos,
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. Cheers. |
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.
|
All times are GMT -5. The time now is 10:02 AM. |