Next: Creating apt-enabled RedHat or Up: Appendixes that should not Previous: Recompiling the kernel rpms
|
rpm -Uvh alsa-*ALSA_VERSION.src.rpm
|
This will install the spec files in /usr/src/redhat/SPECS and the sources in /usr/src/redhat/SOURCES.
You have to build the alsa-driver packages with the proper kernel architecture. It must match the architecture of the kernel you want alsa to run on (which should probably be the kernel you are booted into now). So first find out what kernel version you are running:
uname -r
|
This will print the version and release of the kernel you are running. Now let's find the architecture of the kernel. If the kernel is a single processor kernel type (VERSION is the output of the uname command):
rpm -q -qf "%ARCH" kernel-VERSION
|
If the kernel is a multiprocessor kernel (the version ends in ``smp'') then type (VERSION is the output of the uname command without the trailing ``smp''):
rpm -q -qf "%ARCH" kernel-smp-VERSION
|
Anyway, the command should print either i386, i586, i686 or athlon, that is the architecture you should use for the build.
After running the following command two binary rpms will be created, one containing the kernel modules and the other the rest of the driver files. Replace ``i686'' in the command below with the architecture of your target kernel:
Note: if you are compiling the driver rpms for a regular redhat kernel set the variable ``buildforredhatkernel'' to 1 in the alsa-driver spec file before starting the rebuild process. Otherwise the alsa-kernel package will not have the proper dependencies and you will not be able to install it.
cd /usr/src/redhat/SPECS
rpmbuild -bb --target i686 alsa-driver-ALSA_VERSION.spec |
Now install the alsa kernel modules and driver packages for your kernel (change i386 in the command below to the architecture of your target kernel):
rpm -Uvh ../RPMS/i386/alsa-kernel*ALSA_VERSION.i386.rpm ../RPMS/i386/alsa-driver*ALSA_VERSION.i386.rpm
|
rpmbuild -bb alsa-lib-ALSA_VERSION.spec
rpm -Uvh ../RPMS/i386/alsa-lib-ALSA_VERSION.i386.rpm |
rpmbuild -bb alsa-utils-ALSA_VERSION.spec
rpm -Uvh ../RPMS/i386/alsa-utils-ALSA_VERSION.i386.rpm |
rpmbuild -bb alsa-tools-ALSA_VERSION.spec
rpm -Uvh ../RPMS/i386/alsa-tools-ALSA_VERSION.i386.rpm |
© Copyright 2001...2019 Fernando Lopez-Lezcano, CCRMA, Stanford University.
All rights reserved.