LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-14-2010, 04:35 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question Big picture of the Linux kernel?


Hello,

I need to get the big picture of what a kernel is, what it includes, when it's necessary to compile a new kernel, etc., and have the following questions:
  • What source files do I need to compile a new kernel?
  • What's the difference between downloading source files from www.kernel.org and "apt-get install" kernel + kernel-headers? Does the latter simply make it easier to download the source files, or are the kernel source files from Ubuntu different from www.kernel.org?
  • When do I need to compile a new kernel?
  • Why does the kernel contain multiple files? vmlinuz, initrd.gz, filesystem.squashfs, etc.
  • When using dynamic drivers (modules) instead of static drivers, do I need to compile a new kernel? If not, how does the kernel know about the new drivers?
  • If I simply recompile... things so that I can have a new driver, what files must I replace in a liveCD ISO file? What applications will be impacted by adding a new driver to an existing ISO image?

Thank you for any help.
 
Old 08-14-2010, 04:38 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
This sounds an awfully lot like homework/project word... also can you not answer the difference between downloading raw source files and downloading specifically catered files from a package manager?
 
Old 08-14-2010, 05:01 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Is this topic a continuation of
http://www.linuxquestions.org/questi...8/#post4065905
?

I don't think recompiling the kernel to get the desired video driver is a good idea.
 
Old 08-14-2010, 05:46 AM   #4
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
littlebigman

A good film. There is no real short answer If you understand the difference between GNU and linux kernels that might help. There is really no need to update kernels unless you can see a real benefit, for example, if you had virtualbox installations loaded the kernels will not match after a host upgrade, causing another headache.

Fred.
 
Old 08-14-2010, 12:28 PM   #5
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
After a whole day reading and experimenting, I finally got it working.

For those having the same issue (Ubuntu 9.10 with an Nvidia chip with X displayed in 800x600), here's the gist of it:

1. Uninstall nv: apt-get --purge remove xserver-xorg-video-nv

2. Install nouveau (haven't tried the Nvidia driver):
# apt-get install linux-headers-$(uname -r) linux-libc-dev kernel-package
# apt-get install python-software-properties
# add-apt-repository ppa:bjfs/ppa
# apt-get update
# apt-get install xserver-xorg-video-nouveau
# depmod

3. Try to start X (eg. /etc/init.d/slim start). If it doesn't start with the settings you want, exit X and run "Xorg -configure to create an xorg.conf file that you can customize
Caution: The Modeline returned by "gtf" includes a trailing ".00" which crashed X when starting it. Removing this ".00" solved the problem.

Thank you.
 
  


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
Look at the big picture rylangrayston Debian 1 01-30-2009 04:48 PM
noatun and desktop sounds: big delay between picture and sound? lugoteehalt Linux - Desktop 7 09-18-2008 01:12 PM
LXer: Supply the big picture with Google Map Image Cutter LXer Syndicated Linux News 0 06-04-2007 11:31 PM
Red Hat Linux 9 Kernel Development Picture trkc Linux - General 2 09-14-2005 01:51 PM
Can't see the big picture BarryRadio Linux - Newbie 23 01-08-2004 07:23 PM

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

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