LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-15-2013, 01:52 AM   #1
Guestx
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Rep: Reputation: Disabled
Linux Kernel and Userspace Question


Hi,

I am a newbie in Linux kernel compilation. I have successfully compiled the Linux Kernel 3.11 from an existing system running Suse 12.3 - Linux 3.7. My question is as follows.

1) With the compiled kernel, most the instruction on the internet just points to installing on the exiting system. I have not done that as I do not want to mess up the current installation. What is the best way to get it to a new install? How do I create a DVD or USB live CD?

2) The kernel that I have built is packaged in a RPM. I took a peek at the RPM it seems that it only contains kernel and drivers files. My question here is, Do I need to compile the user space programs (eg ls, find, grep, etc) that is located in the /usr/bin directory.

Thanks.
 
Old 10-15-2013, 02:38 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,790

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
1. in general you can have several kernels installed and you can select one of them during boot (see lilo or grub)
2. in general you do not need to compile user space programs but in some cases you may need to compile-install additional files (to be able to use the new kernel).
3. be careful and make backup to be able to restore your host.
 
Old 10-15-2013, 03:07 AM   #3
Guestx
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for the answer. May I know when can I get the source for the common executable that is found in the /usr/bin directory? Thanks again.
 
Old 10-15-2013, 09:26 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,636
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
The things that you find in /usr/bin are not "the kernel." You will find them in some package, and for that package there will be an accompanying, optional, "source package." The source-code will be found there.
 
  


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
Mmap kernel <-> userspace dasalam Linux - Kernel 2 08-08-2011 02:57 PM
Calling kernel functions from userspace - question about linking JohnGraham Programming 2 02-06-2010 05:24 PM
Userspace Executable are kernel independent? Harini1111 Linux - Kernel 2 12-05-2008 10:26 AM
Using kernel functions and macros in userspace karimasif Linux - General 1 01-16-2008 11:34 PM
a question about kernel copy userspace data linwenyuan Programming 0 03-28-2007 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:58 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