FedoraThis forum is for the discussion of the Fedora Project.
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.
After you have obtained the kernel sources (by either installing a .src.rpm the proper way, or by downloading the source archive and unarchiving it), use 'cd' command to change your working directory to the place where the source code is. Then read the README file that should have come along the sources:
Code:
less README
After this, if this is your first time you compile a kernel from those sources, run
Code:
mrproper
as the README says (or said last time I read it). Then see what else the README suggests you should do before proceeding, and then
Code:
make menuconfig
Note that in order to be able to 'make menuconfig', or do any compilation at all, you need to have a few packages installed that might not be installed by default: namely binutils, make, gcc (or whatever compiler you use) and whatever the Fedora might offer (package namings might differ on different distributions). There might even be a metapackage that pulled in all you need, but I'm not sure. If you are missing those tools, you can't compile a new kernel.
Thanks for your time. I'lll try that and post you back. suddenly this command stopped working
dd if=/dev/sda1 of=fedora.bin bs=512 count=1
sda1: this is where i have my boot partition
fedora.bin: this is the file name; it can be anything
i'm trying to copy the first 512 bytes of boot and copy it in windows boot loader so tht i can boot linux form windows boot loader
Thanks in advance
Quote:
Originally Posted by b0uncer
After you have obtained the kernel sources (by either installing a .src.rpm the proper way, or by downloading the source archive and unarchiving it), use 'cd' command to change your working directory to the place where the source code is. Then read the README file that should have come along the sources:
Code:
less README
After this, if this is your first time you compile a kernel from those sources, run
Code:
mrproper
as the README says (or said last time I read it). Then see what else the README suggests you should do before proceeding, and then
Code:
make menuconfig
Note that in order to be able to 'make menuconfig', or do any compilation at all, you need to have a few packages installed that might not be installed by default: namely binutils, make, gcc (or whatever compiler you use) and whatever the Fedora might offer (package namings might differ on different distributions). There might even be a metapackage that pulled in all you need, but I'm not sure. If you are missing those tools, you can't compile a new kernel.
I'm not sure what you want. But if you want GRUB First Stage didn't change anything related to GRUB during installation(which means it was installed on MBR-Main Boot Record), try this below:
dd if=/dev/sda of=fedora.bin bs=512 count=1
Your boot partition is the place hold the kernel images and files needed for GRUB Second Stage.
Quote:
Originally Posted by Prasanna Rajaram
Hi
Thanks for your time. I'lll try that and post you back. suddenly this command stopped working
dd if=/dev/sda1 of=fedora.bin bs=512 count=1
sda1: this is where i have my boot partition
fedora.bin: this is the file name; it can be anything
i'm trying to copy the first 512 bytes of boot and copy it in windows boot loader so tht i can boot linux form windows boot loader
Thanks for your timely help. menuconfig command worked ... and i configured the kernel(didn't change anything actually)
when i gave make install command it failed giveing me the following error messages.
make[3]: *** No rule to make target `/home/prasanna/kernel/linux-2.6.24.3/include/linux/if_addrlabel.h', needed by `/home/prasanna/kernel/linux-2.6.24.3/usr/include/linux/if_addrlabel.h'. Stop.
make[2]: *** [linux] Error 2
make[1]: *** [headers_install] Error 2
make: *** [vmlinux] Error 2
What should i do now... Whats wrong
Prasanna
Quote:
Originally Posted by b0uncer
After you have obtained the kernel sources (by either installing a .src.rpm the proper way, or by downloading the source archive and unarchiving it), use 'cd' command to change your working directory to the place where the source code is. Then read the README file that should have come along the sources:
Code:
less README
After this, if this is your first time you compile a kernel from those sources, run
Code:
mrproper
as the README says (or said last time I read it). Then see what else the README suggests you should do before proceeding, and then
Code:
make menuconfig
Note that in order to be able to 'make menuconfig', or do any compilation at all, you need to have a few packages installed that might not be installed by default: namely binutils, make, gcc (or whatever compiler you use) and whatever the Fedora might offer (package namings might differ on different distributions). There might even be a metapackage that pulled in all you need, but I'm not sure. If you are missing those tools, you can't compile a new kernel.
steps to compile the kernel from source file :-
make mrproper
make menuconfig
make dep
make clean
make bzImage
make modules
make modules_install
when these steps finish you have a compressed compiled kernel and you have the modules installed where they belong.
Ofcourse you will have to install the new kernel bzImage after this.Just modify the lilo.conf or grub.conf file to have a section that shows your new kernel image.
hope it helps
nishith
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.