LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-10-2006, 06:53 AM   #1
Fisknils
LQ Newbie
 
Registered: Jun 2005
Location: Karlstad, Sweden
Distribution: Debian
Posts: 12

Rep: Reputation: 0
alsa-driver compilation problem


I'm running kernel 2.6.8-2-386 with Debian, and when I try to compile alsa-driver I get the following error:

Code:
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
  CC [M]  /home/fisknils/alsa/alsa-driver-1.0.11/acore/memalloc.o
/bin/sh: line 1: scripts/genksyms/genksyms: No such file or directory
make[4]: *** [/home/fisknils/alsa/alsa-driver-1.0.11/acore/memalloc.o] Error 1
make[3]: *** [/home/fisknils/alsa/alsa-driver-1.0.11/acore] Error 2
make[2]: *** [_module_/home/fisknils/alsa/alsa-driver-1.0.11] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [compile] Error 2
I've also tried apt-get'ing alsa, but alsaconfig doesn't recognize my soundcard for some reason (which is integrated on the motherboard; Asus A8N5X - nForce4 chipset)
I've also tried installing the nForce drivers from nvidia.com, but with those, I get the following error:
Code:
   In file included from /usr/src/kernel-source-2.6.8/include/linux/list.h:7,
                    from /usr/src/kernel-source-2.6.8/include/linux/wait.h:14,
                    from /usr/src/kernel-source-2.6.8/include/asm/semaphore.h:4
   1,
                    from /usr/src/kernel-source-2.6.8/include/linux/sched.h:18,
                    from /usr/src/kernel-source-2.6.8/include/linux/module.h:10
   ,
                    from /tmp/selfgz7152/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound
   /main/nvalinux.c:19:
   /usr/src/kernel-source-2.6.8/include/linux/prefetch.h: In function `prefetch
   _range':
   /usr/src/kernel-source-2.6.8/include/linux/prefetch.h:62: warning: pointer o
   f type `void *' used in arithmetic
   /bin/sh: line 1: scripts/basic/fixdep: No such file or directory
   make[4]: *** [/tmp/selfgz7152/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nv
   alinux.o] Error 1
   make[3]: *** [_module_/tmp/selfgz7152/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound
   /main] Error 2
   make[2]: *** [modules] Error 2
-> Error.
ERROR: The NVIDIA kernel module was not created.
ERROR: Installation of the audio driver has failed.  Please see the file
       '/var/log/nvidia-nforce-installer.log' for details.  You may find
       suggestions on  fixing installation problems in the README available on
       the Linux driver download page at www.nvidia.com.
I'd rather get alsa-drivers up and working than the nForce drivers to be honest. But either will do. Anyone?
 
Old 06-10-2006, 08:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
/bin/sh: line 1: scripts/genksyms/genksyms: No such file or directory
I think there is something wrong with your kernel sources installation, because the correct path should be "scripts/genksyms". Note that genksyms is part of the package "module-init-tools", so check if you have the latest installed and then check your kernel-source installation instructions of your distro. Perhaps you've missed something.

Regards
 
Old 06-10-2006, 08:59 AM   #3
Fisknils
LQ Newbie
 
Registered: Jun 2005
Location: Karlstad, Sweden
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
When I recompiled the kernel, I just copied the .config file from /usr/src/linux/ and put it in my kernel-source dir.
It was the same version of the kernel, and the only reason I recompiled it was that I somehow managed to mess up the old source-dir and I needed it in order to compile the alsa-driver.

So basically, there should not be a problem with the kernel-source, since I didn't use the expert mode. (the linux26 installation is pretty safe, isn't it?)

Either way, I'm currently reading the documentation from the kernel-source dir to rebuild the kernel once more.

btw, "module-init-tools" was according to apt-get installed with the latest version.

Any other tips?


EDIT: I downloaded a newer version of alsa-driver from alsa-project.org and got a brand new error :P

/bin/sh: line 1: scripts/basic/fixdep: No such file or directory

this file exists as well :P

Last edited by Fisknils; 06-10-2006 at 09:02 AM.
 
Old 06-10-2006, 10:06 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
How did you recompile your kernel? You should run:
Code:
make oldconfig
before running make, make modules_install etc.
 
Old 06-10-2006, 10:39 AM   #5
Fisknils
LQ Newbie
 
Registered: Jun 2005
Location: Karlstad, Sweden
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Ahhh.. that's probably what I did wrong. I just copied the .config from /usr/src/linux to the kernel-source-dir.

I'll recompile it again. Thanks for the help, mate
 
Old 06-10-2006, 12:20 PM   #6
Fisknils
LQ Newbie
 
Registered: Jun 2005
Location: Karlstad, Sweden
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
okay. I used the same source-dir and did "make clean && make && make modules && make modules_install". Then I copied the kernel image from /usr/src/kernel-source/arch/i386/boot/bzImage to /boot/vmlinuz and rebooted. Everything seems to be in order, but I still get the same errormessage for the alsa-driver package.

Did I do anything wrong?
 
Old 06-10-2006, 05:47 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Well, it seems you need to do more things. Take a look at this thread and specially at the 2nd post.
 
Old 06-11-2006, 06:33 AM   #8
Fisknils
LQ Newbie
 
Registered: Jun 2005
Location: Karlstad, Sweden
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Actually, I recompiled the kernel (again) with a new kernel-source-version nad included the driver in the kernel.
Now, alsamixer can find the soundcard and everything suggests that the soundcard is working except for the fact that there's still no sound.

I dont know where to start looking for info :S


EDIT: Just tried skype'ing with a friend. He can hear me after some alsamixer adjustments. But I can't hear anything

Last edited by Fisknils; 06-11-2006 at 07:37 AM.
 
Old 06-11-2006, 10:08 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should play with alsamixer and unmute most of the channels there (like master, pcm, etc) and also raise the volume to an auditible level. You can use "speaker-test" which produces a continuous sound through your speakers and adjust the alsmixer levels till you can hear that sound through your speakers.
 
Old 06-11-2006, 06:42 PM   #10
Fisknils
LQ Newbie
 
Registered: Jun 2005
Location: Karlstad, Sweden
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
I've done this. Unmuted all channels and muted them again one by one while running speaker-test. No success. I've also asked a friend that's pretty good with linux, and he couldn't figure out what was wrong either.

Everything suggests the soundcard should be operating, but it doesn't.

What can I do to debug?
 
Old 06-12-2006, 07:19 AM   #11
Fisknils
LQ Newbie
 
Registered: Jun 2005
Location: Karlstad, Sweden
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
just fixed it. -.-
Even though I've tried all sockets before, now for some reason, the "white" socket worked. >_<

Isn't that 5.1 sound btw? I've only got 2.1 :P
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation Problem - ASUS LAN Driver ShayA Fedora 3 03-03-2006 02:18 AM
SigmaTel USB-IRDA STIR4210 driver compilation problem on 2.6 qwix Linux - Hardware 0 03-15-2005 01:58 PM
alsa driver compilation error darkleaf Linux - Software 4 07-08-2004 12:45 PM
Sound: Alsa driver compilation Blek Linux - Hardware 3 05-18-2003 04:07 PM
ALSA driver compilation Blek Linux - Hardware 0 05-12-2003 10:27 AM

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

All times are GMT -5. The time now is 08:04 AM.

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