LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Newbie needs help with kernel (https://www.linuxquestions.org/questions/linux-newbie-8/newbie-needs-help-with-kernel-64048/)

phekno 06-06-2003 01:05 PM

Newbie needs help with kernel
 
OK. So I want to re-compile my kernel. I'm running Redhat 9 with GNOME and I have GRUB as my bootloader. I have tried it but when I re-booted I got a nasty message about my kernel panicking and not passing init or something. I realize this is something I did/didn't do in the GRUB configuration file but I don't know exactly what. Is there any documentation regarding Redhat 9 and GRUB and trying to recompile the kernel? I have read alot of stuff about recompiling my kernel but most of it just mentions LILO or doesn't really explain what I'm supposed to do with the GRUB configuration. I also am lost as to where or what file I'm supposed to copy to the /boot directory. I know I have to copy bzImage but I don't know what to copy it to. Is it vmlinuz or vmlinuz-blah-blah or what? Please help!

Thanks,
Phekno

je_fro 06-06-2003 01:33 PM

bzImage
 
That's your kernel. Copy /usr/src/linux/arch/i386/boot/bzImage to /boot.
Call it, for example, bzImage-2.4.20-v1.
Then change the file /boot/grub/grub.conf to include a reference to that kernel. (Based on what is already there...you'll see what you need to do.) Those vmlinuz'es are kernels too. Just add a new section for your new kernel.
Also: man mkinitrd
That's tricky.
You're also going to get a lot of wierd errors if you're using a stock kernel because RedHat's kernel is what your system is expecting.


All times are GMT -5. The time now is 08:40 AM.