LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: rr19xx

声卡驱动ALSA安装指南-第三版=》03年06月08日更新

[复制链接]
发表于 2004-12-16 09:39:31 | 显示全部楼层
1、我没有/etc/modules.conf
2、在执行到
./snddevices
cd utils
./alsaconf
utils里没有./alsaconf


我是FC3,P4.2.8
 楼主| 发表于 2004-12-17 14:08:54 | 显示全部楼层

回复 c_complier

首先可以确定的是,rh9下安装alsa0.9.4是没有问题的,因为第三版指南就是以rh9和alsa0.9.4为例的。
正如指南所说,rh9不必检测内核是否支持声音,也不需要.configure,请不要对rh9的内核源码作任何改动!否则即使alsa编译成功,也无法正确加载。
你说已成功安装4次,但是否真的成功了呢?请注意编译的输出信息,或者执行:modprobe snd-intel8x0,看命令的输出信息,或发上来。
 楼主| 发表于 2004-12-17 14:12:49 | 显示全部楼层

回复 huangsong

可以。
是否改动了内核设置?
 楼主| 发表于 2004-12-17 14:23:18 | 显示全部楼层

回复 Seven

ALSA自1.0.X起,原本包括在alsa-driver里的alsaconf归入alsa-utils,因此,请按照alsa-drvier->alsa-lib->alsa-utils编译安装后,再直接执行alsaconf就可以了。
发表于 2004-12-27 12:42:27 | 显示全部楼层
那  楼主 现在 我 是不是 要重装 内核 啊

不然 我又 按照 你说的 从装了 一次  不行 !

[root@localhost alsa]# cd alsa-driver-0.9.4
[root@localhost alsa-driver-0.9.4]# make
make all-deps
make[1]: Entering directory `/home/alsa/alsa-driver-0.9.4'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/home/alsa/alsa-driver-0.9.4'

Please, run the configure script as first...

[root@localhost alsa-driver-0.9.4]# make install
rm -f /snd*.o /persist.o /isapnp.o
make[1]: Entering directory `/home/alsa/alsa-driver-0.9.4/support'
Makefile:9: ../Makefile.conf: 没有那个文件或目录
Makefile:27: /Rules.make: 没有那个文件或目录
make[1]: *** No rule to make target `/Rules.make'.  Stop.
make[1]: Leaving directory `/home/alsa/alsa-driver-0.9.4/support'
make: *** [install-modules] Error 1
You have new mail in /var/spool/mail/root
[root@localhost alsa-driver-0.9.4]# ./snddevices
Creating /dev/mixer?... done
Creating /dev/sequencer... done
Creating /dev/midi?... done
Creating /dev/dsp?... done
Creating /dev/audio?... done
Creating /dev/sndstat... done
Creating /dev/music... done
Creating /dev/dmmidi?... done
Creating /dev/dmfm?... done
Creating /dev/amixer?... done

Loading driver...
Starting sound driver: snd-intel8x0 /lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol __write_lock_failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol kernel_flag_cacheline
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol __read_lock_failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.20-8/kernel/sound/acore/snd.o failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod snd-intel8x0 failed
done
Setting default volumes...
Saving the mixer setup used for this in /etc/asound.state.
/usr/sbin/alsactl: save_state:1048: No soundcards found...
===============================================================================

Now ALSA is ready to use.
For adjustment of volumes, please use alsamixer or gamix.

Have a lot of fun!

