LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 12-29-2004, 08:12 PM   #1
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Rep: Reputation: 31
figure out what is needed in the kernel?


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?
 
Old 12-29-2004, 08:24 PM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
see if dmesg is on your machine and run it as
dmesg | more (or less)
 
Old 12-29-2004, 08:28 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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.

Last edited by qwijibow; 12-29-2004 at 08:29 PM.
 
Old 12-29-2004, 08:50 PM   #4
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
qwijibow,

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.
 
Old 12-29-2004, 10:37 PM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Quote:
qwijibow,

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.

Last edited by qwijibow; 12-29-2004 at 10:38 PM.
 
Old 12-29-2004, 10:48 PM   #6
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
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.

Thanks for the reply.
 
Old 12-31-2004, 06:21 PM   #7
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
ok i used the commands that were recommended and everything is running well as far as i can tell, except for sound. when i run alsaconf i get:

bash-2.05b# alsaconf
modinfo: could not find module snd
modinfo: could not find module snd
modinfo: could not find module snd

it then say that there are no supported PnP or PCI cards. does this mean i am mising something in the kernel? i know i need snd-intel8x0 for sound.

bash-2.05b# locate snd-intel
/lib/modules/2.4.26/kernel/sound/pci/snd-intel8x0m.o.gz
/lib/modules/2.4.26/kernel/sound/pci/snd-intel8x0.o.gz
/usr/src/linux-2.6.10/sound/pci/snd-intel8x0.o
/usr/src/linux-2.6.10/sound/pci/.snd-intel8x0.o.cmd

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?
 
Old 12-31-2004, 06:40 PM   #8
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
nevermind the part of the last post about sound. i am a dumba$$. i just went to volume control and raised the volume settings.
 
Old 01-01-2005, 09:16 AM   #9
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Hotplugging is the automatic loading of kernel drivers.

you can remove hotplug from the bootup scripts, and use the module boot script to manualy modprobe drivers.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Forum Needed sashhoney LQ Suggestions & Feedback 1 05-21-2005 08:45 AM
kernel >= 2.6.10 is needed (but I have it!) Madd_hatter Linux - Software 10 04-20-2005 04:39 AM
custom kernel errors, can't figure out... amp_man Linux - General 11 03-05-2005 04:25 AM
Help me figure out which kernel and initrd version i have from a live cd prompt. Pls n0xide Linux - Newbie 1 03-06-2004 01:50 PM
Help needed for compiling the kernel JIV Linux - Software 1 02-14-2004 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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