View previous topic :: View next topic |
Author |
Message |
Avicus Tux's lil' helper
Joined: 23 Apr 2004 Posts: 107
|
Posted: Mon Oct 25, 2004 2:56 pm Post subject: Should I use genkernel? |
|
|
I know everyone suggests compiling a kernel manually and I've done so many times. I'm just trying to see if there is a good reason to use genkernel instead....
I am a Systems Analyst that also does troubleshooting of computers and peripherals. I have recently put Gentoo on my work computer (in a Win2000 domain) and have found every way to stay in Gentoo and not boot into Windows.
So, anyway, would genkernel be useful in my environment as I wish to be able to support all peripherals on my computer, much the same way Windows could? I know manually compiling the kernel often leads to optimizing it for only the hardware you know you'll use on it, could I "max out" the kernel and modules manually to provide the same level of versatilty a genkernel kernel provides?
Any thoughts? |
|
Back to top |
|
|
thepi Guru
Joined: 06 Jan 2004 Posts: 352 Location: Tokyo, Japan
|
Posted: Mon Oct 25, 2004 3:23 pm Post subject: |
|
|
I'd rather suggest you compile as many parts of the kernel as modules. That way you can try & load every module to check out if they work for you, then put all those you need in /etc/modules.autoload.d/kernel-<version>. That'd spare you the hassle of a bloated kernel which occasionally produces incompatibilities (see forum posts, there were some problems w/ genkernel a while ago).
my 2¢
pi~ _________________ Violence is the last resort of the incompetent --Isaac Asimov
Gentoo on Acer TM800 | Help! | Vote! | Get FF! |
|
Back to top |
|
|
Avicus Tux's lil' helper
Joined: 23 Apr 2004 Posts: 107
|
Posted: Mon Oct 25, 2004 3:34 pm Post subject: |
|
|
So to support a network card, I have to find out what module it uses and then load it? That seems kind of tedious.... I want to be able to just stick in whatever peripheral (network card, usb devices, sound card, etc.) and have it work... is this impossible or unreasonable to expect from linux just yet? |
|
Back to top |
|
|
Kurse Apprentice
Joined: 31 Aug 2004 Posts: 169 Location: Midwest, USA
|
Posted: Mon Oct 25, 2004 3:44 pm Post subject: |
|
|
It works just fine in Linux, but you need to take the time and learn the naming, etc. of the drivers you need for your devices the same way you did in Windows.
If you watch during installation from a LiveCD you will see the names of most, if not all, of your devices as it probes them. Write them down if you need to.
You will need to do at least a LITTLE preparation if you are not familiar with the *nix way of doing things.
You could start with Genkernel, just to get the hang of things, but eventually you will learn enough that you will want to use a kernel tailored to your system. There is no sense in supporting tons of hardware that your system does not have, or features you will never need/use. Thats just a waste of system resources, and your time. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Mon Oct 25, 2004 3:44 pm Post subject: |
|
|
Avicus wrote: | So to support a network card, I have to find out what module it uses and then load it? That seems kind of tedious.... I want to be able to just stick in whatever peripheral (network card, usb devices, sound card, etc.) and have it work... is this impossible or unreasonable to expect from linux just yet? |
lol big words.
No it is not unreasonable to expect (please do some reseach before saying stuff like that)
you cant just plug in a NIC in windows and expect it to work. You need the driver for it.
It is exactly the same for linux except linux handles drivers differently (and better).
Look at the Gentoo LiveCD, if you boot off it it will detect and load the correct modules
And why is that?
Because the LiveCD has vertially everything compiled as modules and it also uses hotplug. Between these two it will load what is needed.
All a custom kernel is is a trimmed down version of a liveCD kernel (prolly a newer version as well) so that is works better. Why compile in SATA stuff if you dont have SATA harddrives? |
|
Back to top |
|
|
Avicus Tux's lil' helper
Joined: 23 Apr 2004 Posts: 107
|
Posted: Mon Oct 25, 2004 3:53 pm Post subject: |
|
|
Haha I didn't mean to sound like that! But anyway, at least I am getting my questions answered!
OK so thats fair, I know windows need drivers and also agree linux 'drivers' are handled nicer.
SO, I can compile everything as modules and then expect hotplug to load the required modules on boot up? |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Mon Oct 25, 2004 4:03 pm Post subject: |
|
|
Almost.
Compiling things as modules is the best way to do things (thus they are used ONLY when needed)
However, some things need to be compiled into the kernel.
Things like the driver for the filesystem your "/" is on (eg Ext3).
Drivers for SCSI (if your "/" is on a SCSI disc)
Drivers for RAID (if your "/" is part of a RAID).
Basically anything that your kernel will need to be able to load modules from disc. IF it doesn't understand how to talk to a piece of hardware to start INIT then it will panic. Common mistake is forgetting to compile something into the kernel |
|
Back to top |
|
|
thepi Guru
Joined: 06 Jan 2004 Posts: 352 Location: Tokyo, Japan
|
Posted: Mon Oct 25, 2004 4:07 pm Post subject: |
|
|
Well, no, actually you can't. IIRC the LiveCD is compiled with genkernel, that means (almost) everything is activated. It's just "if it's not there, it's not used(tm)", that means the kernel has the support built-in so that all the hardware would just work. Knoppix on the other hand has a kind of hardware-detection which loads the appropriate modules while scanning for them. Maybe Gentoo LiveCDs do the same, and I just didn't recognize it.
However, it's your choice. Have a (propably bloated) genkernel config where everything *should* just work, or fiddle around a bit, and maintain the modules autoload list for yourself. Personally I prefer having the control, knowing what my machine's doing, but if you don't care, propably genkernel is the perfect choice for you.
hth,
pi~ _________________ Violence is the last resort of the incompetent --Isaac Asimov
Gentoo on Acer TM800 | Help! | Vote! | Get FF! |
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Mon Oct 25, 2004 4:12 pm Post subject: |
|
|
Avicus wrote: | SO, I can compile everything as modules and then expect hotplug to load the required modules on boot up? |
Yes, as you can see by looking at the Gentoo LiveCD or Knoppix, for example.
Using Gentoo, on the other hand, usually means you want everything your machine can give you in the fastest possible way. So, generally, it's a nice idea to trim down your kernel to support only the hardware you really have. It takes quite some time to autoprobe devices, so boot time is prolonged. And kernel compile time is prolonged, too, of course. Which is something you usually don't wont, because you usually want to stay on par with kernel development .-)
Having said this, there is absolutely nothing wrong with building ALL drivers and autoprobing them on every boot (something windows will not do ) and NOT having a bleeding edge system!
Just do as you like. It's possible. _________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
iainvt Guru
Joined: 12 Sep 2004 Posts: 462 Location: UK
|
Posted: Mon Oct 25, 2004 5:18 pm Post subject: |
|
|
i would say start with genkernel if you want you can learn as you go, once you have a working kernel you can always boot into your on a winner _________________ iain |
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Mon Oct 25, 2004 5:20 pm Post subject: |
|
|
Well ... I came to hate genkernel from the bottom of my heart _________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
iainvt Guru
Joined: 12 Sep 2004 Posts: 462 Location: UK
|
Posted: Mon Oct 25, 2004 6:22 pm Post subject: |
|
|
Linux is about choice after all. _________________ iain |
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Mon Oct 25, 2004 6:50 pm Post subject: |
|
|
Yup, and remember I didn't say "Don't use it!". _________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
iainvt Guru
Joined: 12 Sep 2004 Posts: 462 Location: UK
|
Posted: Mon Oct 25, 2004 6:51 pm Post subject: |
|
|
ok you got me, just been having a flame at some guy trying to start a chain letter in the forum, came here in a bad mood, appologies. _________________ iain |
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Mon Oct 25, 2004 7:09 pm Post subject: |
|
|
iainvt wrote: | ok you got me, just been having a flame at some guy trying to start a chain letter in the forum, came here in a bad mood, appologies. |
No offense taken. I am actually an easy guy to talk to <LOL> _________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
|