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.
i followed the instructions in the first page for installing kernel 2.6.2 on redhat 9, however when the kernel loads up it says Kernel Panic and complains about not being able to load EXT3, that's despite i made sure it supports ext3 in xconfig. any help appreciated
edit: now it works after i included ext3 into the kernel
but problem with usb
Last edited by lethalinjection; 02-10-2004 at 09:48 AM.
You did that as module or into the kernel? you need to have [b}at least[/b] ext2 support compiled into the kernel to be able to mount your ext3 root partition during boot time (if you have any other fs-type then you must make sure its support is compiled into the kernel)
yeha i said after i loaded ext3 into the kernel the new kernel started working, however i can't use my mouse or keyboard as they are usb devices, time to play with xconfig again i guess. btw great guide
About your mouse and keyboard problem, make sure you have selected the HID interface in the USB section of the configuration (although the recommend you to let those options out, that may be what you need to get it running...
I downloaded and installed mod-init-tools-3.0 which also has depmod but this does not seem to solve the problem.
When i install the modules and the kernel, i still get "depmod:*** Unresolved symbols......" almost in everything. When i re-boot the system with the new Kernel (2.4.24), i get a kernel panic in that it needs the old insmod, depmod ....etc
Don't get me wrong, it would look like RH 7x simply cannot cope with new utils and kernels, I've seem such problems also in other distros, like Debian Woody, which cannot be upgraded to a 2.6 kernel due to similar problems...
I have uncompressed the linux kernel 2.6.3.tar.bz2 to /home/src/kernel and I have copied a config template from Redhat (config-2.4.20-8) from /boot directory to /home/src/kernel/linux-2.6.3.
After that I used “make menuconfig” tool and afterwards, I choose the button/menu entry that reads “load configuration from file”. But I don't know the config-2.4.20-8 file that must I use, what config-2.4.20-8 file in home/src/kernel/linux-2.6.3 direktory or in /boot directory ?????
finally, after I compiling the kernel 2.6.3 and after rebooting my computer, can I delete the /src/kernel/ direktori in /home direktory ??????
Originally posted by Gijet I have uncompressed the linux kernel 2.6.3.tar.bz2 to /home/src/kernel and I have copied a config template from Redhat (config-2.4.20-8) from /boot directory to /home/src/kernel/linux-2.6.3.
After that I used “make menuconfig” tool and afterwards, I choose the button/menu entry that reads “load configuration from file”. But I don't know the config-2.4.20-8 file that must I use, what config-2.4.20-8 file in home/src/kernel/linux-2.6.3 direktory or in /boot directory ?????
finally, after I compiling the kernel 2.6.3 and after rebooting my computer, can I delete the /src/kernel/ direktori in /home direktory ??????
Ok, you need name the config file .config (a hidden file) by just:
Code:
# cp config-2.4.20-8 .config
Use the options there as guidelines only, because you will be using a 2.4 template with a 2.6 kernel, and there are fundamental changes in the kernel that are in 2.6 thare are not present in 2.4. For an easier configuration, I'd suggest you gconfig or xconfig, and once you have installed the kernel, it would not be a good idea to remove the kernel sources from the directory where you first built the kenrel, because in the event you install any further drivers (like graphics drivers or the like) the module will require the kernel sources... To overcome this problem, you may choose to move your sources to /usr/src/ and compile and install from there.
I mean....what config-2.4.20-8 .config is file in /boot direktory ?????
Quote:
Use the options there as guidelines only, because you will be using a 2.4 template with a 2.6 kernel, and there are fundamental changes in the kernel that are in 2.6 thare are not present in 2.4. For an easier configuration, I'd suggest you gconfig or xconfig, and once you have installed the kernel, it would not be a good idea to remove the kernel sources from the directory where you first built the kenrel, because in the event you install any further drivers (like graphics drivers or the like) the module will require the kernel sources... To overcome this problem, you may choose to move your sources to /usr/src/ and compile and install from there.
Oh... sorry, maybe I did not undertand your question all that good... You mean how do you copy the config from /boot to your /where/the/soureces/are? That would be easy:
Error Process Booting After Compiling Kernel 2.6.3
I'm a total newbie.....I'm running RH 9....
after compiling to kernel 2.6.3,I rebooting my computer and in booting procces of redhat 9 default kernel which usually presenting the message like :
Initialing USB Controller (USB uhci) [OK]
Initialing USB Keyboard [OK]
Initialing Mouse {OK]
but in booting proces of kernel 2.6.3, exactly presenting some errors booting process like this :
----------------------------------------------------------------
Initialing USB Controller (USB uhci) : Fatal : Modul usb_uhci not found [Failed]
Initialing USB Keyboard : Fatal : Modul Keybdev not found [Failed]
Initialing Mouse : Fatal : Modul Mousedev not found [Failde]
Applying iptables firewall rules bal bla bla bla............
try IP tables-restore-h or iptables--restore bala bla bla : [Failed]
Flushing all current rules and user defined cain : iptables : v1.7a can't init alize iptables "table" filter bla bla bla [Failed]
clearing all current rules and user defined cain : iptables : v1.7a can't init alize iptables "table" filter bla bla bla [Failed]
Re: Error Process Booting After Compiling Kernel 2.6.3
Quote:
Originally posted by Gijet I'm a total newbie.....I'm running RH 9....
after compiling to kernel 2.6.3,I rebooting my computer and in booting procces of redhat 9 default kernel which usually presenting the message like :
Initialing USB Controller (USB uhci) [OK]
Initialing USB Keyboard [OK]
Initialing Mouse {OK]
but in booting proces of kernel 2.6.3, exactly presenting some errors booting process like this :
----------------------------------------------------------------
Initialing USB Controller (USB uhci) : Fatal : Modul usb_uhci not found [Failed]
Initialing USB Keyboard : Fatal : Modul Keybdev not found [Failed]
Initialing Mouse : Fatal : Modul Mousedev not found [Failde]
Applying iptables firewall rules bal bla bla bla............
try IP tables-restore-h or iptables--restore bala bla bla : [Failed]
Flushing all current rules and user defined cain : iptables : v1.7a can't init alize iptables "table" filter bla bla bla [Failed]
clearing all current rules and user defined cain : iptables : v1.7a can't init alize iptables "table" filter bla bla bla [Failed]
I have activated the kernel USB modul when I run "make menuconfig"
so what the solution for this problem
That is because some fundamental changes between the 2.4 kernels (which RH9 has by default) and the 2.6 kernel. For instance, in the 2.4 kernel you should load the mouse_dev.o and keyb_dev.o modules to have USB mice and keyboard functinality, in 2.6 this is no needed, you may still compile them, but as the Help tidbits in the kernel will tell you, this will only enable the HID interface minimalistically (just a boot set of options) and thus they don't recommend that. You may safely ignore that. About the IPtables errors, since RH 9 is compatible with both iptables and ipchains (the old firewall software), you may avoid these problems if you compiled everything as modules (included ipchains support) under packet filtering for IPv4, I've never had problems with that.
Unless the USB errors are getting you into trouble (not being able to use your mouse/keyboard) you may safely ignore these error, otherwise post back and I'll post a rather rude workaround.
OK guys thanks....my problem about USB and IP Tables has been fixed.....and I have one question again. I have downloaded patch-2.6.3.bz2 and patch-2.6.4-rc2.bz2...........but I don't know how to install it....can you tell me about it and where I can put these patch.....I extracted the linux kernel 2.6.3 in /usr/src/linux-2.6.3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.