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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-25-2005, 09:04 AM
|
#1
|
Member
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160
Rep:
|
Kernel-source, alsa-driver and kernel compile 2.6.11.9
Hi, I'm compiling my first kernel and need to know if I need to install new alsa drivers and kernel-source for the new kernel or is that included? Of not where do I find them? Can't find them at kernel.org...
Thx!
Last edited by jasone; 05-26-2005 at 04:55 AM.
|
|
|
05-25-2005, 09:11 AM
|
#2
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
You can either download the ALSA sources separately from the ALSA project site and compile them or compile the ALSA modules into the kernel.
I'd recommend the first course, because you'll be assured of the latest versions.
|
|
|
05-25-2005, 09:13 AM
|
#3
|
Member
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160
Original Poster
Rep:
|
Thanks but how about kernel-source?
|
|
|
05-25-2005, 09:16 AM
|
#4
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
As for kernel-sources (I'm assuming you're using Slack) you can find it on the install disk or you can download sources from www.kernel.org if you wish the latest.
No problem. You can compile the kernel separately and then compile the ALSA drivers separately.
The make install step for the ALSA drive sources will automatically install the ALSA modules into the kernel directories.
|
|
|
05-25-2005, 09:18 AM
|
#5
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
This topic should help you get a start on how to compile a kernel in Slackware. (2.6 series)
|
|
|
05-25-2005, 09:29 AM
|
#6
|
Member
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160
Original Poster
Rep:
|
Thanks for the tip!
Where at kernel.org can I find them? I meant kernel-source not the code source for the kernel of course, if I made myself unclear...I'm currently using this one URL=ftp://ftp.slackware.no/pub/linux/slackware/slackware-current/testing/packages/linux-2.6.11.9/]slackware.no[/URL]
but want to make my own...
|
|
|
05-25-2005, 09:34 AM
|
#7
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
It's all the same sources. Maybe the Slackware packages will have customized kernel config files. It's not a big deal if you know your hardware and what options are right for you.
You unpack the source code in the /usr/src/ directory. Then create a symlink to :
/usr/src/linux -> /usr/src/linux-2.x.y (example: x and y are major and minor version nos).
Then go to /usr/src/linux.
In a terminal type:
or Then set the configuration options. Save your changes. Then come out and compile the kernel using the usual steps.
|
|
|
05-25-2005, 09:56 AM
|
#8
|
Member
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160
Original Poster
Rep:
|
Ok I've heard that you need besides the kernel, the kernel-source for compiling stuff in any distribution but I was way out I guess...
|
|
|
05-25-2005, 10:01 AM
|
#9
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
Yes. If you're compiling your own kernel, you would need the kernel source code.
I think you're referring to the kernel headers (not full source code)? You won't need kernel headers if you have the full source code and you have a symlink /usr/src/linux point to the actual kernel source code directory /usr/src/linux-2.x.y.
Maybe somebody else can explain this better?
|
|
|
05-25-2005, 10:11 AM
|
#10
|
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460
Rep:
|
To get a working 2.6 kernel with ALSA support, all you need is the kernel source - ALSA is built into the 2.6 kernel. You only need to get hold of Alsa seperately if you're using 2.4
|
|
|
05-25-2005, 10:17 AM
|
#11
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
Quote:
To get a working 2.6 kernel with ALSA support, all you need is the kernel source - ALSA is built into the 2.6 kernel. You only need to get hold of Alsa seperately if you're using 2.4
|
Yes. But usually I don't recommend this for newbies because I know how tough it was for me to manually do the necessary kernel config to support my sound chip. And mind you, I knew which sound driver I needed too.
ALSA project drivers worked fine after a simple
Code:
./configure
make
make install
for me.
Usually I base my advice on experience, but of course, you're right. 2.6 kernels have built-in ALSA.
|
|
|
05-25-2005, 10:28 AM
|
#12
|
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460
Rep:
|
Really? I just checked off the relevant boxes, compiled, and it worked right off the bat.
With Gentoo, that is. Alsa never worked very well under Slackware - had to start it manually every time I logged in. . .
|
|
|
05-25-2005, 10:34 AM
|
#13
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
No problems in Gentoo (works fine here  ). At that time I was using (trying out) Slackware and I had a lot of problems with ALSA until I downloaded and compiled the source from the ALSA project site.
Since the OP mentions Slackware in the user profile, I thought I'd base my reply on that experience.
|
|
|
05-26-2005, 01:15 AM
|
#14
|
Member
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160
Original Poster
Rep:
|
Well I checked the boxes too and it didn't work I too know which snd card I have so I'll install them separately. The same goes for atm and acpi. I know I checked the boxes (double checked it out) but still no apm module or battery bar in my gkrellm. Apm command says "FATAL: No apm module found"
Weird....
|
|
|
All times are GMT -5. The time now is 10:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|