LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-26-2003, 04:42 AM   #1
slackfan
LQ Newbie
 
Registered: Jan 2003
Distribution: slackware
Posts: 20

Rep: Reputation: 0
compiling kernel to include sound support for toshiba laptop


Hello All,
I have searched and read as many threads that I could find regarding what I cannot find. I have read the cached guide on google regarding my specif model with slack and sound... I have also read Oreilly's "Running Linux".. Alas I am at a point where I require to ask for assistance.

Please allow me to brief you on where I am.

I am using ALSA since it supports my sound card on my laptop.

The sound is working great, but only if i enter the following string after the boot:
/sbin/modprobe snd-ymfpci;modprobe snd-pcm-oss;modprobe snd-mizer-oss;modprobe and-seq-oss

I read that I have two choices: to load the module up at boot time via script... or to recompile the kernel.

I opted to recompile the kernel.. so I read up on it.
somehow I was under the misunderstanding that once i loaded ALSA and inserted the modules into the kernel space <via modprobe> that all I had to do was recompile and i would be done.

Using make xconfig I chose what I thought was needed, actually only adding the toshiba support and nothing else... I saw yamaha in the sound area.. but not allowed to click yes.. only m and n were available.

I ran through the 5 steps of compiling the kernel (make xconfig, make dep, make clean, make bzImage (and i tried make bzDisk..but it was too big to put on the floppy)...)...

I then edited my lilo.conf to add this test kernel, and rebooted the system...

Now here are the problems (as you probably already know)..
1. LILO didn't pick up my changes, I checked back and the changes were there including the pathname to the test kernel (named vmtest), and a new label "testlinux"

2. I noticed a few changes had occured, like my ls command was now in color <as to where before it was not>...

3. I started gnome and didn't get the "sorry no sound found" message.. so i had thought it had worked... I was wrong, I brought up GQmpeg and noticed that when I played my test mp3, it stopped too quickly... and i had learned that this meant the sound was not loading.. I verified this with the mixing table immediately getting a message regarding this... all my permissions were chmod 666 at the time of configuring them so it wasn't that problem.

so i popped up a terminal window typed in the modprobe string and brought up the mixer and the mp3 player.. it worked..

I have come to a conclusion that i am missing a step or two that i may have overlooked in the various documents i have read...

I did not modify /etc/modules.conf as some documentation had mentioned <mine was blank anyhow>... i have assumed this was for the dynamic module loading and unloading... and had nothing to do with the kernel adding option... <is this required both ways? (etc adding the aliases)>...
I have not modified /etc/rc.dl/rc.modules since in the #sound support # section i did not see my yamaha snd-ymfpci listed to uncomment as i have read in some threads... I ran dmesg | audio without any results...

...
Can someone please help me either by pointing me to a URL that has the info I seek, or just explaining what i may be doing incorrect, or if I am out of my mind.

Thank you!
 
Old 01-26-2003, 05:58 AM   #2
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Slackware64-current multilib
Posts: 235

Rep: Reputation: 55
Whenever you make a change in /etc/lilo.conf you have to run lilo to update the boot record. I use "lilo -v".
I don't know if you made any modules, but you should do a "make modules_install" if you did. You would first need to rm -rf the old kernel modules first if you didn't customise the kernel version in the kernel Makefile using the "EXTRAVERSION" variable. After installing the new kernel and modules and updating the boot record I usually do a "depmod -ae", which is what "make modules_install" does right at the end to update /lib/modules/<kernel_version>/modules.dep. Hope that fills in a few blanks for you.
 
Old 01-26-2003, 08:16 AM   #3
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Re: compiling kernel to include sound support for toshiba laptop

Quote:
Originally posted by slackfan
Hello All,
...
The sound is working great, but only if i enter the following string after the boot:
/sbin/modprobe snd-ymfpci;modprobe snd-pcm-oss;modprobe snd-mizer-oss;modprobe and-seq-oss
...
I did not modify /etc/modules.conf as some documentation had mentioned <mine was blank anyhow>... i have assumed this was for the dynamic module loading and unloading... and had nothing to do with the kernel adding option... <is this required both ways? (etc adding the aliases)>...
I have not modified /etc/rc.dl/rc.modules since in the #sound support # section i did not see my yamaha snd-ymfpci listed to uncomment

