Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am running BOSS Linux( a Debian based distribution ), I downloaded(kernel.org) & installed 2.6.25 kernel.
While configuring the kernel i used make oldconfig, so that it would use the current .config settings and ask only whats new.
Trouble is, theres no sound, XMMS says the sound card is not configured properly.
I guess i am missing some modules, i am new to this, this is the first time i compiled the kernel.
sound card Creative Sound Blaster PCI 4.1, its old and it works with the default kernel that came with my Distro.
Last edited by austinium; 05-17-2008 at 02:17 PM.
Reason: added the sound card information
Generally you should not use stand-alone ALSA drivers. Use in-kernel ones instead. Do make menuconfig and make sure your soundcard is enabled as module(s). Then run make modules and make modules_install, followed by alsaconf.
thanks for trying to help out guys, i tried make modules, make modules_install and alsaconf.
its not working, how do i check which modules are loaded? Everything i have tried works except sound.
Did you make menuconfig beforehand? make oldconfig is not intended to work between major releases, like from 2.6.24 to 2.6.25. It is designed to help between minor versions, like from 184.108.40.206 to 220.127.116.11. Sometimes simply running make menuconfig and saving after make oldconfig seems to fix some dependencies in configuration.
I deleted the kernel i had "installed" and "re-installed" by using:
*make menuconfig - added ensoniq drivers (both of them)
*i had ensoniq drivers built-in this time as i had tried it as a module the last time.
Sound doesnt work still.
alsaconf -> modinfo: could not find module snd //it couldn't find any PCI sound cards either
however i was reading up and managed to figure out lspci
$/usr/bin/lspci | grep -i audio
01:01.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 04)
so it is detecting my sound card
These are some of the messages that scroll up during startup that i think should be of some use:
FATAL: Error running install command for snd_ens1371 //i think this is sound card driver i have been chasing
FATAL: Could not load /lib/modules/2.6.25-4/modules.dep No such file or directory
I trying to build myself a nice and small kernel that has just the stuff i need for my hardware setup. Thanks for trying to help - what do i do next?
All you need is (Creative) Ensoniq AudioPCI 1371/1373, I recommend building sound support as modules.
I'm not sure what the make install does for you, are you sure you are running correct kernel - the one you just built? I prefer copying the kernel image into /boot and editing Grub configuration manually. In short, make sure you are using correct kernel modules with correct kernel.
i did have both the (Creative)Ensoniq built-in during compilation.
make install -> puts the kernel image, the config file etc in /boot,
i modified GRUB manually to add kernel 2.6.25 on the list.
I am using the initramfs file from the older kernel, i dont think thats going to be any trouble(?)
i have tried uname and it comes up with the right version.
i'll try building the sound drivers as modules and try adding them(i guess i better start google-ing)and post back.
I am using the initramfs file from the older kernel ...
You mean initrd? If yes, you shouldn't be using it. Besides, you do not need initrd with custom kernel.
If you build several kernels using same sources but with different configuration they all return same version with uname.
1. That lspci reports a valid name doesn't mean that the device is being detected or used at all. It just means that the lspci database contains a text string mathing a given device id:vendor pair.
2. Initrd just adds another level of complexity, which is usually not needed if you build a custom kernel. Unless for a very specific purpose.
Now, to the problem: you have identified your hardware, and you know which kernel module you need for it. So, the next thing you should do is to use lsmod to see if it's loaded. Then, if not, use find to find the module under /lib/modules/$(uname -r)/, if it's not there, then you did not add it correctly while making menuconfig (or you did not install it correctly with modules_install).
If the module is there, modprobe it. Then use lsmod to see if it loaded. If it didn't, use dmesg to show any error messages that apperared when modprobing the module.
Report back any doubt or error and I will try to help if I can.
yes i meant initrd when i was saying initramfs, thanks i didn't know u could not use it.
I have built-in snd_ens1370 & snd_ens1371 into the kernel during installation. Here is the relevant excerpt of the .config file
# Advanced Linux Sound Architecture
# Generic devices
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
# PCI devices
So these dont show up in /lib/modules/18.104.22.168/
I see this error during startup: FATAL: Error running install command for snd_ens1371
I think i sound like an absolute greenhorn here, but how do i compile and add modules to the kernel after having made the kernel? I mean i have the kernel up and running, now how do i add the modules for the soudcard without having to redo the whole kernel?
In post #7 I suggested you build sound support as modules. Alsaconf does better job when sound is not built into kernel. After all, you have built in two drivers, possible source for a conflict. The idea building a lean kernel is to exclude everything you do not need/have.