[root@localhost utils]# cd /home/alsa
[root@localhost alsa]# cd /alsa-lib-0.9.4
bash: cd: /alsa-lib-0.9.4: 没有那个文件或目录
[root@localhost alsa]# cd alsa-lib-0.9.4
[root@localhost alsa-lib-0.9.4]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost alsa-lib-0.9.4]# make install
make: *** No rule to make target `install'.  Stop.
[root@localhost alsa-lib-0.9.4]# cd alsa-utils0.9.4
bash: cd: alsa-utils0.9.4: 没有那个文件或目录
[root@localhost alsa-lib-0.9.4]# cd alsa-utils-0.9.4
bash: cd: alsa-utils-0.9.4: 没有那个文件或目录
[root@localhost alsa-lib-0.9.4]#


怎麽从装 内核 啊?  还有没有别的 方法 呢?

这是 执行 modprobe snd-intel8x0  后 的 输出信息 :


[root@localhost alsa-lib-0.9.4]# modprobe snd-intel8x0
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol __write_lock_failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol kernel_flag_cacheline
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol __read_lock_failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.20-8/kernel/sound/acore/snd.o failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod snd-intel8x0 failed
[root@localhost alsa-lib-0.9.4]#

help~~~~~~~~~~
发表于 2005-1-2 16:53:30 | 显示全部楼层
ld  -r -o snd-ak4xxx-adda.o ak4xxx-adda.o
make[2]: Leaving directory `/root/alsa-driver-0.9.4/i2c/other'
make[1]: Leaving directory `/root/alsa-driver-0.9.4/i2c'
make[1]: Entering directory `/root/alsa-driver-0.9.4/drivers'
gcc -D__KERNEL__ -DMODULE=1 -I/root/alsa-driver-0.9.4/include  -I/lib/modules/2.4.21-9.EL/build/include -O2 -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  -DKBUILD_BASENAME=dummy   -c -o dummy.o dummy.c
gcc -D__KERNEL__ -DMODULE=1 -I/root/alsa-driver-0.9.4/include  -I/lib/modules/2.4.21-9.EL/build/include -O2 -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  -DKBUILD_BASENAME=mtpav   -c -o mtpav.o mtpav.c
gcc -D__KERNEL__ -DMODULE=1 -I/root/alsa-driver-0.9.4/include  -I/lib/modules/2.4.21-9.EL/build/include -O2 -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  -DKBUILD_BASENAME=serial_u16550   -c -o serial-u16550.o serial-u16550.c
gcc -D__KERNEL__ -DMODULE=1 -I/root/alsa-driver-0.9.4/include  -I/lib/modules/2.4.21-9.EL/build/include -O2 -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  -DKBUILD_BASENAME=serialmidi   -c -o serialmidi.o serialmidi.c
serialmidi.c: In function `open_tty':
serialmidi.c:158: invalid operands to binary >
make[1]: *** [serialmidi.o] Error 1
make[1]: Leaving directory `/root/alsa-driver-0.9.4/drivers'
make: *** [compile] Error 1
发表于 2005-1-2 16:54:27 | 显示全部楼层
为什么啊???
我装了好多次都是不行啊!
发表于 2005-1-5 09:47:50 | 显示全部楼层

承蒙linuxsir里热心人的帮助,俺成功安装声卡intel 8x0,下面是安装过程.唯一让我恼火

安装ALSA吧:
我也只是安装了三个包:alsa-driver-1.0.5a.tar.bz2,alsa-lib-1.0.5.tar.bz2,alsa-utils-1.0.5.tar.bz2就可以解决大部分问题了
解包:
tar jxvf alsa-driver-1.0.5a.tar.bz2
tar jxvf alsa-lib-1.0.5.tar.bz2
tar jxvf alsa-utils-1.0.5.tar.bz2
tar jxvf gamix-1.99.p14.tar.gz

1、安装alsa-driver
cd alsa-driver-1.0.5a
./configure
这里其实是有很多选项的,rr19xx的指南中已经提示了,我再列在这:
如果你知道自己声卡的模块名称,则可以用: ./configure --with-cards=模块名称如我的是8235芯片的软声卡,则为:./configure --with-cards=via82xx 但如果不清楚的话,还是请用./congfigure 以编译alsa所支持的所有声卡的驱动。
如果声卡是ISA的pnp声卡,请用./configure --with-isapnp=yes
./configure 的详细参数可通过执行:./configure –help进行查询。
之后:
make
make install
./snddevices

cd lib-1.0.5
./configure
make
make install
以上安装alsalib
2、cd alsa-utils
./configure
make
make install
接下来:
cd utils
./alsaconf
3、cd gamix-1.99
./configure
make
make install
以上安装gamix



感谢linuxsir这么多热心人,
 楼主| 发表于 2005-1-6 00:58:06 | 显示全部楼层

回复 c_complier

因为很忙,很抱歉现在才回帖。
事实上,你可能理解错我的回复了。我是指对于rh9,你不要对linux内核源码做任何改动,不用确认源码目录下有否.config,直接就能编译安装alsa,但编译alsa-driver时,./configure是一定要做的。
很明显,你没有执行./configure。另外,根据输出,你应该重新安装一下内核源码包。请先删除linux内核源码包,重新安装它一次。源码包rpm位于rh9第二张光盘,你可以翻看之前的回帖,我已经对此有过回复。
发表于 2005-1-25 21:46:25 | 显示全部楼层

声卡装不上

请教rr19xx 大哥:
我在vmware上安装redhat 9,
内核版本:2.4.20-8
虚拟声卡:ensoniq es1371
我下载了个最新的alsa驱动,alsa-driver-1.0.8rc2.tar.bz2,按照网上的指南./configure;make;make install;./snddevices;
没有问题
然后我用alsaconf-0.4.3b.tar.bz2进行alsaconf,发现报告snd.o: unreferenced symbols...
用modprobe snd-card-ens1371,出现错误:can't locate module ...
检查lsmod,发现还是用原先的oss驱动
这是什么问题啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表