The correct path is /etc/rc.d/rc.modules though I'm guessing that you might just have typoed, my /etc/modules.conf is also empty but I didn't have to change anything and my sound works. If the yamaha sound modules aren't listed in rc.modules that's ok, just add new lines in at the bottom of the #sound support # section and it should work fine. If you get the new kernel booted and you didn't modularize these then you don't need this but if you haven't...
Code:
/etc/rc.d/rc.modules:
/sbin/modprobe snd-ymfpci
/sbin/modprobe snd-pcm-oss
/sbin/modprobe snd-mizer-oss
/sbin/modprobe and-seq-oss
And for the kernel recompile sctuff, fskmh has your answers so I won't repeat it.
 
Old 01-26-2003, 01:15 PM   #4
slackfan
LQ Newbie
 
Registered: Jan 2003
Distribution: slackware
Posts: 20

Original Poster
Rep: Reputation: 0
Hello,
Thank you fskmh and Darin
I had overlooked completing the lilo update with /sbin/lilo (that is now working [I am glad that I didn't outright overwrite the original kernel; the one i compiled hung my system])
I had thought that using /etc/rc.d/rc.modules was not required unless I had intended to use modules, though I have added the /sbin/modprobe additions to the correct area and now the sound works great upon reboot. (though it is still required that I bring up the sound mixer first before the sound is heard [I will have to read more on this]).

So now everything appears to be working just fine, though now I am totally confused (I plan on reading more on what is going on in the background, but any quick explanations would be appreciated).
Anyway if anyone is bored feel free to answer, otherwise I am bound to find the answers on my own

1. I recompiled the kernel, and the kernel turned out to be bloated and bad enough to hang upon boot. I had only enabled one feature when in the make xconfig (some toshiba suport), leaving everything else at default... then recompiled and ending up with something that wouldn't fit on a floppy I had assumed the defaults were what was already in the kernel, are my assumptions incorrect?
2. It seems that just updating the /etc/rc.d/rc.modules with the /sbin/modprobe xxx all worked well... though am I loading a module <since I never created a module?>?
3. Since my compiled kernel came out to be non-usable where exactly or how exactly can I load my sound so that it is in the kernel? I had not previously seen it when using make config.
4. Even though the sound works, I have no idea why... I have a feeling that I am just calling /sbin/modprobe during the boot to load the sound... is this what a module does? how does the kernel do it differently?
5. What can I do to not have to open my sound mixer so that i can get the sounds that are in the sound mixer? Is this something else that I need to specify somewhere?

... alright, well here I am in the fog and am reading as I get along hopefully finding answers. Thanks to those who can throw me a light however small

Last edited by slackfan; 01-26-2003 at 01:16 PM.
 
Old 02-14-2003, 10:33 AM   #5
slackfan
LQ Newbie
 
Registered: Jan 2003
Distribution: slackware
Posts: 20

Original Poster
Rep: Reputation: 0
Just a quick update:

I am now using 2.4.20 and all is well, I have a feeling my previous problems regarding the kernel complilation were from neglecting to copy the System.map after make bzImage, as well as compiling a kernel that too much stuff I didn't need and not really knowing at the time feared to either say no or modularize something...

After compiling 2.4.20 the sound works wonderful during boot up et al. The fog is clearning little by little... it only takes about 20 or 30 times of recompiling the kernel and reading tons of posts and searching and searching... but in the end it is all worth it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound on Toshiba Laptop apocolipse Slackware 3 10-18-2005 02:42 PM
Toshiba laptop sound problem imagreg Slackware 9 09-30-2004 08:08 PM
Rh9 No Sound On Toshiba Laptop With Ac'97 Sound darkmage224 Linux - Laptop and Netbook 2 02-27-2004 10:23 AM
HELP!! OpenGL support for ATI equipped Toshiba Laptop? falcon56215 Linux - Software 2 10-28-2003 10:01 PM
official website of support of linux on toshiba laptop csspcman Linux - Laptop and Netbook 1 08-11-2003 02:39 AM


All times are GMT -5. The time now is 01:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration