Difference between revisions of "Driver Compilation"

From AlsaProject
Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 5: Line 5:
 
===Easy way===
 
===Easy way===
  
Use [http://www.alsa-project.org/alsa-compile.sh alsa-compile.sh] script. See "alsa-info.sh --help" for more details:
+
Use [http://www.alsa-project.org/alsa-compile.sh alsa-compile.sh] script. See "alsa-compile.sh --help" for more details:
  
 
  # wget -O alsa-compile.sh http://www.alsa-project.org/alsa-compile.sh
 
  # wget -O alsa-compile.sh http://www.alsa-project.org/alsa-compile.sh
Line 15: Line 15:
 
  # ./alsa-compile.sh --driver --kmodules
 
  # ./alsa-compile.sh --driver --kmodules
  
Compile and install new ALSA kernel modules to /lib/modules/`uname -r`/alsa/update tree:
+
Compile and install new ALSA kernel modules to /lib/modules/`uname -r`/updates/alsa tree:
  
 
  # ./alsa-compile.sh --driver --install
 
  # ./alsa-compile.sh --driver --install
Line 23: Line 23:
 
  # ./alsa-compile.sh --kmodclean
 
  # ./alsa-compile.sh --kmodclean
  
===Pre-requisites===
+
===Pre-requisites for the tarball compilation===
  
 
* full kernel sources (see to distribution specific section)  
 
* full kernel sources (see to distribution specific section)  
Line 29: Line 29:
 
* autoconf (only necessary if you need to use gitcompile script)
 
* autoconf (only necessary if you need to use gitcompile script)
  
==Compilation commands==
+
==Compilation commands for the tarball compilation==
  
 
  # ./configure
 
  # ./configure

Latest revision as of 22:18, 2 September 2010

Contents

[edit] Easy way

Use alsa-compile.sh script. See "alsa-compile.sh --help" for more details:

# wget -O alsa-compile.sh http://www.alsa-project.org/alsa-compile.sh
# chmod 755 alsa-compile.sh
# ./alsa-compile.sh --help

Compile and insert new ALSA kernel modules:

# ./alsa-compile.sh --driver --kmodules

Compile and install new ALSA kernel modules to /lib/modules/`uname -r`/updates/alsa tree:

# ./alsa-compile.sh --driver --install

New modules can be removed from the /lib/modules tree with:

# ./alsa-compile.sh --kmodclean

[edit] Pre-requisites for the tarball compilation

  • full kernel sources (see to distribution specific section)
  • gcc (C compiler)
  • autoconf (only necessary if you need to use gitcompile script)

[edit] Compilation commands for the tarball compilation

# ./configure
# make
# make install

Note: Example above will replace ALSA drivers for current kernel with drivers compiled from source.

[edit] Distribution specific

[edit] SUSE Linux/OpenSUSE

install appropriate kernel-source rpm package

[edit] Fedora 11/12

Make sure you have the right kernel-devel package installed; probably the kernel-PAE-devel package for the kernel you are running and will be running after the next reboot. Further kernel sources are not necessary.

[edit] Gentoo Linux

Run emerge media-sound/alsa-driver to get the latest stable version.
Note: this driver is now disencouraged, Gentoo recently switched to using the in-kernel driver as its first choice!
If you want the latest sources, use emerge --oneshot =media-sound/alsa-driver-9999 which will download the mercurial source tree, compile it and install it for you.
Follow the Gentoo Linux ALSA Guide to install ALSA.
Custom Search
Personal tools
Namespaces

Variants
Actions
Navigation
wiki
Toolbox