LinuxQuestions.org
Visit Jeremy's Blog.
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 09-25-2013, 10:14 PM   #1
taitran
LQ Newbie
 
Registered: May 2013
Posts: 6

Rep: Reputation: Disabled
Red face Kernel and RFS compatibility


If someone can help a newbie....

I don't understand how Linux kernel and root file system (RFS) can fit in each other. Can I just compile version x.y.z of Linux kernel and run it with Ubuntu RFS version a.b.c?

On Ubuntu, I can get apps by package manager like apt-get or something. Applications are precompiled in a particular environment (kernel version x and glibc version y for example), what guarantees it runs on my PC when got from package manager? What if I upgrade the kernel and glibc?

Thanks.
 
Old 09-26-2013, 07:14 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,713

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
Quote:
Originally Posted by taitran View Post
If someone can help a newbie....

I don't understand how Linux kernel and root file system (RFS) can fit in each other. Can I just compile version x.y.z of Linux kernel and run it with Ubuntu RFS version a.b.c?
Depends. Most times yes, sometimes no.

The reason it depends is that the kernel provides a standardized programming interface. Rarely will this interface change UNLESS you are dealing with specific kernel control interfaces. Things like NFS control, or disk speed parameters, priority process queuing, or I/O queuing, or virtual machine capabilities. These applications require a closer integration with the kernel in case their interface changes.

MOST applications have no issues - they use the stable system calls that really haven't changed much in 10 years. SOMETIMES, what actually changes isn't the kernel, but runtime libraries. Applications that depend on old shared libraries can have problems with new systems - but this is not a kernel issue, normally they will just say something like "can't load library xxxx, not found".

Usually there is no problem with anything within a major numbering. Current numbering is a bit more flexible as most (if not all) basic user mode applications will have no issues with anything from 2.6 through 3.x (NOTE, this does not include the VM applications - there have been some bug fixes that did require a change, and old versions of these won't work with new kernels).
Quote:
On Ubuntu, I can get apps by package manager like apt-get or something. Applications are precompiled in a particular environment (kernel version x and glibc version y for example), what guarantees it runs on my PC when got from package manager? What if I upgrade the kernel and glibc?

Thanks.
Normally the package manager will deal with those - if you upgrade a glibc, then anything that depends on the specific version should also be identified as needing updates. Normally, such updates have no effect... the new library provides the same functions, with the same interfaces as the older version.
 
1 members found this post helpful.
Old 09-26-2013, 11:28 PM   #3
taitran
LQ Newbie
 
Registered: May 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Talking

Thanks jpollard, you are my idol
 
  


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
How to Enable RFS and RPS configuration dashang.trivedi Linux - Kernel 5 08-05-2011 10:19 AM
How to configure RPS AND RFS for kernel 2.6.35 dashang.trivedi Linux - Kernel 1 03-15-2011 08:07 PM
RFS Update ksp009 Linux - Newbie 0 01-11-2011 04:24 AM
Will rfs change when kernel image is built(for a target board) LN85 Linux - Kernel 3 07-04-2007 04:34 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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