LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2006, 08:43 PM   #1
nebloof
Member
 
Registered: May 2004
Distribution: Slackware Current
Posts: 40

Rep: Reputation: 16
a possible solution: sound support: kernel recompile


Firstly, I don't really expect any replies to this post 'cause I'm not really looking for help. But I'm posting this to hopefully give people a solution if they can't get sound to work after a kernel recompile.

THE SOLUTION

If sound is working after the initial installation of linux, first, back up the modules folder (for Slackware, they're in /lib). Just back up the folder to anywhere. To get sound to work after kernel recompile (with it being broken);

I used "make oldconfig" instead of "make menuconfig" to configure the kernel source.

Then I did the usual (make dep/clean/bzImage/modules/modules_install).

After I got the new kernel (with the bootsplash patch), I replaced the new modules folder (created with the compile) with the old modules folder.
-----------------------------------------------------------

Ok, I've spent all day on this and finally got a system working that way I want. I wanted to see if I could get bootsplash to work for slackware 10.2. It actually does; partially (I still have yet to figure out how to get the progress bar to move on the splash screens).

In order to use bootsplash in Slackware, the kernel has to be patched and recompiled. I really am a newbie to linux, but I've been tinkering with linux for the past few years. I know how to do stuff;
anyway...
-----------------------------------------

THE MAIN PROBLEM

patching the kernel to use bootsplash has worked flawlessly and Slackware doesn't care one way or the other if you use bootsplash (as far as I can tell). But getting the sound support on kernel recompile has been a huge issue.

Everything would work ok, even getting networking working was never an issue. When install Slackware, and configure sound, the sound system works fine. But with kernel recompile and the new kernel, ALSA has issues finding the driver for my soundcard (which actually an onboard soundcard with the nFoce3 chipset).

After kernel recompile, testing everything, and seeing that sound isn't working, I would switch to the old kernel, and the sound would be broken. So after this new installation, I backed up the modules folder in /lib, patched the kernel with bootsplash, recompiled, deleted the modules folder that was created, and copied over the OLD modules folder, and WALLAH! Sound with the patched kernel using bootsplash in Slackware 10.2!!!
-----------------------------------------

CONLUSIONS

So I now know the issue is that modules aren't getting compiled that ALSA needs, but I can't for the life of me figure out what they are and I don't feel like spending days recompiling the kernel over and over.

I'm using the command make oldconfig rather than make menuconfig to create the config file. Eventually I supposed I'll go through and actually try to figure out what it is I'm missing. All I know is, right now everything is working the way I want it.
 
Old 07-31-2006, 04:35 PM   #2
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
I wonder if the reason the bootsplash status bar does not move is related to the fact that Slackware uses BSD-style init while most other distros use SYSV-style?
 
Old 07-31-2006, 06:26 PM   #3
nebloof
Member
 
Registered: May 2004
Distribution: Slackware Current
Posts: 40

Original Poster
Rep: Reputation: 16
I actually figured out how to make the progress bar move

All you have to do is edit /etc/rc.d/rc.bootsplash, rc.S, and rc.M

1) Uncomment the progressbar() function in rc.bootsplash
2) In rc.S and rc.M:

under the FIRST fi statement, put:
. /etc/rc.d/rc.bootsplash NOTE: There is a SPACE bettwen "." and "/" >> ". /" NOT "./"

3) In rc.S, evenly throughout the file beneath fi's put "progressbar" and then a number...
Use numbers 1 through 50. A guide suggested using multiples of 5 (5, 10, 15, etc...).

4) Repeat step 3 for rc.M using numbers 51 through 100.

With this, this progress bar SHOULD work. It works perfectly fine now!!!

My problem was I kept putting ./etc/rc.d/rc.bootsplash instead of . /etc/rc.d/rc.bootsplash. I didn't realize you had to put a space between the period and forward slash. Because of the fact that I didn't use . /, when I read dmesg, I would get "... progressbar: command not found"

Last edited by nebloof; 07-31-2006 at 06:48 PM.
 
  


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
need to recompile kernel to support this hardware? mrjshum Debian 5 12-25-2005 03:39 AM
recompile kernel for hfs support peok Linux - Software 5 10-20-2004 08:42 PM
Recompile of Kernel, Slack 10: i've lost device support sganarelle Slackware 2 08-14-2004 06:48 AM
No sound support after kernel recompile abu_a_m Red Hat 1 02-10-2004 10:06 AM
recompile kernel 2.4.23 support for apm..fails IamDaniel Slackware 5 01-21-2004 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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