LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-19-2010, 05:30 AM   #1
aarsh
Member
 
Registered: Mar 2010
Location: ATL, GA
Distribution: openSUSE 11.2 , salckware ,ubuntu
Posts: 169

Rep: Reputation: 18
compiling the linux kernel


I am reading the book REd hat 7 unleashed and the note on the 841 pages says me that all distros have modified the original linux kernel accordings to them so if we modify the kernel and copile, we might not get some features working (which featuress? and why ?)

is there any way that i modify linux kernel and then i can use it as a separate os?
 
Old 05-19-2010, 06:13 AM   #2
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Rep: Reputation: 16
refer to linux kernel in a nutshell-
http://www.kroah.com/lkn/
 
Old 05-19-2010, 08:31 PM   #3
aarsh
Member
 
Registered: Mar 2010
Location: ATL, GA
Distribution: openSUSE 11.2 , salckware ,ubuntu
Posts: 169

Original Poster
Rep: Reputation: 18
thank you but suppose i've just downloaded the latest Linux kernel and i want it to work as my os in virtual box right now .. how to do this.. no matter if it is just command line.
 
Old 05-19-2010, 08:37 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by aarsh View Post
thank you but suppose i've just downloaded the latest Linux kernel and i want it to work as my os in virtual box right now .. how to do this.. no matter if it is just command line.
You'd have to install an operating system in virtualbox and then compile it in it.
 
Old 05-20-2010, 08:10 AM   #5
aarsh
Member
 
Registered: Mar 2010
Location: ATL, GA
Distribution: openSUSE 11.2 , salckware ,ubuntu
Posts: 169

Original Poster
Rep: Reputation: 18
thank you. but i am a real newbie with just 2.5 years of experience in Linux. Can you tell me the next all steps in brief, please ?
 
Old 05-20-2010, 08:15 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by aarsh View Post
thank you. but i am a real newbie with just 2.5 years of experience in Linux. Can you tell me the next all steps in brief, please ?
http://www.google.com/search?hl=en&e...kernel&spell=1
 
Old 05-20-2010, 09:43 PM   #7
aarsh
Member
 
Registered: Mar 2010
Location: ATL, GA
Distribution: openSUSE 11.2 , salckware ,ubuntu
Posts: 169

Original Poster
Rep: Reputation: 18
@cola :
thanks a lot but I can't resolve the following error :

root@aarsh-desktop:/usr/src/linux-2.6.34# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/kconfig/kxgettext.o
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
 
Old 05-20-2010, 09:55 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You posted your own answer:
Quote:
Install ncurses (ncurses-devel) and try again.
 
Old 05-24-2010, 04:18 PM   #9
aarsh
Member
 
Registered: Mar 2010
Location: ATL, GA
Distribution: openSUSE 11.2 , salckware ,ubuntu
Posts: 169

Original Poster
Rep: Reputation: 18
it worked. thanks all.

All is going now smooth. I am about to replace the kernel.
But, I 've to press y/n/m for about 200-250 choices it asking me on the command prompt. can I avoid it or speed it up , If I want to keep just defaults ???

Last edited by aarsh; 05-24-2010 at 04:20 PM.
 
Old 05-24-2010, 04:24 PM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by aarsh View Post
it worked. thanks all.

All is going now smooth. I am about to replace the kernel.
But, I 've to press y/n/m for about 200-250 times can I avoid it or speed it up? If I want to keep just defaults ???
You can use the old config as the basis. Just copy the existing /boot/config** from the kernel you are running now and paste it into the kernel directory (where you are building it) as .config
Code:
cp /boot/config-`uname -r` .config

Then you can run make oldconfig
It might ask you a few questions if the kernel sources are newer that your .config

Last edited by sycamorex; 05-24-2010 at 04:25 PM.
 
Old 05-24-2010, 05:05 PM   #11
chucks924
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
How do I access the Linux code to customize for my destinct application?
 
Old 05-24-2010, 07:50 PM   #12
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by chucks924 View Post
How do I access the Linux code to customize for my destinct application?
Hi and welcome to LQ.

You shouldn't hijack someone else's thread. Create your own one with your query (and please be more specific because I have no idea what you mean).
 
Old 05-27-2010, 10:28 AM   #13
aarsh
Member
 
Registered: Mar 2010
Location: ATL, GA
Distribution: openSUSE 11.2 , salckware ,ubuntu
Posts: 169

Original Poster
Rep: Reputation: 18
@chucks924 :

First of all, welcome to LQ.
Generally you will get the source code of slackware Linux is located at /usr/src/Linux-2.6.xx location.
 
Old 05-27-2010, 10:31 AM   #14
aarsh
Member
 
Registered: Mar 2010
Location: ATL, GA
Distribution: openSUSE 11.2 , salckware ,ubuntu
Posts: 169

Original Poster
Rep: Reputation: 18
I have tried to upgrade my linux kernel it also asked me for configurations like that for HDD, IPC , n/w and all that 100s of by selecting b/w Y / N / M. but now there are two problems ;

1. main problem is, still uname -a gives me the older version no.
2 My mouse has stopped working. But key board works well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 03:02 AM


All times are GMT -5. The time now is 07:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration