1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
Debian Advanced Linux Sound Architecture
README File
This is the Debian GNU/Linux prepackaged version of the ALSA drivers
package.
By default, debian/rules will set the kernel-specific options from the
kernel source tree in /usr/src/linux.
You need to have a complete linux source tree for your kernel, not just an
up-to-date kernel image, to compile the ALSA drivers. The ALSA modules
contain some references to kernel source files. While you may want to
build a new kernel to remove unnecessary drivers, installing ALSA does
not require you to do so.
To recompile the ALSA kernel modules:
The process of recompiling a kernel and the ALSA modules has been
greatly simplified by Debian's kernel-package package (available in
Debian's main distribution). This package contains the make-kpkg
utility, which is used to create the kernel related Debian packages.
It is highly recommended that you use this utility.
If you are using make-kpkg:
1) Ensure that the alsadriver source tree is in a subdirectory of the
/usr/src/modules directory. Use a symbolic link to the actual
source tree if you must. Note that the alsa-source package
already places the alsadriver sources in /usr/src/modules/alsadriver.
2) As root, go to the the base of the kernel source tree (usually
the /usr/src/linux directory). If you are building a kernel that
is custom configured to your specifications, go ahead and
configure the kernel with `make config,' `make menuconfig,' or
`make xconfig.'
3) To build a new kernel-image package, execute:
make-kpkg --revision number kernel_image
This will generate a kernel-image-<kernel version> deb file in
the parent directory. Here number (the argument supplied after
the --revision flag) is a version number for your custom built
kernel. You may also do this on the fly by setting the
DEBIAN_REVISION environmental variable. It is important that you
choose the revision number in such a way that a generic kernel-
image package will not override the custom package while using
dselect (or `dpkg -BOGiE'). I recommend a two-level scheme where
the major level starts with a letter. One such scheme is your
(short) host name followed by a dot (.) and a number. For
example, if your machine is named myhost, you would use
--revision myhost.1 in the command line. If you had to rebuild
your custom kernel, you would use --revision myhost.2 and so on.
See /usr/doc/kernel-package/README.gz for more information on
revision numbers.
3) To build the ALSA modules, execute:
make-kpkg --revision number modules_image
where number is the same revision number used to build the
kernel-image package in the previous step. This will generate a
pcmcia-modules-<kernel version> deb file in the parent directory.
4) Install the two newly created deb files (you can use `dpkg -i
file').
If you are not using make-kpkg:
If your kernel is compiled with CONFIG_MODVERSIONS enabled, for kernel
symbol version checking, the configure script will check for the
existence of /usr/include/linux/modversions.h, the symbol version
database. This is created by running `make dep' (in addition to `make
config) in the kernel source tree.
1) Ensure that the kernel source tree is in the /usr/src/linux
directory and ensure that it is configured (execute `make config
dep' in the /usr/src/linux directory).
2) Go to the alsadriver root directory (/usr/src/modules/alsadriver in
the alsa-source package).
3) Execute as root `debian/rules binary-modules.' This will
generate a alsa-modules-<kernel version> deb file in the parent
directory.
Note: The location of the kernel source tree may be specified by
supplying the KSRC variable as a command line option. For example, if
the kernel source is located in /usr/local/src/kernel-2.0.0, the
proper command would be
debian/rules KSRC=/usr/local/src/kernel-2.0.0 binary-modules
This document is almost an exact copy of the documentation for the pcmcia
packages made by Brian Mays <brian@debian.org>.
|