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.
my redhat 8.0 can mount vfat automaticly now. i dont need to type "modprobe vfat" anymore
but it still says "Mar 23 19:48:32 linux kernel: Fix your initscripts?" in my /var/log/messages file
have u got same message too?
thank you very much.
I do not get the error in the kernel messges log, maybe this is a Red Hat 8 only issue, I currently have moved on to Fedora, and have no issues whatsoever. I think you may safely ignore the message.
Originally posted by hhegab I have followed literally everything here, but I still get kernel panic, and I am asked to pass some options to initrd
what should I do?
hhegab
Calm down, what kernel version are you trying to compile? What Red Hat version are you running? What is your root partiton filesystem and did you make sure to include support for the intial RAM disk (initrd) into the kernel (not as a module)?
I am sorry, but I have been trying to install it for some time now (almost 17 hours, yes 17 as I am free these days)
I am trying to insall kernel_2.6.4
I use redhat 9.0
I use ext3 fs
the last question drive me crazy as I am not sure what you mean?
and how may I make something module and something else not?
I am too newbie to linux, and love it so much to stick to it.
u know we choose the some options for kernel config (make xconfig). if u mark the options with check. this option works in kernel (/boot/vmlinuz-2.x.x) directly. if u mark the option with a point, it will be supported as a module in kernel. when u type "make modules", it will compile the options u marked as module. "make modules_install" installs the modules in /lib/modules/2.x.x directory. so u can load modules when your linux runs. make sure your root (/) filesystem (ext3), inital RAM (initrd) support is marked with check in your kernel config. if u didnt check these options, u can get this error.
have u typed "mkinitrd /boot/initrd-2.6.4.img 2.6.4" ? if it asks u to remove initrd from bootloader, maybe u didnt create initrd.
I have done everything here,
I could find that grub was updated automatically,
When I launched makinitrd as it was mentions here, I could have the message telling me that it is already there in the /boot directory.
What did I miss?
Originally posted by hhegab I have done everything here,
I could find that grub was updated automatically,
When I launched makinitrd as it was mentions here, I could have the message telling me that it is already there in the /boot directory.
What did I miss?
hhegab
Just recapitulating, the Initial RAM Disk support should be found at:
Code:
Device Drivers -->
Block Devices -->
...
<*> Ram disk support <-- near the end of the list
(8192) Default RAM disk size[*] Intitial RAM disk (initrd) suport
This is using make menuconfig, instead of gconfig (gnome front end) or xconfig (KDE front end).
Once you have those options, you should just build it all with
Code:
make [clean] modules modules_install install
The [clean] entry is there so to clean the source tree and rebuild all from scratch (remember to remove the braces!). Also please make sure you have installed the package modules-init-tools of version 2.4.25 or greater (you may find this package by looking at rpmfind.net as mdoutils). Basically that should work just fine.
I got RH9 and I'm trying to install kernel 2.6.4 as told in the guide.
After doing make install, I get:
No module hpt37x2 found for kernel 2.6.4
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
That device is my PCI ATA RAID Controller! How can I get the kernel to load its drivers? I had to pass them through floppy on installation, but how do I do it when compiling the kernel?
I download kernel 2.6.4 from internet and try to install on my computer but every command I typed:
make oldconfig
make menuconfig
...
And make, make install
When they run, I see these lines many times:
Quote:
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: *** Warning: File `scripts/Makefile.lib' has modification time in the future (2004-03-11 09:55:27 > 2003-12-25 22:37:14.568663)
What's wrong here? How can I fix it in order to install correctly? After I installed, it still run with old kernel (2.4.20). What can I do now? And other experiences if u have and u think it's important, share to me. Thanks in advanced.
Originally posted by poochie2 I got RH9 and I'm trying to install kernel 2.6.4 as told in the guide.
After doing make install, I get:
No module hpt37x2 found for kernel 2.6.4
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
That device is my PCI ATA RAID Controller! How can I get the kernel to load its drivers? I had to pass them through floppy on installation, but how do I do it when compiling the kernel?
Thanks, Poochie
How did you install the drivers for your ATA-RAID controller? in binary form or from source? This is important, because you will need to re-compile the driver for 2.6.4.
Originally posted by Thetargos How did you install the drivers for your ATA-RAID controller? in binary form or from source? This is important, because you will need to re-compile the driver for 2.6.4.
I think it was a binary, I did it putting the driver disk upon the installation of RH, the file was ".o" and the product page on the producer's site has some sources, but I don't know how to feed them to the kernel config files!
No module hpt37x2 found for kernel 2.6.4
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
I had same problem last time. Then, after type:
make modules_install
Everything is fine now but my new kernel can not boot. What is wrong? Luckyly, I already make oldconfig thus Linux still can run if I choose the old kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.