LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-10-2009, 01:55 PM   #1
Dims
Member
 
Registered: Feb 2009
Posts: 151

Rep: Reputation: 15
Compile kernel w/o graphics and harddisk?


Is it senible to try to compile kernel without graphics card driver and without harddisk driver? Do these drivers presented in "make menuconfig" and where they are if yes?
 
Old 06-10-2009, 02:34 PM   #2
jdvail
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware
Posts: 8

Rep: Reputation: 1
it depends

The answer to the first question, "Is it senible to try to compile kernel without graphics card driver and without harddisk driver?" is: it depends. If I'm compiling for a known hardware set that won't change under normal circumstances, I always compile all my hw drivers into my kernel, HD and graphics cards included. Once you've built a kernel, it's easy enough to recompile if there are updates to a driver, and I think it simplifies things considerably, since a host of potential problems are eliminated if the driver is built into the kernel, rather than loaded from some location where it could be lost, corrupted, renamed, replaced with incorrect data, etc. Some people also like to disable loading modules completely for locked-down hosts for security reasons.

On the other hand, if you change your system around more frequently, using modules is more flexible. You can rebuild or replace an individual driver with out recompiling the whole kernel, or add new drivers, as well.

Regarding the second and third questions, "Do these drivers presented in "make menuconfig" and where they are if yes?"
Yes,but I don't have a system with kernel source at hand immediately, but the drivers in general will be under the device driver tree, in their respective sub-trees, like SCSI or IDE for the disks, etc. If nobody else has posted something more specific when I get access to my home machines later, I will update these locations, but I'm sure someone out there has that information at hand.
 
Old 06-10-2009, 03:00 PM   #3
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
I have found graphics card driver section and compiled kernel without them. But booting with this kernel I have a prompt on the screen. How it is possible if graphics card driver is absent?
 
Old 06-12-2009, 07:45 AM   #4
jdvail
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware
Posts: 8

Rep: Reputation: 1
I'm not a kernel engineer, so take this with a grain of salt.

My understanding is that there is basic screen I/O functionality built into the base kernel. If you don't build a graphics card driver either directly into the kernel or as a module, you only get the basic stuff, no frame buffer, no X support, etc.

Depending on the use intended for the system, this could be fine. If you are running a server, which I typically don't even install the x packages onto, and use the console only for emergency/recovery type activities, you wouldn't need any advanced graphics functionality. Many times the server is "headless" anyway. If you are building a workstation, obviously you'd want complete graphics capabilities, so there you'd want a driver built.

Last edited by jdvail; 06-12-2009 at 07:55 AM.
 
  


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
Vanilla Kernel with SCISI harddisk pprs project Linux - Hardware 2 02-04-2008 06:41 AM
Kernel Update - Harddisk Problem Mr.Gosh SUSE / openSUSE 2 04-02-2005 03:43 AM
Slackware 10.1 (2.4.29 kernel) + USB harddisk Yalla-One Slackware 4 03-29-2005 02:18 PM
Nvidia graphics driver kernel compile hang siegecraft4 Linux - Hardware 3 02-27-2005 02:33 PM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM

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

All times are GMT -5. The time now is 08:37 PM.

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