- 论坛徽章:
- 0
|
我昨天刚刚把mandrake linux 9.1装到我的机器上。机器配置如下:
cpu celeron 300a
mem 128m
video card savage 3d(agp)
sound card aureal 8820
安装以前我怕显卡装不上,agp接口的阿,而且以前也碰到过类似情况。
接下来开始装,开始装的时候有一个:部分设备需要特别驱动程序,或者类似的话,开始感到不安。
文件复制过程挺顺利。
后发现:显卡找到了,连我的adi e44这个一直被98 me 2000 xp认为是“默认适配器”的老古董都可以认出来!够强!
接下来发现声卡没装上。
进入xwindows,利用mandrake 控制台工具,看,声卡能认出aureal而且还给出了驱动下载网址!利用控制台工具里面的声卡配置工具,然后程序一直运行中......还在运行中......无奈!!
好,上网下在,1.1.2版本。
下面的有点长,是里面的readme,请看:
Release Notes for the Aureal Vortex Linux Driver
================================================
The following files are distributed in this release:
README this file
Makefile used to build and install the driver
COPYING GPL information
ChangeLog Version change information
mod_conf script used by make install
au_audio.c wave audio source
au_core.c core support source
au_midi.c midi audio source
au_mixer.c mixer source
au_sndstat.c sndstat source
au_utils.c utility functions source
au_vortex.c kernel/PCI interface source
au_vortex.h public declarations and functions
asp30.o object file containing Au8830 core
asp20.o object file containing Au8820 core
asp10.o object file containing Au8810 core
See http://aureal.sourceforge.net for the latest
driver and bug list.
NOTE: the GPL applies to the source modules only.
Redistribution of the binary modules requires
explicit permission from Aureal.
System Requirements
-------------------
This driver is for Intel x86 systems only.
If your BIOS has an option for " nP OS", it must be disabled.
Note: if you get "device busy" error messages this might be
the problem.
This driver has been tested on the following distributions:
Red Hat 6.0, kernel version 2.2.5-15
Red Hat 6.1, kernel version 2.2.12-20
Red Hat 6.1, kernel version 2.2.13
Slackware 7.0, kernel version 2.2.16
Debian 2.2, kernel version 2.4.0
Installing the Driver
---------------------
1. Unpack the distribution:
tar xvzf aureal*.tar.gz
2. Change to the driver directory and become root:
cd aureal*
su
3. Edit the Makefile to suit your system (SMP, CPU type, etc)
4. Type the following install commands:
If you have an 8830-based (Vortex 2) card:
make install
If you have an 8820-based (Vortex 1) card:
make install20
If you have an 8810-based (Vortex Advantage) card:
make install10
There is no need to reboot.
Note: if you get "unresolved symbol" errors during the install,
rebuild your kernel with sound support (soundcore) built in
(not a module).
Supported Sound Cards
---------------------
Aureal SQ2500 (8830-based)
Aureal SQ1500 (8810-based)
Diamond MX300 (8830-based)
Turtle Beach Montego (8820-based)
Any other Aureal 88(1|2|3)0 based card should work
Features
--------
1. OSS compatible.
2. Full duplex PCM playback and record, multiple channels (/dev/dsp).
3. Mixer support (/dev/mixer).
4. MPU-401 support (/dev/midi).
5. Joystck support at port 0x201.
6. Supports games such as Quake2.
7. Supports Vortex 8830, 8810, and 8820 based cards.
8. Supports /dev/audio and /dev/sndstat.
Midi synthesis is supported through a software midi synth, such as Timidity.
Known Problems
--------------
1. SMP is not tested
2. Small buffer (16k)
3. Random skipping with some movies in mtvp
===============================================================================
按照要求,去更改了makefile文件。文件要求指定cpu,就是在文件中加一句
cup=pentinumpro
ok,save,exit.
然后按照说明打make install20
下面出问题了,请看:
make install AUCHIP=AU8820
make[1]: Entering directory `/home/bsyforce/download/soundcard1/aureal'
cc -D__KERNEL__ -DMODULE -DAU8820 -m -O6 -fomit-frame-pointer -Wall -pipe -I/usr/src/linux/include -c -o au_audio.o au_audio.c
In file included from au_vortex.h:44,
from au_audio.c:49:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h>; or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h>; as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from au_audio.c:49:
au_vortex.h:46:40: missing binary operator before '('
In file included from /usr/include/linux/module.h:297,
from au_vortex.h:58,
from au_audio.c:49:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h>; or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h>; as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from au_vortex.h:58,
from au_audio.c:49:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
In file included from au_vortex.h:59,
from au_audio.c:49:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h>; or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h>; as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from au_vortex.h:66,
from au_audio.c:49:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
In file included from au_audio.c:49:
au_vortex.h:74:41: missing binary operator before '('
In file included from au_vortex.h:77,
from au_audio.c:49:
/usr/include/asm/spinlock.h:31: conflicting types for `spinlock_t'
/usr/include/linux/spinlock.h:73: previous declaration of `spinlock_t'
/usr/include/asm/spinlock.h:80: parse error before "do"
/usr/include/asm/spinlock.h:116: parse error before '{' token
/usr/include/asm/spinlock.h:126: parse error before "void"
/usr/include/asm/spinlock.h:157: conflicting types for `rwlock_t'
/usr/include/linux/spinlock.h:137: previous declaration of `rwlock_t'
/usr/include/asm/spinlock.h:182: parse error before "void"
/usr/include/asm/spinlock.h:191: parse error before "void"
au_vortex.h:80:41: missing binary operator before '('
au_vortex.h:118:41: missing binary operator before '('
au_vortex.h:146:41: missing binary operator before '('
au_vortex.h:197:41: missing binary operator before '('
In file included from au_audio.c:50:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h>; or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h>; as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
au_audio.c:63:41: missing binary operator before '('
au_audio.c:78: warning: initialization from incompatible pointer type
au_audio.c:79: warning: initialization from incompatible pointer type
au_audio.c:80: warning: initialization from incompatible pointer type
au_audio.c:82: warning: initialization from incompatible pointer type
au_audio.c:83: warning: initialization from incompatible pointer type
au_audio.c:84: warning: initialization from incompatible pointer type
au_audio.c:85: warning: initialization from incompatible pointer type
au_audio.c:87: warning: initialization from incompatible pointer type
au_audio.c: In function `au_audio_read':
au_audio.c:193: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
au_audio.c: In function `au_audio_write':
au_audio.c:261: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
au_audio.c: In function `au_audio_poll':
au_audio.c:311: warning: passing arg 2 of `poll_wait' from incompatible pointer type
au_audio.c:313: warning: passing arg 2 of `poll_wait' from incompatible pointer type
au_audio.c:606:41: missing binary operator before '('
au_audio.c: In function `au_audio_mmap':
au_audio.c:609: structure has no member named `vm_offset'
au_audio.c:666:40: missing binary operator before '('
au_audio.c:690:40: missing binary operator before '('
au_audio.c: In function `drain_playback':
au_audio.c:724: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
au_audio.c:767:41: missing binary operator before '('
au_audio.c: In function `add_wave_device':
au_audio.c:771: warning: implicit declaration of function `init_waitqueue'
au_audio.c:825:41: missing binary operator before '('
au_audio.c:838:41: missing binary operator before '('
au_audio.c: In function `get_frags':
au_audio.c:843: warning: implicit declaration of function `MAP_NR'
au_audio.c:859:41: missing binary operator before '('
au_audio.c:867:41: missing binary operator before '('
au_audio.c:879:41: missing binary operator before '('
au_audio.c: In function `set_data_format':
au_audio.c:962: warning: deprecated use of label at end of compound statement
au_audio.c: In function `au_handle_timer':
au_audio.c:1121: warning: passing arg 1 of `__wake_up' from incompatible pointer type
au_audio.c:1143: warning: passing arg 1 of `__wake_up' from incompatible pointer type
au_audio.c:1173: warning: passing arg 1 of `__wake_up' from incompatible pointer type
make[1]: *** [au_audio.o] 错误 1
make[1]: Leaving directory `/home/bsyforce/download/soundcard1/aureal'
make: *** [install20] 错误 2
[root@bupt aureal]#
天哪,怎么会这样。
第一句话就够受了:
#error "You should not include /usr/include/{linux,asm}/ header"
#error "files directly for the compilation of kernel modules."
竟然和核心模式不兼容???
不死心,再看看有什么不对的。
但是,这是开始编译的第一句啊。
readme 中有这么一句:
Note: if you get "unresolved symbol" errors during the install,
rebuild your kernel with sound support (soundcore) built in
(not a module).
不会自己重建核心吧??
实在是没办法了。
请linux高手指点一下吧。
谢谢! |
|