Where to find the linux kernel source code in RH Linux 8?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
How to recompile the linux kernel source code in RH Linux 8?
hi,
I'm running a RH Linux 8 on a P4 desktop.
Under usr/src there is no linux directory, only linux 2.4.18-14 and Red Hat
Where can I find the linux kernel source code?
If the source code is not there, where can I down load it?
Ok, thks pal.
I want to recompile the kernel to include linux frame buffer device.
I have recompile the kernel and move it to boot and rename as linux.vesafb
I have also edit my grub to run this new kernel but I keep getting a file not found. I found that there is a vmlinxz-2.4.18-14 executable file and another vmlinux-2.4.18-14 unknown file but there is no linux.vesafb executable file, only a linux.vesafb unknown file.
Please advise.
This is what I did:
1)make menuconfig
I slect the options to enable frame buffer
2)make dep
3)make bzImage
4)cp arch/i386/boot/bzImage /boot/linux.vesafb
5)Then I edit the grub.config with kwrite:
default=1
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,1)
kernel /linux.vesafb ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img
title DOS
rootnoverify (hd0,0)
chainloader +1
6) Reboot, select red hat linux, but got tons of errors and failure to start linux
Hi MayanKjohri,
Thanks for the pointers, but I'm a bit lost.
This is what I think of the steps to recompile the linux kernel:
1)cd /usr/src/linux
2)make menuconfig
3)make dep
4)make bzImage
5)make modules
6)make modules_install
7)cp arch/i386/boot/bzImage /boot/linux.vesafb
8) reconfig grub to:
kernel /linux.vesafb
What does make modules and make modules_install do? Do I need to copy any files to /boot?
If u read the README file its there in the installing kernel section. I also dont have the file with me presently. I can tell u tomorrow. But most of the steps are now in right order. try with them and we will see.
But read the README file which comes with source
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.