LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-04-2008, 01:59 PM   #1
Prasanna Rajaram
LQ Newbie
 
Registered: Jun 2007
Location: Chennai, India
Distribution: Fedora
Posts: 25

Rep: Reputation: 15
no rule to make 'menuconfig'


Hi everybody,

I think the title itself gives you some idea of what i'm trying to do. S i'm trying to re-compile my kernel. I run a Fedora 7 box

Wanted to master linux.... This is my first step

Hope to see you all reply

Prasanna
 
Old 04-05-2008, 07:41 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 04-06-2008, 02:17 PM   #3
Prasanna Rajaram
LQ Newbie
 
Registered: Jun 2007
Location: Chennai, India
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 15
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 in advance

Quote:
Originally Posted by b0uncer View Post
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.
 
Old 04-07-2008, 05:09 PM   #4
lovenemesis
LQ Newbie
 
Registered: Jan 2008
Distribution: Fedora 8 X86_64
Posts: 9

Rep: Reputation: 0
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 View Post
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 in advance
 
Old 04-08-2008, 08:09 PM   #5
Prasanna Rajaram
LQ Newbie
 
Registered: Jun 2007
Location: Chennai, India
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 15
Booting Linux from windows

I'm trying to boot linux from my windows bootloader.
SPec:
Harddisks: 2 ( 80GB sata with windows, 20GB IDE with linux)

Now i'm trying to copy the first 512bytes of the mbr of the 20GB HDD using the dd command, make a bin file and use it in windows.

Am i clear now.

Pl discuss.

Prasanna
 
Old 04-08-2008, 08:12 PM   #6
Prasanna Rajaram
LQ Newbie
 
Registered: Jun 2007
Location: Chennai, India
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 15
menuconfig worked but make install failed

bOuncer:

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 View Post
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.
 
Old 04-11-2008, 03:47 AM   #7
alex1983-0112
Member
 
Registered: Apr 2008
Location: Russia
Distribution: Fedora Core
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by Prasanna Rajaram View Post
I'm trying to boot linux from my windows bootloader.
SPec:
Harddisks: 2 ( 80GB sata with windows, 20GB IDE with linux)

Now i'm trying to copy the first 512bytes of the mbr of the 20GB HDD using the dd command, make a bin file and use it in windows.

Am i clear now.

Pl discuss.

Prasanna
Copy your boot sector file to c:\ and in boot.ini try to write following:
c:\bootsect.lnx="Fedora Core"
And reboot system
 
Old 04-15-2008, 02:03 PM   #8
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
steps to recompile the 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no rule to make target ' menuconfig ' harsh_electro Linux - Kernel 2 01-30-2007 11:26 AM
no rule to make target ' menuconfig ' harsh_electro Linux - Kernel 1 01-30-2007 09:06 AM
make: *** No rule to make target 'menuconfig' yussef Debian 10 12-22-2005 09:23 AM
make: *** No rule to make target `menuconfig' Ezzy Linux - Newbie 3 04-21-2005 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration