LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compile kernel w/o graphics and harddisk? (https://www.linuxquestions.org/questions/linux-newbie-8/compile-kernel-w-o-graphics-and-harddisk-732003/)

Dims 06-10-2009 01:55 PM

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?

jdvail 06-10-2009 02:34 PM

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.

Dims 06-10-2009 03:00 PM

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?

jdvail 06-12-2009 07:45 AM

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.


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