Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am compiling the 2.6.10 kernel on slackware 10 and am having trouble getting the sound to work. how can i determine what modules and the built-in kernel stuff i need? is there a command that prints out a description if what hardware i have?
the command "lspci" or "cat /proc/pci" will output a list of hardware attached to your pci bus, including your AGP bus, IDE controller and almost all the hardware in your system,
make sure you compile support for your IDE controller, and the filesystem linux is installed on into the kernel.
anything else can be compiled as a module if you like.
a good starting point will be to take a config file from the slackware kernel you were using, copy it to the kernel-2.6.10 source directory, rename it to ".config" then run "make oldconfig"
then work from there.
and remember, if there is anything you dont understand, look it up.
read the help tab on every question.
never guess an answer.
and your first attempt, and probably second attempt at compiling a kernel will fail. ive never sopken to anyone who's succeded on there first attempt. so be patient.
Just out of curiosity, as I haven't dealt with slackware in many years, can't the file system be built as a module and then create an initrd for the boot process? That is usually the case in most other distros.
Just out of curiosity, as I haven't dealt with slackware in many years, can't the file system be built as a module and then create an initrd for the boot process? That is usually the case in most other distros.
that is true. however...
the purpose of an initrd to to build a kernel which can boot and run on many different machines without having to compile everything todo with the ide controller, and filesystem into the kernel.
howeven when custom compiling a kernel, you are creating a kernel to run on only one machine.
if you know a certain kernel module is going to be loaded every single boot, like a filesystem driver, then you might aswell just compile it into the kernel, save time having to modprobe it.
for custom compiled kernel's there is no need for an initrd image.
so although you dont actually NEED to compile tht filesystem driver into the kernel, by doing so you will save yourself having to build an initrd image.
Good point. I do typically create the /boot partition as an ext2 filesystem since ext2 must be built into the kernel rather than a module.
Most of the time I create a custom kernel to farm out to several like machines. So I suppose it really wouldn't matter which way I did it, I do typically try to keep the kernel small and make most of it modular. That has bit me in the butt when I had some corrupted modules. I still haven't figured out how that happenned. I think a hard drive was going bad and it was where some of the modules were sitting.
I do build some small kernels as monolithic just so they are bootable off of a floppy with out the use of modules, but care had to be taken to not make it too big.
locate says that the module is there. is alsa not looking in the right spot?
also about hotplugging. what exactly is hotplugging? i assume that it allows you to remove memory sticks, external hardrives and such while the machine is running but if none of the file systems are mounted can the device be safely removed without hotplugging enabled? when the computer boots it hangs on the hotplug start up command. how can i stop either it taking so long or stop it from loading?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.